24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-09-27 14:30:55 +02:00

Use different username than other tests, but still include the test chars

This commit is contained in:
Badlop 2020-04-01 12:50:29 +02:00
parent a5ea3fa282
commit 222bb1d55d

View File

@ -70,7 +70,7 @@ user_page(Config) ->
?match({_, _}, binary:match(Body, <<"<title>ejabberd Web Admin">>)). ?match({_, _}, binary:match(Body, <<"<title>ejabberd Web Admin">>)).
adduser(Config) -> adduser(Config) ->
User = <<"webadmin-test">>, User = <<"userwebadmin-", (?config(user, Config))/binary>>,
Server = ?config(server, Config), Server = ?config(server, Config),
Password = ?config(password, Config), Password = ?config(password, Config),
Body = make_query( Body = make_query(
@ -82,7 +82,7 @@ adduser(Config) ->
?match({_, _}, binary:match(Body, <<"<a href='../user/">>)). ?match({_, _}, binary:match(Body, <<"<a href='../user/">>)).
changepassword(Config) -> changepassword(Config) ->
User = <<"webadmin-test">>, User = <<"userwebadmin-", (?config(user, Config))/binary>>,
Server = ?config(server, Config), Server = ?config(server, Config),
Password = <<"newpassword-", (?config(password, Config))/binary>>, Password = <<"newpassword-", (?config(password, Config))/binary>>,
Body = make_query( Body = make_query(
@ -95,7 +95,7 @@ changepassword(Config) ->
?match({_, _}, binary:match(Body, <<"<p class='result'>Submitted</p>">>)). ?match({_, _}, binary:match(Body, <<"<p class='result'>Submitted</p>">>)).
removeuser(Config) -> removeuser(Config) ->
User = <<"webadmin-test">>, User = <<"userwebadmin-", (?config(user, Config))/binary>>,
Server = ?config(server, Config), Server = ?config(server, Config),
Body = make_query( Body = make_query(
Config, Config,