=== Test case: muc_http_api_SUITE:room_creation_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.67026.0>},
{preset,"pgsql_cets"},
{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@956535c0d19a.2024-04-25_12.01.24/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_12.13.00/muc_http_api_suite.room_creation_errors.126339.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@956535c0d19a.2024-04-25_12.01.24/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_12.13.00/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@956535c0d19a.2024-04-25_12.01.24"
=== Started at 2024-04-25 12:13:06
*** User 2024-04-25 12:13:06.173 ***🔗
REST request fails:
Code: 400
Req: {<0.67063.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ae42dfb3eefb10fb">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2557@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:06 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing room name\"">>,145,855}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2557@localhost\"}">>,
return_headers => true}
*** User 2024-04-25 12:13:06.175 ***🔗
REST request fails:
Code: 400
Req: {<0.67071.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"62975830db55f29f">>}],
<<"{\"owner\":\"alicE_room_creation_errors_2557@localhost\",\"name\":\"wonderland-86.165488\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:06 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"18">>}],
<<"\"Missing nickname\"">>,144,581}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"owner\":\"alicE_room_creation_errors_2557@localhost\",\"name\":\"wonderland-86.165488\"}">>,
return_headers => true}
*** User 2024-04-25 12:13:06.177 ***🔗
REST request fails:
Code: 400
Req: {<0.67075.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d60d9518278a51ad">>}],
<<"{\"nick\":\"nick\",\"name\":\"wonderland-86.165488\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:06 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing owner JID\"">>,145,529}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-86.165488\"}">>,
return_headers => true}
*** User 2024-04-25 12:13:06.179 ***🔗
REST request fails:
Code: 400
Req: {<0.67081.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"68b87ec358a4a07d">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2557@localhost\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:06 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid room name\"">>,145,722}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2557@localhost\",\"name\":\"@invalid\"}">>,
return_headers => true}
*** User 2024-04-25 12:13:06.181 ***🔗
REST request fails:
Code: 400
Req: {<0.67089.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5938144199d5b9f7">>}],
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-86.165488\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:06 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid owner JID\"">>,145,504}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-86.165488\"}">>,
return_headers => true}
*** User 2024-04-25 12:13:06.182 ***🔗
REST request fails:
Code: 404
Req: {<0.67096.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6e6596e5667c6f7b">>}],
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-86.165488\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:06 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Given user not found\"">>,146,621}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-86.165488\"}">>,
return_headers => true}
=== Ended at 2024-04-25 12:13:06
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}