=== Test case: muc_http_api_SUITE:room_creation_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.31741.1>},
{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@1d8001dd39bd.2023-11-13_19.21.09/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-13_19.31.44/muc_http_api_suite.room_creation_errors.204930.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@1d8001dd39bd.2023-11-13_19.21.09/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-13_19.31.44/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@1d8001dd39bd.2023-11-13_19.21.09"
=== Started at 2023-11-13 19:31:49
*** User 2023-11-13 19:31:49.477 ***🔗
REST request fails:
Code: 400
Req: {<0.31778.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"88ce4acb5934c844">>}],
<<"{\"owner\":\"alicE_room_creation_errors_2562@domain.example.com\",\"nick\":\"nick\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing room name\"">>,145,596}
Params: #{body =>
<<"{\"owner\":\"alicE_room_creation_errors_2562@domain.example.com\",\"nick\":\"nick\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:31:49.478 ***🔗
REST request fails:
Code: 400
Req: {<0.31784.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fa02b47f54a8a27b">>}],
<<"{\"owner\":\"alicE_room_creation_errors_2562@domain.example.com\",\"name\":\"wonderland-9.468972\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"18">>}],
<<"\"Missing nickname\"">>,144,462}
Params: #{body =>
<<"{\"owner\":\"alicE_room_creation_errors_2562@domain.example.com\",\"name\":\"wonderland-9.468972\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:31:49.479 ***🔗
REST request fails:
Code: 400
Req: {<0.31790.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"24953ea5f55b41c5">>}],
<<"{\"nick\":\"nick\",\"name\":\"wonderland-9.468972\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing owner JID\"">>,145,424}
Params: #{body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-9.468972\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:31:49.480 ***🔗
REST request fails:
Code: 400
Req: {<0.31794.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1130ea1ee9f48d4f">>}],
<<"{\"owner\":\"alicE_room_creation_errors_2562@domain.example.com\",\"nick\":\"nick\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid room name\"">>,145,438}
Params: #{body =>
<<"{\"owner\":\"alicE_room_creation_errors_2562@domain.example.com\",\"nick\":\"nick\",\"name\":\"@invalid\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:31:49.482 ***🔗
REST request fails:
Code: 400
Req: {<0.31803.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c5fb8c7447543160">>}],
<<"{\"owner\":\"@invalid\",\"nick\":\"nick\",\"name\":\"wonderland-9.468972\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid owner JID\"">>,145,426}
Params: #{body =>
<<"{\"owner\":\"@invalid\",\"nick\":\"nick\",\"name\":\"wonderland-9.468972\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:31:49.483 ***🔗
REST request fails:
Code: 404
Req: {<0.31809.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"322114bde4ab3415">>}],
<<"{\"owner\":\"baduser@baddomain\",\"nick\":\"nick\",\"name\":\"wonderland-9.468972\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Given user not found\"">>,146,456}
Params: #{body =>
<<"{\"owner\":\"baduser@baddomain\",\"nick\":\"nick\",\"name\":\"wonderland-9.468972\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2023-11-13 19:31:49
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}