=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.68542.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@528a5a4ce401.2024-04-09_11.36.09/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-09_11.48.26/muc_http_api_suite.invite_errors.200962.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@528a5a4ce401.2024-04-09_11.36.09/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-09_11.48.26/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@528a5a4ce401.2024-04-09_11.36.09"
=== Started at 2024-04-09 11:48:32
*** User 2024-04-09 11:48:32.116 ***🔗
REST request:
Code: 201
Req: {<0.68589.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c69a2f2cb5008011">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2955@domain.example.com\",\"name\":\"wonderland-12.94852\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-12.94852">>},
{<<"date">>,<<"Tue, 09 Apr 2024 11:48:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-12.94852">>,222,3743}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2955@domain.example.com\",\"name\":\"wonderland-12.94852\"}">>,
role => admin,return_headers => true}
*** User 2024-04-09 11:48:32.122 ***🔗
REST request fails:
Code: 400
Req: {<0.68597.0>,
<<"/api/mucs/domain.example.com/wonderland-12.94852/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d6acc60c4c07fc0c">>}],
<<"{\"recipient\":\"bOb_invite_errors_2955@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 11:48:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,768}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-12.94852/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2955@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-09 11:48:32.128 ***🔗
REST request fails:
Code: 400
Req: {<0.68606.0>,
<<"/api/mucs/domain.example.com/wonderland-12.94852/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"044dc6f3dedfecde">>}],
<<"{\"sender\":\"alicE_invite_errors_2955@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 11:48:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,4686}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-12.94852/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_2955@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-09 11:48:32.137 ***🔗
REST request fails:
Code: 400
Req: {<0.68612.0>,
<<"/api/mucs/domain.example.com/wonderland-12.94852/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dd5cf360fdb80709">>}],
<<"{\"recipient\":\"bOb_invite_errors_2955@domain.example.com\",\"sender\":\"alicE_invite_errors_2955@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 11:48:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,855}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-12.94852/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2955@domain.example.com\",\"sender\":\"alicE_invite_errors_2955@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2024-04-09 11:48:32.143 ***🔗
REST request fails:
Code: 400
Req: {<0.68621.0>,
<<"/api/mucs/domain.example.com/wonderland-12.94852/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"722ca9a0081ec325">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2955@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 11:48:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,2635}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-12.94852/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2955@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-09 11:48:32.149 ***🔗
REST request fails:
Code: 400
Req: {<0.68626.0>,
<<"/api/mucs/domain.example.com/wonderland-12.94852/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e9f0600293de8c42">>}],
<<"{\"recipient\":\"bOb_invite_errors_2955@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 11:48:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,977}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-12.94852/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2955@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-09 11:48:32.152 ***🔗
REST request fails:
Code: 404
Req: {<0.68631.0>,<<"/api/mucs/baddomain/wonderland-12.94852/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"daf656d94ea2cdb4">>}],
<<"{\"recipient\":\"bOb_invite_errors_2955@domain.example.com\",\"sender\":\"alicE_invite_errors_2955@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 11:48:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,586}
Params: #{path => <<"/api/mucs/baddomain/wonderland-12.94852/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2955@domain.example.com\",\"sender\":\"alicE_invite_errors_2955@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-09 11:48:32.154 ***🔗
REST request fails:
Code: 404
Req: {<0.68633.0>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"809421a3e1adb5e7">>}],
<<"{\"recipient\":\"bOb_invite_errors_2955@domain.example.com\",\"sender\":\"alicE_invite_errors_2955@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 11:48:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,899}
Params: #{path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2955@domain.example.com\",\"sender\":\"alicE_invite_errors_2955@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
=== Ended at 2024-04-09 11:48:32
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}