=== Test case: muc_http_api_SUITE:room_creation_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.42459.0>},
{preset,"internal_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@d02a26308542.2024-03-11_11.28.58/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-11_11.42.09/muc_http_api_suite.room_creation_errors.83458.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@d02a26308542.2024-03-11_11.28.58/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-11_11.42.09/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@d02a26308542.2024-03-11_11.28.58"
=== Started at 2024-03-11 11:42:15
*** User 2024-03-11 11:42:15.034 ***🔗
REST request fails:
Code: 400
Req: {<0.42500.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"aaab86ae830b8e9b">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1474@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:42:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing room name\"">>,145,691}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1474@localhost\"}">>,
return_headers => true}
*** User 2024-03-11 11:42:15.036 ***🔗
REST request fails:
Code: 400
Req: {<0.42506.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6f086dd4eb6106ce">>}],
<<"{\"owner\":\"alicE_room_creation_errors_1474@localhost\",\"name\":\"wonderland-35.29903\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:42:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"18">>}],
<<"\"Missing nickname\"">>,144,597}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"owner\":\"alicE_room_creation_errors_1474@localhost\",\"name\":\"wonderland-35.29903\"}">>,
return_headers => true}
*** User 2024-03-11 11:42:15.038 ***🔗
REST request fails:
Code: 400
Req: {<0.42512.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7d722c1dda606c7f">>}],
<<"{\"nick\":\"nick\",\"name\":\"wonderland-35.29903\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:42:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing owner JID\"">>,145,654}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-35.29903\"}">>,
return_headers => true}
*** User 2024-03-11 11:42:15.040 ***🔗
REST request fails:
Code: 400
Req: {<0.42520.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8a6bf49ded7faf2b">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1474@localhost\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:42:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid room name\"">>,145,629}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1474@localhost\",\"name\":\"@invalid\"}">>,
return_headers => true}
*** User 2024-03-11 11:42:15.042 ***🔗
REST request fails:
Code: 400
Req: {<0.42527.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"879481dd4b25134b">>}],
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-35.29903\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:42:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid owner JID\"">>,145,516}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-35.29903\"}">>,
return_headers => true}
*** User 2024-03-11 11:42:15.044 ***🔗
REST request fails:
Code: 404
Req: {<0.42533.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d810ba3bda56612e">>}],
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-35.29903\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:42:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Given user not found\"">>,146,633}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-35.29903\"}">>,
return_headers => true}
=== Ended at 2024-03-11 11:42:15
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}