=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.40253.0>},
{preset,"ldap_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@c246453c4806.2024-04-23_11.32.42/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_11.42.29/muc_http_api_suite.invite_errors.19717.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@c246453c4806.2024-04-23_11.32.42/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_11.42.29/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@c246453c4806.2024-04-23_11.32.42"
=== Started at 2024-04-23 11:42:34
*** User 2024-04-23 11:42:34.808 ***🔗
REST request:
Code: 201
Req: {<0.40302.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c47f6143b6a4fe01">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1353@localhost\",\"name\":\"wonderland-54.798296\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-54.798296">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:42:34 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-54.798296">>,215,1672}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1353@localhost\",\"name\":\"wonderland-54.798296\"}">>,
role => admin,return_headers => true}
*** User 2024-04-23 11:42:34.809 ***🔗
REST request fails:
Code: 400
Req: {<0.40313.0>,<<"/api/mucs/localhost/wonderland-54.798296/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8e38aafec3943cf1">>}],
<<"{\"recipient\":\"bOb_invite_errors_1353@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:42:34 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,473}
Params: #{path => <<"/api/mucs/localhost/wonderland-54.798296/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1353@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-23 11:42:34.811 ***🔗
REST request fails:
Code: 400
Req: {<0.40319.0>,<<"/api/mucs/localhost/wonderland-54.798296/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b7a5af703f7d077a">>}],
<<"{\"sender\":\"alicE_invite_errors_1353@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:42:34 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,476}
Params: #{path => <<"/api/mucs/localhost/wonderland-54.798296/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_1353@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-23 11:42:34.812 ***🔗
REST request fails:
Code: 400
Req: {<0.40325.0>,<<"/api/mucs/localhost/wonderland-54.798296/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b58c1bddaf9d4a3a">>}],
<<"{\"recipient\":\"bOb_invite_errors_1353@localhost\",\"sender\":\"alicE_invite_errors_1353@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:42:34 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,439}
Params: #{path => <<"/api/mucs/localhost/wonderland-54.798296/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1353@localhost\",\"sender\":\"alicE_invite_errors_1353@localhost\"}">>,
role => admin,return_headers => true}
*** User 2024-04-23 11:42:34.813 ***🔗
REST request fails:
Code: 400
Req: {<0.40329.0>,<<"/api/mucs/localhost/wonderland-54.798296/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6e14dced8b95960f">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_1353@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:42:34 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,419}
Params: #{path => <<"/api/mucs/localhost/wonderland-54.798296/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_1353@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-23 11:42:34.815 ***🔗
REST request fails:
Code: 400
Req: {<0.40336.0>,<<"/api/mucs/localhost/wonderland-54.798296/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"769a9b8da4004d82">>}],
<<"{\"recipient\":\"bOb_invite_errors_1353@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:42:34 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,503}
Params: #{path => <<"/api/mucs/localhost/wonderland-54.798296/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1353@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-23 11:42:34.816 ***🔗
REST request fails:
Code: 404
Req: {<0.40339.0>,<<"/api/mucs/baddomain/wonderland-54.798296/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"79de19134860cb36">>}],
<<"{\"recipient\":\"bOb_invite_errors_1353@localhost\",\"sender\":\"alicE_invite_errors_1353@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:42:34 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,424}
Params: #{path => <<"/api/mucs/baddomain/wonderland-54.798296/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1353@localhost\",\"sender\":\"alicE_invite_errors_1353@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-23 11:42:34.817 ***🔗
REST request fails:
Code: 404
Req: {<0.40343.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9fc0d8be44a615e5">>}],
<<"{\"recipient\":\"bOb_invite_errors_1353@localhost\",\"sender\":\"alicE_invite_errors_1353@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:42:34 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,538}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1353@localhost\",\"sender\":\"alicE_invite_errors_1353@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
=== Ended at 2024-04-23 11:42:34
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}