=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.8441.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@37fc7fafefac.2024-04-25_12.00.24/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_12.13.21/muc_http_api_suite.invite_errors.146051.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@37fc7fafefac.2024-04-25_12.00.24/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_12.13.21/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@37fc7fafefac.2024-04-25_12.00.24"
=== Started at 2024-04-25 12:13:26
*** User 2024-04-25 12:13:26.998 ***🔗
REST request:
Code: 201
Req: {<0.8482.2>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d4b7f6bb05c9e682">>}],
<<"{\"owner\":\"alicE_invite_errors_3063@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-6.987117\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-6.987117">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:26 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-6.987117">>,213,2034}
Params: #{body =>
<<"{\"owner\":\"alicE_invite_errors_3063@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-6.987117\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:27.000 ***🔗
REST request fails:
Code: 400
Req: {<0.8490.2>,<<"/api/mucs/localhost/wonderland-6.987117/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a2e2e1743051c480">>}],
<<"{\"recipient\":\"bOb_invite_errors_3063@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:26 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,499}
Params: #{body =>
<<"{\"recipient\":\"bOb_invite_errors_3063@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-6.987117/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:27.002 ***🔗
REST request fails:
Code: 400
Req: {<0.8496.2>,<<"/api/mucs/localhost/wonderland-6.987117/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"662ce2cacbce2bf8">>}],
<<"{\"sender\":\"alicE_invite_errors_3063@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:26 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,522}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_3063@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-6.987117/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:27.004 ***🔗
REST request fails:
Code: 400
Req: {<0.8504.2>,<<"/api/mucs/localhost/wonderland-6.987117/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"46626a291c01f670">>}],
<<"{\"sender\":\"alicE_invite_errors_3063@localhost\",\"recipient\":\"bOb_invite_errors_3063@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:26 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,544}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_3063@localhost\",\"recipient\":\"bOb_invite_errors_3063@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-6.987117/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:27.005 ***🔗
REST request fails:
Code: 400
Req: {<0.8511.2>,<<"/api/mucs/localhost/wonderland-6.987117/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b34dd4965b5054b9">>}],
<<"{\"sender\":\"alicE_invite_errors_3063@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:26 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,533}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_3063@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-6.987117/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:27.006 ***🔗
REST request fails:
Code: 400
Req: {<0.8517.2>,<<"/api/mucs/localhost/wonderland-6.987117/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3bf330df06a85569">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_3063@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:26 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,559}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_3063@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-6.987117/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:27.008 ***🔗
REST request fails:
Code: 404
Req: {<0.8519.2>,<<"/api/mucs/baddomain/wonderland-6.987117/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eccefefefda8d2bd">>}],
<<"{\"sender\":\"alicE_invite_errors_3063@localhost\",\"recipient\":\"bOb_invite_errors_3063@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:26 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,474}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_3063@localhost\",\"recipient\":\"bOb_invite_errors_3063@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/baddomain/wonderland-6.987117/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:27.009 ***🔗
REST request fails:
Code: 404
Req: {<0.8524.2>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"77f5fc07d9d5ed2d">>}],
<<"{\"sender\":\"alicE_invite_errors_3063@localhost\",\"recipient\":\"bOb_invite_errors_3063@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:26 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,565}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_3063@localhost\",\"recipient\":\"bOb_invite_errors_3063@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2024-04-25 12:13:27
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}