=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.68674.0>},
{preset,"odbc_mssql_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@a0c40f52f50c.2024-03-21_07.45.55/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-21_07.59.06/muc_http_api_suite.invite_errors.208642.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@a0c40f52f50c.2024-03-21_07.45.55/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-21_07.59.06/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@a0c40f52f50c.2024-03-21_07.45.55"
=== Started at 2024-03-21 07:59:11
*** User 2024-03-21 07:59:11.855 ***🔗
REST request:
Code: 201
Req: {<0.68723.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"99c281ac94cb26da">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2826@domain.example.com\",\"name\":\"wonderland-51.843169\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-51.843169">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:59:11 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-51.843169">>,224,2164}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2826@domain.example.com\",\"name\":\"wonderland-51.843169\"}">>,
return_headers => true}
*** User 2024-03-21 07:59:11.857 ***🔗
REST request fails:
Code: 400
Req: {<0.68736.0>,
<<"/api/mucs/domain.example.com/wonderland-51.843169/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6b573a4e1b04bcf8">>}],
<<"{\"recipient\":\"bOb_invite_errors_2826@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:59:11 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,659}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-51.843169/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2826@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-03-21 07:59:11.858 ***🔗
REST request fails:
Code: 400
Req: {<0.68742.0>,
<<"/api/mucs/domain.example.com/wonderland-51.843169/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9326d8c9594c8348">>}],
<<"{\"sender\":\"alicE_invite_errors_2826@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:59:11 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,448}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-51.843169/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_2826@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-03-21 07:59:11.860 ***🔗
REST request fails:
Code: 400
Req: {<0.68746.0>,
<<"/api/mucs/domain.example.com/wonderland-51.843169/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e9a0b1225e5a51d2">>}],
<<"{\"recipient\":\"bOb_invite_errors_2826@domain.example.com\",\"sender\":\"alicE_invite_errors_2826@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:59:11 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,532}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-51.843169/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2826@domain.example.com\",\"sender\":\"alicE_invite_errors_2826@domain.example.com\"}">>,
return_headers => true}
*** User 2024-03-21 07:59:11.861 ***🔗
REST request fails:
Code: 400
Req: {<0.68752.0>,
<<"/api/mucs/domain.example.com/wonderland-51.843169/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"474a74bd6cd8e863">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2826@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:59:11 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,612}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-51.843169/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2826@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-03-21 07:59:11.863 ***🔗
REST request fails:
Code: 400
Req: {<0.68755.0>,
<<"/api/mucs/domain.example.com/wonderland-51.843169/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b16644164f1b62b8">>}],
<<"{\"recipient\":\"bOb_invite_errors_2826@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:59:11 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,517}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-51.843169/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2826@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-03-21 07:59:11.864 ***🔗
REST request fails:
Code: 404
Req: {<0.68759.0>,<<"/api/mucs/baddomain/wonderland-51.843169/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a575f8c3b17760a1">>}],
<<"{\"recipient\":\"bOb_invite_errors_2826@domain.example.com\",\"sender\":\"alicE_invite_errors_2826@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:59:11 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,457}
Params: #{path => <<"/api/mucs/baddomain/wonderland-51.843169/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2826@domain.example.com\",\"sender\":\"alicE_invite_errors_2826@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-03-21 07:59:11.865 ***🔗
REST request fails:
Code: 404
Req: {<0.68764.0>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c383838a79339867">>}],
<<"{\"recipient\":\"bOb_invite_errors_2826@domain.example.com\",\"sender\":\"alicE_invite_errors_2826@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:59:11 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,416}
Params: #{path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2826@domain.example.com\",\"sender\":\"alicE_invite_errors_2826@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
=== Ended at 2024-03-21 07:59:11
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}