summaryrefslogtreecommitdiffstats
path: root/api4/apitestlib.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-02-07 09:35:58 -0800
committerGitHub <noreply@github.com>2017-02-07 09:35:58 -0800
commit9dc76c18231f158ab71dfcfae2f1659a4f2a5396 (patch)
tree57a46a30e52e9f955f4d74d93fc6153640fbecc2 /api4/apitestlib.go
parentba18374bd1b2644e577247204fad17dd52913b9b (diff)
downloadchat-9dc76c18231f158ab71dfcfae2f1659a4f2a5396.tar.gz
chat-9dc76c18231f158ab71dfcfae2f1659a4f2a5396.tar.bz2
chat-9dc76c18231f158ab71dfcfae2f1659a4f2a5396.zip
Implement PUT /users/{user_id}/password endpoint for APIv4 (#5243)
Diffstat (limited to 'api4/apitestlib.go')
-rw-r--r--api4/apitestlib.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/api4/apitestlib.go b/api4/apitestlib.go
index f647ffa9c..2eaed4fd0 100644
--- a/api4/apitestlib.go
+++ b/api4/apitestlib.go
@@ -61,6 +61,8 @@ func Setup() *TestHelper {
}
func TearDown() {
+ utils.DisableDebugLogForTest()
+
options := map[string]bool{}
options[store.USER_SEARCH_OPTION_NAMES_ONLY_NO_FULL_NAME] = true
if result := <-app.Srv.Store.User().Search("", "fakeuser", options); result.Err != nil {
@@ -86,6 +88,8 @@ func TearDown() {
}
}
}
+
+ utils.EnableDebugLogForTest()
}
func (me *TestHelper) InitBasic() *TestHelper {
@@ -208,7 +212,7 @@ func (me *TestHelper) LoginBasicWithClient(client *model.Client4) {
func (me *TestHelper) LoginBasic2WithClient(client *model.Client4) {
utils.DisableDebugLogForTest()
- client.Login(me.BasicUser.Email, me.BasicUser.Password)
+ client.Login(me.BasicUser2.Email, me.BasicUser2.Password)
utils.EnableDebugLogForTest()
}