=== Test case: muc_http_api_SUITE:room_creation_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.7194.1>},
{preset,"ldap_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@f79facad4ed7.2024-01-15_11.58.37/big_tests.tests.muc_http_api_SUITE.logs/run.2024-01-15_12.07.57/muc_http_api_suite.room_creation_errors.13445.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@f79facad4ed7.2024-01-15_11.58.37/big_tests.tests.muc_http_api_SUITE.logs/run.2024-01-15_12.07.57/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@f79facad4ed7.2024-01-15_11.58.37"
=== Started at 2024-01-15 12:08:03
*** User 2024-01-15 12:08:03.088 ***🔗
REST request fails:
Code: 400
Req: {<0.7231.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"25fe5d32a6c7944f">>}],
<<"{\"owner\":\"alicE_room_creation_errors_1335@localhost\",\"nick\":\"nick\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing room name\"">>,145,822}
Params: #{body =>
<<"{\"owner\":\"alicE_room_creation_errors_1335@localhost\",\"nick\":\"nick\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:08:03.091 ***🔗
REST request fails:
Code: 400
Req: {<0.7239.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1afd6b01dc4900bc">>}],
<<"{\"owner\":\"alicE_room_creation_errors_1335@localhost\",\"name\":\"wonderland-83.80997\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"18">>}],
<<"\"Missing nickname\"">>,144,815}
Params: #{body =>
<<"{\"owner\":\"alicE_room_creation_errors_1335@localhost\",\"name\":\"wonderland-83.80997\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:08:03.092 ***🔗
REST request fails:
Code: 400
Req: {<0.7245.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"542aaeeeb27cb292">>}],
<<"{\"nick\":\"nick\",\"name\":\"wonderland-83.80997\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing owner JID\"">>,145,504}
Params: #{body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-83.80997\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:08:03.094 ***🔗
REST request fails:
Code: 400
Req: {<0.7253.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4c6ccabf27b0946c">>}],
<<"{\"owner\":\"alicE_room_creation_errors_1335@localhost\",\"nick\":\"nick\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid room name\"">>,145,413}
Params: #{body =>
<<"{\"owner\":\"alicE_room_creation_errors_1335@localhost\",\"nick\":\"nick\",\"name\":\"@invalid\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:08:03.096 ***🔗
REST request fails:
Code: 400
Req: {<0.7260.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a5dfb08422cc93ed">>}],
<<"{\"owner\":\"@invalid\",\"nick\":\"nick\",\"name\":\"wonderland-83.80997\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid owner JID\"">>,145,516}
Params: #{body =>
<<"{\"owner\":\"@invalid\",\"nick\":\"nick\",\"name\":\"wonderland-83.80997\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:08:03.098 ***🔗
REST request fails:
Code: 404
Req: {<0.7266.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b30de93033fb9667">>}],
<<"{\"owner\":\"baduser@baddomain\",\"nick\":\"nick\",\"name\":\"wonderland-83.80997\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Given user not found\"">>,146,631}
Params: #{body =>
<<"{\"owner\":\"baduser@baddomain\",\"nick\":\"nick\",\"name\":\"wonderland-83.80997\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2024-01-15 12:08:03
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}