=== Test case: muc_http_api_SUITE:room_creation_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.91353.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@9e4a8689b615.2024-04-16_10.12.19/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-16_10.26.55/muc_http_api_suite.room_creation_errors.282370.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@9e4a8689b615.2024-04-16_10.12.19/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-16_10.26.55/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@9e4a8689b615.2024-04-16_10.12.19"
=== Started at 2024-04-16 10:27:00
*** User 2024-04-16 10:27:00.422 ***🔗
REST request fails:
Code: 400
Req: {<0.91390.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"965bf05459b86600">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_3598@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:27:00 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing room name\"">>,145,646}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_3598@localhost\"}">>,
role => admin,return_headers => true}
*** User 2024-04-16 10:27:00.424 ***🔗
REST request fails:
Code: 400
Req: {<0.91392.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b66ed7fdfa7e96da">>}],
<<"{\"owner\":\"alicE_room_creation_errors_3598@localhost\",\"name\":\"wonderland-20.410939\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:27:00 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"18">>}],
<<"\"Missing nickname\"">>,144,677}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"owner\":\"alicE_room_creation_errors_3598@localhost\",\"name\":\"wonderland-20.410939\"}">>,
role => admin,return_headers => true}
*** User 2024-04-16 10:27:00.426 ***🔗
REST request fails:
Code: 400
Req: {<0.91400.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8719817dfd1dae64">>}],
<<"{\"nick\":\"nick\",\"name\":\"wonderland-20.410939\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:27:00 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing owner JID\"">>,145,695}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-20.410939\"}">>,
role => admin,return_headers => true}
*** User 2024-04-16 10:27:00.428 ***🔗
REST request fails:
Code: 400
Req: {<0.91406.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6992d643818a8878">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_3598@localhost\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:27:00 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid room name\"">>,145,674}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_3598@localhost\",\"name\":\"@invalid\"}">>,
role => admin,return_headers => true}
*** User 2024-04-16 10:27:00.430 ***🔗
REST request fails:
Code: 400
Req: {<0.91412.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5da12b80c9c5c8ba">>}],
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-20.410939\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:27:00 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid owner JID\"">>,145,573}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-20.410939\"}">>,
role => admin,return_headers => true}
*** User 2024-04-16 10:27:00.432 ***🔗
REST request fails:
Code: 404
Req: {<0.91421.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"11b09b8be013c916">>}],
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-20.410939\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:27:00 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Given user not found\"">>,146,572}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-20.410939\"}">>,
role => admin,return_headers => true}
=== Ended at 2024-04-16 10:27:00
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}