=== Test case: muc_http_api_SUITE:room_creation_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.73504.0>},
{preset,"odbc_mssql_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@706a14dea409.2024-04-23_08.57.00/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_09.11.56/muc_http_api_suite.room_creation_errors.104836.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@706a14dea409.2024-04-23_08.57.00/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_09.11.56/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@706a14dea409.2024-04-23_08.57.00"
=== Started at 2024-04-23 09:12:01
*** User 2024-04-23 09:12:01.720 ***🔗
REST request fails:
Code: 400
Req: {<0.73545.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"87a7a652f9c77b51">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2945@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 09:12:01 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing room name\"">>,145,672}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2945@localhost\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-23 09:12:01.722 ***🔗
REST request fails:
Code: 400
Req: {<0.73549.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"66948eac91ed15f7">>}],
<<"{\"owner\":\"alicE_room_creation_errors_2945@localhost\",\"name\":\"wonderland-21.711870\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 09:12:01 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"18">>}],
<<"\"Missing nickname\"">>,144,752}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"owner\":\"alicE_room_creation_errors_2945@localhost\",\"name\":\"wonderland-21.711870\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-23 09:12:01.724 ***🔗
REST request fails:
Code: 400
Req: {<0.73553.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9672a49b9c1592c9">>}],
<<"{\"nick\":\"nick\",\"name\":\"wonderland-21.711870\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 09:12:01 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing owner JID\"">>,145,714}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-21.711870\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-23 09:12:01.726 ***🔗
REST request fails:
Code: 400
Req: {<0.73560.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0b03ae952ea7b56a">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2945@localhost\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 09:12:01 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid room name\"">>,145,567}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2945@localhost\",\"name\":\"@invalid\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-23 09:12:01.728 ***🔗
REST request fails:
Code: 400
Req: {<0.73564.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3f9c8074f658c410">>}],
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-21.711870\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 09:12:01 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid owner JID\"">>,145,744}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-21.711870\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-23 09:12:01.729 ***🔗
REST request fails:
Code: 404
Req: {<0.73570.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4b091ea1dd0310a0">>}],
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-21.711870\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 09:12:01 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Given user not found\"">>,146,465}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-21.711870\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
=== Ended at 2024-04-23 09:12:01
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}