=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.70322.0>},
{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@079a843f8d8b.2023-11-16_09.33.39/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-16_09.46.38/muc_http_api_suite.invite_errors.151555.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@079a843f8d8b.2023-11-16_09.33.39/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-16_09.46.38/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@079a843f8d8b.2023-11-16_09.33.39"
=== Started at 2023-11-16 09:46:44
*** User 2023-11-16 09:46:44.161 ***🔗
REST request:
Code: 201
Req: {<0.70369.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b838b3538ee40409">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2687@localhost\",\"name\":\"wonderland-4.151611\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-4.151611">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:46:43 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-4.151611">>,213,2085}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2687@localhost\",\"name\":\"wonderland-4.151611\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:46:44.163 ***🔗
REST request fails:
Code: 400
Req: {<0.70381.0>,<<"/api/mucs/localhost/wonderland-4.151611/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dc0bbf2aceb24d1a">>}],
<<"{\"recipient\":\"bOb_invite_errors_2687@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:46:43 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,577}
Params: #{path => <<"/api/mucs/localhost/wonderland-4.151611/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2687@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:46:44.165 ***🔗
REST request fails:
Code: 400
Req: {<0.70386.0>,<<"/api/mucs/localhost/wonderland-4.151611/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"488fda4b3de6e281">>}],
<<"{\"sender\":\"alicE_invite_errors_2687@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:46:43 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,540}
Params: #{path => <<"/api/mucs/localhost/wonderland-4.151611/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_2687@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:46:44.167 ***🔗
REST request fails:
Code: 400
Req: {<0.70392.0>,<<"/api/mucs/localhost/wonderland-4.151611/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fbd5625dfaa2d1fc">>}],
<<"{\"recipient\":\"bOb_invite_errors_2687@localhost\",\"sender\":\"alicE_invite_errors_2687@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:46:43 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,584}
Params: #{path => <<"/api/mucs/localhost/wonderland-4.151611/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2687@localhost\",\"sender\":\"alicE_invite_errors_2687@localhost\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:46:44.168 ***🔗
REST request fails:
Code: 400
Req: {<0.70396.0>,<<"/api/mucs/localhost/wonderland-4.151611/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9414347200958e77">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2687@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:46:43 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,448}
Params: #{path => <<"/api/mucs/localhost/wonderland-4.151611/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2687@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:46:44.170 ***🔗
REST request fails:
Code: 400
Req: {<0.70400.0>,<<"/api/mucs/localhost/wonderland-4.151611/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3af0ca858e841725">>}],
<<"{\"recipient\":\"bOb_invite_errors_2687@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:46:43 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,496}
Params: #{path => <<"/api/mucs/localhost/wonderland-4.151611/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2687@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:46:44.171 ***🔗
REST request fails:
Code: 404
Req: {<0.70407.0>,<<"/api/mucs/baddomain/wonderland-4.151611/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ca0b146b0e609ccb">>}],
<<"{\"recipient\":\"bOb_invite_errors_2687@localhost\",\"sender\":\"alicE_invite_errors_2687@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:46:43 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,441}
Params: #{path => <<"/api/mucs/baddomain/wonderland-4.151611/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2687@localhost\",\"sender\":\"alicE_invite_errors_2687@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:46:44.172 ***🔗
REST request fails:
Code: 404
Req: {<0.70410.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cfcfa42dd00fcaff">>}],
<<"{\"recipient\":\"bOb_invite_errors_2687@localhost\",\"sender\":\"alicE_invite_errors_2687@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:46:43 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,452}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2687@localhost\",\"sender\":\"alicE_invite_errors_2687@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
=== Ended at 2023-11-16 09:46:44
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}