=== Test case: muc_http_api_SUITE:room_creation_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.65122.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@7465fd1d5a64.2023-11-23_14.13.58/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-23_14.26.15/muc_http_api_suite.room_creation_errors.181378.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@7465fd1d5a64.2023-11-23_14.13.58/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-23_14.26.15/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@7465fd1d5a64.2023-11-23_14.13.58"
=== Started at 2023-11-23 14:26:20
*** User 2023-11-23 14:26:20.932 ***🔗
REST request fails:
Code: 400
Req: {<0.65161.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"669b4bd7c3fc8614">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2602@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 23 Nov 2023 14:26:20 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing room name\"">>,145,769}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2602@domain.example.com\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2023-11-23 14:26:20.935 ***🔗
REST request fails:
Code: 400
Req: {<0.65165.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b3704dcd338d6b47">>}],
<<"{\"owner\":\"alicE_room_creation_errors_2602@domain.example.com\",\"name\":\"wonderland-80.924005\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 23 Nov 2023 14:26:20 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"18">>}],
<<"\"Missing nickname\"">>,144,546}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"owner\":\"alicE_room_creation_errors_2602@domain.example.com\",\"name\":\"wonderland-80.924005\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2023-11-23 14:26:20.937 ***🔗
REST request fails:
Code: 400
Req: {<0.65171.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"957f06ca6b00e6cb">>}],
<<"{\"nick\":\"nick\",\"name\":\"wonderland-80.924005\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 23 Nov 2023 14:26:20 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing owner JID\"">>,145,495}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,
body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-80.924005\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2023-11-23 14:26:20.938 ***🔗
REST request fails:
Code: 400
Req: {<0.65175.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9c94f7c4ad371541">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2602@domain.example.com\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 23 Nov 2023 14:26:20 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid room name\"">>,145,646}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2602@domain.example.com\",\"name\":\"@invalid\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2023-11-23 14:26:20.940 ***🔗
REST request fails:
Code: 400
Req: {<0.65183.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0388a61c9161a3d1">>}],
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-80.924005\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 23 Nov 2023 14:26:20 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid owner JID\"">>,145,894}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-80.924005\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2023-11-23 14:26:20.942 ***🔗
REST request fails:
Code: 404
Req: {<0.65190.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fcc36ee419b95e38">>}],
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-80.924005\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 23 Nov 2023 14:26:20 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Given user not found\"">>,146,555}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-80.924005\"}">>,
method => <<"POST">>,return_headers => true}
=== Ended at 2023-11-23 14:26:20
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}