=== Test case: muc_http_api_SUITE:room_creation_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.67090.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@5f60ef475eab.2024-02-23_17.31.31/big_tests.tests.muc_http_api_SUITE.logs/run.2024-02-23_17.44.18/muc_http_api_suite.room_creation_errors.144259.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@5f60ef475eab.2024-02-23_17.31.31/big_tests.tests.muc_http_api_SUITE.logs/run.2024-02-23_17.44.18/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@5f60ef475eab.2024-02-23_17.31.31"
=== Started at 2024-02-23 17:44:24
*** User 2024-02-23 17:44:24.170 ***🔗
REST request fails:
Code: 400
Req: {<0.67131.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2c94e38f7f84fb90">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2752@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 17:44:23 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing room name\"">>,145,793}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2752@domain.example.com\"}">>,
return_headers => true}
*** User 2024-02-23 17:44:24.172 ***🔗
REST request fails:
Code: 400
Req: {<0.67133.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"78793a745489bc03">>}],
<<"{\"owner\":\"alicE_room_creation_errors_2752@domain.example.com\",\"name\":\"wonderland-64.148034\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 17:44:23 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"18">>}],
<<"\"Missing nickname\"">>,144,611}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"owner\":\"alicE_room_creation_errors_2752@domain.example.com\",\"name\":\"wonderland-64.148034\"}">>,
return_headers => true}
*** User 2024-02-23 17:44:24.174 ***🔗
REST request fails:
Code: 400
Req: {<0.67142.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"81451b617909523f">>}],
<<"{\"nick\":\"nick\",\"name\":\"wonderland-64.148034\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 17:44:23 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing owner JID\"">>,145,664}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-64.148034\"}">>,
return_headers => true}
*** User 2024-02-23 17:44:24.176 ***🔗
REST request fails:
Code: 400
Req: {<0.67144.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2563be1a618d5bc0">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2752@domain.example.com\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 17:44:23 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid room name\"">>,145,723}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2752@domain.example.com\",\"name\":\"@invalid\"}">>,
return_headers => true}
*** User 2024-02-23 17:44:24.178 ***🔗
REST request fails:
Code: 400
Req: {<0.67150.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"884f322dfe5ced16">>}],
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-64.148034\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 17:44:23 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid owner JID\"">>,145,658}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-64.148034\"}">>,
return_headers => true}
*** User 2024-02-23 17:44:24.179 ***🔗
REST request fails:
Code: 404
Req: {<0.67156.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"13ce2a9dce7b05e2">>}],
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-64.148034\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 17:44:23 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Given user not found\"">>,146,568}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-64.148034\"}">>,
return_headers => true}
=== Ended at 2024-02-23 17:44:24
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}