From 9dc76c18231f158ab71dfcfae2f1659a4f2a5396 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 7 Feb 2017 09:35:58 -0800 Subject: Implement PUT /users/{user_id}/password endpoint for APIv4 (#5243) --- api4/apitestlib.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'api4/apitestlib.go') 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() } -- cgit v1.2.3-1-g7c22