=== Test case: muc_http_api_SUITE:room_creation_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.68499.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@1e8fc18f2236.2024-04-26_12.39.24/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_12.51.49/muc_http_api_suite.room_creation_errors.65669.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@1e8fc18f2236.2024-04-26_12.39.24/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_12.51.49/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@1e8fc18f2236.2024-04-26_12.39.24"
=== Started at 2024-04-26 12:51:55
*** User 2024-04-26 12:51:55.647 ***🔗
REST request fails:
Code: 400
Req: {<0.68536.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8a10fe186e305e1f">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2918@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:51:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing room name\"">>,145,1579}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2918@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-26 12:51:55.660 ***🔗
REST request fails:
Code: 400
Req: {<0.68544.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f370c9a9685f349c">>}],
<<"{\"owner\":\"alicE_room_creation_errors_2918@domain.example.com\",\"name\":\"wonderland-15.625839\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:51:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"18">>}],
<<"\"Missing nickname\"">>,144,4695}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"owner\":\"alicE_room_creation_errors_2918@domain.example.com\",\"name\":\"wonderland-15.625839\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-26 12:51:55.666 ***🔗
REST request fails:
Code: 400
Req: {<0.68548.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a849d553ecf60c70">>}],
<<"{\"nick\":\"nick\",\"name\":\"wonderland-15.625839\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:51:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing owner JID\"">>,145,1926}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-15.625839\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-26 12:51:55.672 ***🔗
REST request fails:
Code: 400
Req: {<0.68554.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8c0df927123d85bb">>}],
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2918@domain.example.com\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:51:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid room name\"">>,145,1423}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2918@domain.example.com\",\"name\":\"@invalid\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-26 12:51:55.684 ***🔗
REST request fails:
Code: 400
Req: {<0.68560.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3462d74f11b248a5">>}],
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-15.625839\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:51:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid owner JID\"">>,145,3908}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-15.625839\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-26 12:51:55.693 ***🔗
REST request fails:
Code: 404
Req: {<0.68567.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"78f9377c83dba743">>}],
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-15.625839\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:51:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Given user not found\"">>,146,1798}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-15.625839\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
=== Ended at 2024-04-26 12:51:55
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}