=== Test case: muc_http_api_SUITE:room_creation_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.73411.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@f9de24452ab3.2024-04-10_11.46.55/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-10_11.59.59/muc_http_api_suite.room_creation_errors.148867.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@f9de24452ab3.2024-04-10_11.46.55/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-10_11.59.59/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@f9de24452ab3.2024-04-10_11.46.55"
=== Started at 2024-04-10 12:00:05
*** User 2024-04-10 12:00:05.155 ***🔗
REST request fails:
Code: 400
Req: {<0.73454.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"be61ca2ec4f609aa">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2932@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:00:04 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing room name\"">>,145,497}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2932@localhost\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-10 12:00:05.156 ***🔗
REST request fails:
Code: 400
Req: {<0.73458.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e4a21391de69ae5c">>}],
<<"{\"owner\":\"alicE_room_creation_errors_2932@localhost\",\"name\":\"wonderland-5.146297\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:00:04 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"18">>}],
<<"\"Missing nickname\"">>,144,523}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"owner\":\"alicE_room_creation_errors_2932@localhost\",\"name\":\"wonderland-5.146297\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-10 12:00:05.158 ***🔗
REST request fails:
Code: 400
Req: {<0.73462.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f367b6bca993542b">>}],
<<"{\"nick\":\"nick\",\"name\":\"wonderland-5.146297\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:00:04 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing owner JID\"">>,145,465}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-5.146297\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-10 12:00:05.160 ***🔗
REST request fails:
Code: 400
Req: {<0.73471.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3fcf6891d9a9a632">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2932@localhost\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:00:04 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid room name\"">>,145,633}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2932@localhost\",\"name\":\"@invalid\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-10 12:00:05.161 ***🔗
REST request fails:
Code: 400
Req: {<0.73479.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"59f0f2e8359b8d47">>}],
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-5.146297\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:00:04 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid owner JID\"">>,145,496}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-5.146297\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-10 12:00:05.163 ***🔗
REST request fails:
Code: 404
Req: {<0.73483.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"aed1143fd756ff71">>}],
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-5.146297\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:00:04 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Given user not found\"">>,146,464}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-5.146297\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
=== Ended at 2024-04-10 12:00:05
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}