=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.4656.2>},
{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@6b2f53facccb.2024-04-22_14.31.29/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_14.43.26/muc_http_api_suite.invite_errors.138371.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@6b2f53facccb.2024-04-22_14.31.29/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_14.43.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@6b2f53facccb.2024-04-22_14.31.29"
=== Started at 2024-04-22 14:43:32
*** User 2024-04-22 14:43:32.101 ***🔗
REST request:
Code: 201
Req: {<0.4697.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c9b242901b594ff7">>}],
<<"{\"owner\":\"alicE_invite_errors_2893@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-12.83501\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-12.83501">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:43:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-12.83501">>,222,3452}
Params: #{body =>
<<"{\"owner\":\"alicE_invite_errors_2893@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-12.83501\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:43:32.103 ***🔗
REST request fails:
Code: 400
Req: {<0.4709.2>,
<<"/api/mucs/domain.example.com/wonderland-12.83501/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8c7c455d965b4923">>}],
<<"{\"recipient\":\"bOb_invite_errors_2893@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:43:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,726}
Params: #{body =>
<<"{\"recipient\":\"bOb_invite_errors_2893@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-12.83501/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:43:32.105 ***🔗
REST request fails:
Code: 400
Req: {<0.4717.2>,
<<"/api/mucs/domain.example.com/wonderland-12.83501/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bb59278e5b17768d">>}],
<<"{\"sender\":\"alicE_invite_errors_2893@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:43:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,796}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2893@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-12.83501/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:43:32.107 ***🔗
REST request fails:
Code: 400
Req: {<0.4724.2>,
<<"/api/mucs/domain.example.com/wonderland-12.83501/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8854aff16e127b27">>}],
<<"{\"sender\":\"alicE_invite_errors_2893@domain.example.com\",\"recipient\":\"bOb_invite_errors_2893@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:43:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,710}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2893@domain.example.com\",\"recipient\":\"bOb_invite_errors_2893@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-12.83501/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:43:32.109 ***🔗
REST request fails:
Code: 400
Req: {<0.4730.2>,
<<"/api/mucs/domain.example.com/wonderland-12.83501/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"481b8eb86416ecba">>}],
<<"{\"sender\":\"alicE_invite_errors_2893@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:43:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,597}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2893@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-12.83501/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:43:32.112 ***🔗
REST request fails:
Code: 400
Req: {<0.4732.2>,
<<"/api/mucs/domain.example.com/wonderland-12.83501/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"45bdee1948b1196f">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2893@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:43:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,629}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2893@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-12.83501/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:43:32.114 ***🔗
REST request fails:
Code: 404
Req: {<0.4738.2>,<<"/api/mucs/baddomain/wonderland-12.83501/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"869f4e591f7ed1bb">>}],
<<"{\"sender\":\"alicE_invite_errors_2893@domain.example.com\",\"recipient\":\"bOb_invite_errors_2893@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:43:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,622}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2893@domain.example.com\",\"recipient\":\"bOb_invite_errors_2893@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/baddomain/wonderland-12.83501/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:43:32.116 ***🔗
REST request fails:
Code: 404
Req: {<0.4741.2>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1504fa7b69c3513e">>}],
<<"{\"sender\":\"alicE_invite_errors_2893@domain.example.com\",\"recipient\":\"bOb_invite_errors_2893@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:43:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,765}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2893@domain.example.com\",\"recipient\":\"bOb_invite_errors_2893@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2024-04-22 14:43:32
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}