mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Use different username than other tests, but still include the test chars
This commit is contained in:
parent
a5ea3fa282
commit
222bb1d55d
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user