From 6c52438128bec87bfa1b80f0a6599a6ba63a78cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Wed, 1 Apr 2020 11:44:38 +0200 Subject: [PATCH] Make webadmin tests use different user for changepassword/unregister Using username that is shared with other tests causes login problems in other places. --- test/webadmin_tests.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/webadmin_tests.erl b/test/webadmin_tests.erl index a5e037f94..160b24a09 100644 --- a/test/webadmin_tests.erl +++ b/test/webadmin_tests.erl @@ -70,7 +70,7 @@ user_page(Config) -> ?match({_, _}, binary:match(Body, <<"ejabberd Web Admin">>)). adduser(Config) -> - User = ?config(user, Config), + User = <<"webadmin-test">>, Server = ?config(server, Config), Password = ?config(password, Config), Body = make_query( @@ -82,7 +82,7 @@ adduser(Config) -> ?match({_, _}, binary:match(Body, <<"<a href='../user/">>)). changepassword(Config) -> - User = ?config(user, Config), + User = <<"webadmin-test">>, Server = ?config(server, Config), Password = <<"newpassword-", (?config(password, Config))/binary>>, Body = make_query( @@ -95,7 +95,7 @@ changepassword(Config) -> ?match({_, _}, binary:match(Body, <<"<p class='result'>Submitted</p>">>)). removeuser(Config) -> - User = ?config(user, Config), + User = <<"webadmin-test">>, Server = ?config(server, Config), Body = make_query( Config,