=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.74012.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@b55f3c2e567c.2024-04-10_14.23.59/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-10_14.36.18/muc_http_api_suite.invite_errors.207490.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@b55f3c2e567c.2024-04-10_14.23.59/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-10_14.36.18/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@b55f3c2e567c.2024-04-10_14.23.59"
=== Started at 2024-04-10 14:36:23
*** User 2024-04-10 14:36:23.995 ***🔗
REST request:
Code: 201
Req: {<0.74057.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5c53150871a03bfd">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2798@localhost\",\"name\":\"wonderland-83.979171\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-83.979171">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:36:23 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-83.979171">>,215,2595}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2798@localhost\",\"name\":\"wonderland-83.979171\"}">>,
return_headers => true}
*** User 2024-04-10 14:36:23.996 ***🔗
REST request fails:
Code: 400
Req: {<0.74067.0>,<<"/api/mucs/localhost/wonderland-83.979171/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0abcb9638f38e9c0">>}],
<<"{\"recipient\":\"bOb_invite_errors_2798@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:36:23 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,520}
Params: #{path => <<"/api/mucs/localhost/wonderland-83.979171/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2798@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-10 14:36:23.998 ***🔗
REST request fails:
Code: 400
Req: {<0.74072.0>,<<"/api/mucs/localhost/wonderland-83.979171/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2e011b7406f3f3e4">>}],
<<"{\"sender\":\"alicE_invite_errors_2798@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:36:23 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,492}
Params: #{path => <<"/api/mucs/localhost/wonderland-83.979171/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_2798@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-10 14:36:23.999 ***🔗
REST request fails:
Code: 400
Req: {<0.74078.0>,<<"/api/mucs/localhost/wonderland-83.979171/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5d32a4d5e61ff22a">>}],
<<"{\"recipient\":\"bOb_invite_errors_2798@localhost\",\"sender\":\"alicE_invite_errors_2798@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:36:23 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,593}
Params: #{path => <<"/api/mucs/localhost/wonderland-83.979171/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2798@localhost\",\"sender\":\"alicE_invite_errors_2798@localhost\"}">>,
return_headers => true}
*** User 2024-04-10 14:36:24.001 ***🔗
REST request fails:
Code: 400
Req: {<0.74084.0>,<<"/api/mucs/localhost/wonderland-83.979171/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"394c5a0a8eb8c434">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2798@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:36:23 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,721}
Params: #{path => <<"/api/mucs/localhost/wonderland-83.979171/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2798@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-10 14:36:24.003 ***🔗
REST request fails:
Code: 400
Req: {<0.74088.0>,<<"/api/mucs/localhost/wonderland-83.979171/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1028aa12e9cbbe9d">>}],
<<"{\"recipient\":\"bOb_invite_errors_2798@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:36:23 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,431}
Params: #{path => <<"/api/mucs/localhost/wonderland-83.979171/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2798@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-10 14:36:24.005 ***🔗
REST request fails:
Code: 404
Req: {<0.74092.0>,<<"/api/mucs/baddomain/wonderland-83.979171/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2fdaa6a11cd1a383">>}],
<<"{\"recipient\":\"bOb_invite_errors_2798@localhost\",\"sender\":\"alicE_invite_errors_2798@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:36:23 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,603}
Params: #{path => <<"/api/mucs/baddomain/wonderland-83.979171/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2798@localhost\",\"sender\":\"alicE_invite_errors_2798@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-10 14:36:24.007 ***🔗
REST request fails:
Code: 404
Req: {<0.74097.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2a009b9fbd347e65">>}],
<<"{\"recipient\":\"bOb_invite_errors_2798@localhost\",\"sender\":\"alicE_invite_errors_2798@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:36:23 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,603}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2798@localhost\",\"sender\":\"alicE_invite_errors_2798@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
=== Ended at 2024-04-10 14:36:24
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}