Gh 9610 add plugin api for update user active method (#9854)

* wip

* wip

* After running make plugin-mocks

* Add
TestUpdateUserActive and run make pluginapi

* Adding plugin_api_test.go

* Better formatting of code using gofmt

* Fix tests and run make pluginapi

* Specify the minimum server version on the comments

* Include more tests as per the CR

* Fix tests

* Checking err.Id intsead of err & Removed comments and trailing spaces

* wip

* Fix tests as per CR and spaces

* Make changes to tests as per CR
Этот коммит содержится в:
akhilanandbv003
2018-12-12 09:18:41 -06:00
коммит произвёл Jesse Hallam
родитель febc5115fd
Коммит 11059b0251
7 изменённых файлов: 112 добавлений и 0 удалений

Просмотреть файл

@@ -2170,6 +2170,22 @@ func (_m *API) UpdateUser(user *model.User) (*model.User, *model.AppError) {
return r0, r1
}
// UpdateUserActive provides a mock function with given fields: userId, active
func (_m *API) UpdateUserActive(userId string, active bool) *model.AppError {
ret := _m.Called(userId, active)
var r0 *model.AppError
if rf, ok := ret.Get(0).(func(string, bool) *model.AppError); ok {
r0 = rf(userId, active)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*model.AppError)
}
}
return r0
}
// UpdateUserStatus provides a mock function with given fields: userId, status
func (_m *API) UpdateUserStatus(userId string, status string) (*model.Status, *model.AppError) {
ret := _m.Called(userId, status)