=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.74503.0>},
{preset,"mysql_redis"},
{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@f2e0a288de76.2024-03-21_07.46.09/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-21_07.59.07/muc_http_api_suite.invite_errors.193282.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@f2e0a288de76.2024-03-21_07.46.09/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-21_07.59.07/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@f2e0a288de76.2024-03-21_07.46.09"
=== Started at 2024-03-21 07:59:13
*** User 2024-03-21 07:59:13.121 ***🔗
REST request:
Code: 201
Req: {<0.74548.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"60d99011067da497">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2811@localhost\",\"name\":\"wonderland-53.109142\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-53.109142">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:59:12 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-53.109142">>,215,2613}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2811@localhost\",\"name\":\"wonderland-53.109142\"}">>,
return_headers => true}
*** User 2024-03-21 07:59:13.123 ***🔗
REST request fails:
Code: 400
Req: {<0.74558.0>,<<"/api/mucs/localhost/wonderland-53.109142/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bf63371bd4f2aed7">>}],
<<"{\"recipient\":\"bOb_invite_errors_2811@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:59:12 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,600}
Params: #{path => <<"/api/mucs/localhost/wonderland-53.109142/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2811@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-03-21 07:59:13.124 ***🔗
REST request fails:
Code: 400
Req: {<0.74565.0>,<<"/api/mucs/localhost/wonderland-53.109142/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"216ceeeec0da2e2a">>}],
<<"{\"sender\":\"alicE_invite_errors_2811@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:59:12 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,419}
Params: #{path => <<"/api/mucs/localhost/wonderland-53.109142/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_2811@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-03-21 07:59:13.126 ***🔗
REST request fails:
Code: 400
Req: {<0.74571.0>,<<"/api/mucs/localhost/wonderland-53.109142/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1a3ce8ba24fca6d2">>}],
<<"{\"recipient\":\"bOb_invite_errors_2811@localhost\",\"sender\":\"alicE_invite_errors_2811@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:59:12 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,524}
Params: #{path => <<"/api/mucs/localhost/wonderland-53.109142/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2811@localhost\",\"sender\":\"alicE_invite_errors_2811@localhost\"}">>,
return_headers => true}
*** User 2024-03-21 07:59:13.128 ***🔗
REST request fails:
Code: 400
Req: {<0.74577.0>,<<"/api/mucs/localhost/wonderland-53.109142/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0c3156b2f9269de4">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2811@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:59:12 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,628}
Params: #{path => <<"/api/mucs/localhost/wonderland-53.109142/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2811@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-03-21 07:59:13.130 ***🔗
REST request fails:
Code: 400
Req: {<0.74582.0>,<<"/api/mucs/localhost/wonderland-53.109142/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b86bf33b10c6fbe6">>}],
<<"{\"recipient\":\"bOb_invite_errors_2811@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:59:12 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,484}
Params: #{path => <<"/api/mucs/localhost/wonderland-53.109142/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2811@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-03-21 07:59:13.132 ***🔗
REST request fails:
Code: 404
Req: {<0.74588.0>,<<"/api/mucs/baddomain/wonderland-53.109142/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cb20adea50cc7f06">>}],
<<"{\"recipient\":\"bOb_invite_errors_2811@localhost\",\"sender\":\"alicE_invite_errors_2811@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:59:12 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,559}
Params: #{path => <<"/api/mucs/baddomain/wonderland-53.109142/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2811@localhost\",\"sender\":\"alicE_invite_errors_2811@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-03-21 07:59:13.134 ***🔗
REST request fails:
Code: 404
Req: {<0.74591.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4407ca01286a029a">>}],
<<"{\"recipient\":\"bOb_invite_errors_2811@localhost\",\"sender\":\"alicE_invite_errors_2811@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:59:12 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,768}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2811@localhost\",\"sender\":\"alicE_invite_errors_2811@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
=== Ended at 2024-03-21 07:59:13
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}