=== Test case: muc_http_api_SUITE:room_creation_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.39994.0>},
{preset,"ldap_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@5bbc5a46dfe3.2024-01-15_11.59.33/big_tests.tests.muc_http_api_SUITE.logs/run.2024-01-15_12.09.27/muc_http_api_suite.room_creation_errors.84482.html"},
{tc_group_properties,[{name,negative},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/muc_http_api_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@5bbc5a46dfe3.2024-01-15_11.59.33/big_tests.tests.muc_http_api_SUITE.logs/run.2024-01-15_12.09.27/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]},
{kate,[{username,<<"kate">>},
{server,<<"localhost">>},
{password,<<"makrowe;p">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@5bbc5a46dfe3.2024-01-15_11.59.33"
=== Started at 2024-01-15 12:09:32
*** User 2024-01-15 12:09:32.910 ***🔗
REST request fails:
Code: 400
Req: {<0.40031.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"109bd8b191b34a06">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1334@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:32 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing room name\"">>,145,712}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1334@localhost\"}">>,
role => admin,return_headers => true}
*** User 2024-01-15 12:09:32.912 ***🔗
REST request fails:
Code: 400
Req: {<0.40039.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"41006c1155c0021f">>}],
<<"{\"owner\":\"alicE_room_creation_errors_1334@localhost\",\"name\":\"wonderland-72.901313\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:32 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"18">>}],
<<"\"Missing nickname\"">>,144,671}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"owner\":\"alicE_room_creation_errors_1334@localhost\",\"name\":\"wonderland-72.901313\"}">>,
role => admin,return_headers => true}
*** User 2024-01-15 12:09:32.913 ***🔗
REST request fails:
Code: 400
Req: {<0.40045.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"507d5864f529eb97">>}],
<<"{\"nick\":\"nick\",\"name\":\"wonderland-72.901313\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:32 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing owner JID\"">>,145,706}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-72.901313\"}">>,
role => admin,return_headers => true}
*** User 2024-01-15 12:09:32.915 ***🔗
REST request fails:
Code: 400
Req: {<0.40051.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b17a9c37294b11e2">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1334@localhost\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:32 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid room name\"">>,145,723}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1334@localhost\",\"name\":\"@invalid\"}">>,
role => admin,return_headers => true}
*** User 2024-01-15 12:09:32.918 ***🔗
REST request fails:
Code: 400
Req: {<0.40058.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c3fe2dfc8cad2299">>}],
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-72.901313\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:32 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid owner JID\"">>,145,615}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-72.901313\"}">>,
role => admin,return_headers => true}
*** User 2024-01-15 12:09:32.919 ***🔗
REST request fails:
Code: 404
Req: {<0.40064.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e21b5afb7f5f3485">>}],
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-72.901313\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:32 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Given user not found\"">>,146,563}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-72.901313\"}">>,
role => admin,return_headers => true}
=== Ended at 2024-01-15 12:09:32
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}