=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.42583.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@8f270c211212.2024-04-22_14.32.33/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_14.45.04/muc_http_api_suite.invite_errors.79362.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@8f270c211212.2024-04-22_14.32.33/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_14.45.04/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@8f270c211212.2024-04-22_14.32.33"
=== Started at 2024-04-22 14:45:09
*** User 2024-04-22 14:45:09.947 ***🔗
REST request:
Code: 201
Req: {<0.42624.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d8217f1f5e863a62">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1476@localhost\",\"name\":\"wonderland-9.938780\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-9.938780">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:45:09 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-9.938780">>,213,1428}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1476@localhost\",\"name\":\"wonderland-9.938780\"}">>,
return_headers => true}
*** User 2024-04-22 14:45:09.949 ***🔗
REST request fails:
Code: 400
Req: {<0.42634.0>,<<"/api/mucs/localhost/wonderland-9.938780/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b052800755ee309d">>}],
<<"{\"recipient\":\"bOb_invite_errors_1476@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:45:09 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,730}
Params: #{path => <<"/api/mucs/localhost/wonderland-9.938780/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1476@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:45:09.951 ***🔗
REST request fails:
Code: 400
Req: {<0.42642.0>,<<"/api/mucs/localhost/wonderland-9.938780/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b844d5e89700d7bd">>}],
<<"{\"sender\":\"alicE_invite_errors_1476@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:45:09 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,577}
Params: #{path => <<"/api/mucs/localhost/wonderland-9.938780/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_1476@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:45:09.953 ***🔗
REST request fails:
Code: 400
Req: {<0.42647.0>,<<"/api/mucs/localhost/wonderland-9.938780/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4afbd83a27c3f153">>}],
<<"{\"recipient\":\"bOb_invite_errors_1476@localhost\",\"sender\":\"alicE_invite_errors_1476@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:45:09 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,566}
Params: #{path => <<"/api/mucs/localhost/wonderland-9.938780/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1476@localhost\",\"sender\":\"alicE_invite_errors_1476@localhost\"}">>,
return_headers => true}
*** User 2024-04-22 14:45:09.955 ***🔗
REST request fails:
Code: 400
Req: {<0.42655.0>,<<"/api/mucs/localhost/wonderland-9.938780/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3e7ad4ae00be0dd5">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_1476@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:45:09 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,547}
Params: #{path => <<"/api/mucs/localhost/wonderland-9.938780/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_1476@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:45:09.957 ***🔗
REST request fails:
Code: 400
Req: {<0.42659.0>,<<"/api/mucs/localhost/wonderland-9.938780/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a0aff5a33c0b2fdc">>}],
<<"{\"recipient\":\"bOb_invite_errors_1476@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:45:09 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,665}
Params: #{path => <<"/api/mucs/localhost/wonderland-9.938780/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1476@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:45:09.959 ***🔗
REST request fails:
Code: 404
Req: {<0.42666.0>,<<"/api/mucs/baddomain/wonderland-9.938780/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b045ac530d6e63a4">>}],
<<"{\"recipient\":\"bOb_invite_errors_1476@localhost\",\"sender\":\"alicE_invite_errors_1476@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:45:09 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,531}
Params: #{path => <<"/api/mucs/baddomain/wonderland-9.938780/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1476@localhost\",\"sender\":\"alicE_invite_errors_1476@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:45:09.962 ***🔗
REST request fails:
Code: 404
Req: {<0.42671.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0f0ea18380f4a35a">>}],
<<"{\"recipient\":\"bOb_invite_errors_1476@localhost\",\"sender\":\"alicE_invite_errors_1476@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:45:09 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,689}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1476@localhost\",\"sender\":\"alicE_invite_errors_1476@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
=== Ended at 2024-04-22 14:45:09
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}