=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.2927.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@0305a9e9395e.2024-04-16_11.58.27/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-16_12.10.00/muc_http_api_suite.invite_errors.106116.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@0305a9e9395e.2024-04-16_11.58.27/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-16_12.10.00/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@0305a9e9395e.2024-04-16_11.58.27"
=== Started at 2024-04-16 12:10:05
*** User 2024-04-16 12:10:05.953 ***🔗
REST request:
Code: 201
Req: {<0.2972.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"144c4765dcc6a366">>}],
<<"{\"owner\":\"alicE_invite_errors_2809@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-5.937620\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-5.937620">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:10:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-5.937620">>,222,3650}
Params: #{body =>
<<"{\"owner\":\"alicE_invite_errors_2809@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-5.937620\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 12:10:05.956 ***🔗
REST request fails:
Code: 400
Req: {<0.2984.2>,
<<"/api/mucs/domain.example.com/wonderland-5.937620/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7c83097dc2f36be9">>}],
<<"{\"recipient\":\"bOb_invite_errors_2809@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:10:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,1059}
Params: #{body =>
<<"{\"recipient\":\"bOb_invite_errors_2809@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-5.937620/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 12:10:05.960 ***🔗
REST request fails:
Code: 400
Req: {<0.2992.2>,
<<"/api/mucs/domain.example.com/wonderland-5.937620/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e7fb46afd1b8c07e">>}],
<<"{\"sender\":\"alicE_invite_errors_2809@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:10:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,1399}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2809@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-5.937620/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 12:10:05.962 ***🔗
REST request fails:
Code: 400
Req: {<0.2999.2>,
<<"/api/mucs/domain.example.com/wonderland-5.937620/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f62081b7775e12c9">>}],
<<"{\"sender\":\"alicE_invite_errors_2809@domain.example.com\",\"recipient\":\"bOb_invite_errors_2809@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:10:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,701}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2809@domain.example.com\",\"recipient\":\"bOb_invite_errors_2809@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-5.937620/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 12:10:05.966 ***🔗
REST request fails:
Code: 400
Req: {<0.3004.2>,
<<"/api/mucs/domain.example.com/wonderland-5.937620/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"51cdec408bf0bf94">>}],
<<"{\"sender\":\"alicE_invite_errors_2809@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:10:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,774}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2809@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-5.937620/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 12:10:05.968 ***🔗
REST request fails:
Code: 400
Req: {<0.3011.2>,
<<"/api/mucs/domain.example.com/wonderland-5.937620/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1c93d4b43cc6fc2c">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2809@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:10:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,735}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2809@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-5.937620/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 12:10:05.970 ***🔗
REST request fails:
Code: 404
Req: {<0.3013.2>,<<"/api/mucs/baddomain/wonderland-5.937620/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eb547c7829dba9c2">>}],
<<"{\"sender\":\"alicE_invite_errors_2809@domain.example.com\",\"recipient\":\"bOb_invite_errors_2809@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:10:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,999}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2809@domain.example.com\",\"recipient\":\"bOb_invite_errors_2809@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/baddomain/wonderland-5.937620/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 12:10:05.973 ***🔗
REST request fails:
Code: 404
Req: {<0.3015.2>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a2a8c3a74fd2500b">>}],
<<"{\"sender\":\"alicE_invite_errors_2809@domain.example.com\",\"recipient\":\"bOb_invite_errors_2809@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:10:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,628}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2809@domain.example.com\",\"recipient\":\"bOb_invite_errors_2809@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-16 12:10:05
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}