=== Test case: muc_http_api_SUITE:room_creation_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.64423.0>},
{preset,"pgsql_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@a2fc54846062.2023-11-14_11.38.11/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-14_11.53.20/muc_http_api_suite.room_creation_errors.63877.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@a2fc54846062.2023-11-14_11.38.11/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-14_11.53.20/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]},
{kate,[{username,<<"kate">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrowe;p">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a2fc54846062.2023-11-14_11.38.11"
=== Started at 2023-11-14 11:53:25
*** User 2023-11-14 11:53:25.715 ***🔗
REST request fails:
Code: 400
Req: {<0.64462.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fdfaa584d102329b">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_3139@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:53:24 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing room name\"">>,145,1440}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_3139@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2023-11-14 11:53:25.717 ***🔗
REST request fails:
Code: 400
Req: {<0.64464.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1031a996dd3a0885">>}],
<<"{\"owner\":\"alicE_room_creation_errors_3139@domain.example.com\",\"name\":\"wonderland-5.700546\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:53:24 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"18">>}],
<<"\"Missing nickname\"">>,144,629}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"owner\":\"alicE_room_creation_errors_3139@domain.example.com\",\"name\":\"wonderland-5.700546\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2023-11-14 11:53:25.719 ***🔗
REST request fails:
Code: 400
Req: {<0.64470.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f5a144c6c105c7c6">>}],
<<"{\"nick\":\"nick\",\"name\":\"wonderland-5.700546\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:53:24 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing owner JID\"">>,145,781}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-5.700546\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2023-11-14 11:53:25.721 ***🔗
REST request fails:
Code: 400
Req: {<0.64478.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"45c64e35c21d4748">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_3139@domain.example.com\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:53:24 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid room name\"">>,145,769}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_3139@domain.example.com\",\"name\":\"@invalid\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2023-11-14 11:53:25.723 ***🔗
REST request fails:
Code: 400
Req: {<0.64483.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eaa389db6384607d">>}],
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-5.700546\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:53:24 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid owner JID\"">>,145,748}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-5.700546\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2023-11-14 11:53:25.725 ***🔗
REST request fails:
Code: 404
Req: {<0.64489.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6c0b717458e58dbf">>}],
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-5.700546\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:53:24 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Given user not found\"">>,146,690}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-5.700546\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
=== Ended at 2023-11-14 11:53:25
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}