=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.75643.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@712f6a561549.2024-04-22_14.41.30/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_14.55.31/muc_http_api_suite.invite_errors.150531.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@712f6a561549.2024-04-22_14.41.30/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_14.55.31/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@712f6a561549.2024-04-22_14.41.30"
=== Started at 2024-04-22 14:55:36
*** User 2024-04-22 14:55:36.786 ***🔗
REST request:
Code: 201
Req: {<0.75688.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"89c161b4c87ef71d">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2840@localhost\",\"name\":\"wonderland-36.748657\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-36.748657">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:55:36 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-36.748657">>,215,3665}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2840@localhost\",\"name\":\"wonderland-36.748657\"}">>,
return_headers => true}
*** User 2024-04-22 14:55:36.788 ***🔗
REST request fails:
Code: 400
Req: {<0.75700.0>,<<"/api/mucs/localhost/wonderland-36.748657/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dc54615db8c1a631">>}],
<<"{\"recipient\":\"bOb_invite_errors_2840@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:55:36 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,703}
Params: #{path => <<"/api/mucs/localhost/wonderland-36.748657/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2840@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:55:36.791 ***🔗
REST request fails:
Code: 400
Req: {<0.75711.0>,<<"/api/mucs/localhost/wonderland-36.748657/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7a38431f40c9307c">>}],
<<"{\"sender\":\"alicE_invite_errors_2840@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:55:36 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,922}
Params: #{path => <<"/api/mucs/localhost/wonderland-36.748657/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_2840@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:55:36.793 ***🔗
REST request fails:
Code: 400
Req: {<0.75715.0>,<<"/api/mucs/localhost/wonderland-36.748657/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6f2b6c7746d7193b">>}],
<<"{\"recipient\":\"bOb_invite_errors_2840@localhost\",\"sender\":\"alicE_invite_errors_2840@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:55:36 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,859}
Params: #{path => <<"/api/mucs/localhost/wonderland-36.748657/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2840@localhost\",\"sender\":\"alicE_invite_errors_2840@localhost\"}">>,
return_headers => true}
*** User 2024-04-22 14:55:36.795 ***🔗
REST request fails:
Code: 400
Req: {<0.75719.0>,<<"/api/mucs/localhost/wonderland-36.748657/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a6f1b8e405a80497">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2840@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:55:36 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,547}
Params: #{path => <<"/api/mucs/localhost/wonderland-36.748657/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2840@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:55:36.796 ***🔗
REST request fails:
Code: 400
Req: {<0.75722.0>,<<"/api/mucs/localhost/wonderland-36.748657/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1b320effe8d358b0">>}],
<<"{\"recipient\":\"bOb_invite_errors_2840@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:55:36 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,677}
Params: #{path => <<"/api/mucs/localhost/wonderland-36.748657/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2840@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:55:36.798 ***🔗
REST request fails:
Code: 404
Req: {<0.75727.0>,<<"/api/mucs/baddomain/wonderland-36.748657/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f1d2aafdb311a431">>}],
<<"{\"recipient\":\"bOb_invite_errors_2840@localhost\",\"sender\":\"alicE_invite_errors_2840@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:55:36 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,652}
Params: #{path => <<"/api/mucs/baddomain/wonderland-36.748657/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2840@localhost\",\"sender\":\"alicE_invite_errors_2840@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:55:36.800 ***🔗
REST request fails:
Code: 404
Req: {<0.75731.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"448f4eb1a322974a">>}],
<<"{\"recipient\":\"bOb_invite_errors_2840@localhost\",\"sender\":\"alicE_invite_errors_2840@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:55:36 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,550}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2840@localhost\",\"sender\":\"alicE_invite_errors_2840@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
=== Ended at 2024-04-22 14:55:36
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}