=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.42721.0>},
{preset,"internal_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@ef69bcf5409a.2024-04-22_14.41.23/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_14.54.24/muc_http_api_suite.invite_errors.90498.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@ef69bcf5409a.2024-04-22_14.41.23/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_14.54.24/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@ef69bcf5409a.2024-04-22_14.41.23"
=== Started at 2024-04-22 14:54:29
*** User 2024-04-22 14:54:29.497 ***🔗
REST request:
Code: 201
Req: {<0.42764.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a59273a59b798c3d">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1468@localhost\",\"name\":\"wonderland-69.492995\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-69.492995">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:54:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-69.492995">>,215,944}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1468@localhost\",\"name\":\"wonderland-69.492995\"}">>,
return_headers => true}
*** User 2024-04-22 14:54:29.499 ***🔗
REST request fails:
Code: 400
Req: {<0.42770.0>,<<"/api/mucs/localhost/wonderland-69.492995/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8d880d23e36f9d18">>}],
<<"{\"recipient\":\"bOb_invite_errors_1468@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:54:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,707}
Params: #{path => <<"/api/mucs/localhost/wonderland-69.492995/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1468@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:54:29.501 ***🔗
REST request fails:
Code: 400
Req: {<0.42780.0>,<<"/api/mucs/localhost/wonderland-69.492995/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bbd5d5bd23e4062f">>}],
<<"{\"sender\":\"alicE_invite_errors_1468@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:54:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,515}
Params: #{path => <<"/api/mucs/localhost/wonderland-69.492995/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_1468@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:54:29.503 ***🔗
REST request fails:
Code: 400
Req: {<0.42788.0>,<<"/api/mucs/localhost/wonderland-69.492995/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3da42905e9de8a16">>}],
<<"{\"recipient\":\"bOb_invite_errors_1468@localhost\",\"sender\":\"alicE_invite_errors_1468@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:54:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,516}
Params: #{path => <<"/api/mucs/localhost/wonderland-69.492995/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1468@localhost\",\"sender\":\"alicE_invite_errors_1468@localhost\"}">>,
return_headers => true}
*** User 2024-04-22 14:54:29.504 ***🔗
REST request fails:
Code: 400
Req: {<0.42793.0>,<<"/api/mucs/localhost/wonderland-69.492995/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e2b94759f49bb3e8">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_1468@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:54:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,550}
Params: #{path => <<"/api/mucs/localhost/wonderland-69.492995/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_1468@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:54:29.506 ***🔗
REST request fails:
Code: 400
Req: {<0.42799.0>,<<"/api/mucs/localhost/wonderland-69.492995/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e113164022abac1d">>}],
<<"{\"recipient\":\"bOb_invite_errors_1468@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:54:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,467}
Params: #{path => <<"/api/mucs/localhost/wonderland-69.492995/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1468@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:54:29.507 ***🔗
REST request fails:
Code: 404
Req: {<0.42804.0>,<<"/api/mucs/baddomain/wonderland-69.492995/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2d305d5b17991f59">>}],
<<"{\"recipient\":\"bOb_invite_errors_1468@localhost\",\"sender\":\"alicE_invite_errors_1468@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:54:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,446}
Params: #{path => <<"/api/mucs/baddomain/wonderland-69.492995/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1468@localhost\",\"sender\":\"alicE_invite_errors_1468@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:54:29.509 ***🔗
REST request fails:
Code: 404
Req: {<0.42809.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1cede6de3bc0c3a1">>}],
<<"{\"recipient\":\"bOb_invite_errors_1468@localhost\",\"sender\":\"alicE_invite_errors_1468@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:54:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,566}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1468@localhost\",\"sender\":\"alicE_invite_errors_1468@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
=== Ended at 2024-04-22 14:54:29
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}