=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.68682.0>},
{preset,"pgsql_cets"},
{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@81b4ed498ac1.2024-04-23_23.21.08/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_23.33.03/muc_http_api_suite.invite_errors.178690.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@81b4ed498ac1.2024-04-23_23.21.08/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_23.33.03/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@81b4ed498ac1.2024-04-23_23.21.08"
=== Started at 2024-04-23 23:33:09
*** User 2024-04-23 23:33:09.312 ***🔗
REST request:
Code: 201
Req: {<0.68725.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5ff868a0faa33c76">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2594@localhost\",\"name\":\"wonderland-89.300865\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-89.300865">>},
{<<"date">>,<<"Tue, 23 Apr 2024 23:33:09 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-89.300865">>,215,2041}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2594@localhost\",\"name\":\"wonderland-89.300865\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-23 23:33:09.314 ***🔗
REST request fails:
Code: 400
Req: {<0.68735.0>,<<"/api/mucs/localhost/wonderland-89.300865/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4eb5e753aae10a26">>}],
<<"{\"recipient\":\"bOb_invite_errors_2594@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 23:33:09 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,559}
Params: #{path => <<"/api/mucs/localhost/wonderland-89.300865/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2594@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-23 23:33:09.319 ***🔗
REST request fails:
Code: 400
Req: {<0.68744.0>,<<"/api/mucs/localhost/wonderland-89.300865/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7d3ec66daf833217">>}],
<<"{\"sender\":\"alicE_invite_errors_2594@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 23:33:09 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,729}
Params: #{path => <<"/api/mucs/localhost/wonderland-89.300865/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"sender\":\"alicE_invite_errors_2594@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-23 23:33:09.320 ***🔗
REST request fails:
Code: 400
Req: {<0.68752.0>,<<"/api/mucs/localhost/wonderland-89.300865/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"053662193572d373">>}],
<<"{\"recipient\":\"bOb_invite_errors_2594@localhost\",\"sender\":\"alicE_invite_errors_2594@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 23:33:09 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,528}
Params: #{path => <<"/api/mucs/localhost/wonderland-89.300865/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2594@localhost\",\"sender\":\"alicE_invite_errors_2594@localhost\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-23 23:33:09.322 ***🔗
REST request fails:
Code: 400
Req: {<0.68756.0>,<<"/api/mucs/localhost/wonderland-89.300865/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f86a24d1c4ad1d14">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2594@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 23:33:09 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,535}
Params: #{path => <<"/api/mucs/localhost/wonderland-89.300865/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2594@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-23 23:33:09.324 ***🔗
REST request fails:
Code: 400
Req: {<0.68758.0>,<<"/api/mucs/localhost/wonderland-89.300865/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"95ab6ffffc0213c0">>}],
<<"{\"recipient\":\"bOb_invite_errors_2594@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 23:33:09 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,708}
Params: #{path => <<"/api/mucs/localhost/wonderland-89.300865/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2594@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-23 23:33:09.326 ***🔗
REST request fails:
Code: 404
Req: {<0.68767.0>,<<"/api/mucs/baddomain/wonderland-89.300865/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"29c57030936883a8">>}],
<<"{\"recipient\":\"bOb_invite_errors_2594@localhost\",\"sender\":\"alicE_invite_errors_2594@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 23:33:09 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,660}
Params: #{path => <<"/api/mucs/baddomain/wonderland-89.300865/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2594@localhost\",\"sender\":\"alicE_invite_errors_2594@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-23 23:33:09.328 ***🔗
REST request fails:
Code: 404
Req: {<0.68770.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"14f23b42bbbf01c6">>}],
<<"{\"recipient\":\"bOb_invite_errors_2594@localhost\",\"sender\":\"alicE_invite_errors_2594@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 23:33:09 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,566}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2594@localhost\",\"sender\":\"alicE_invite_errors_2594@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
=== Ended at 2024-04-23 23:33:09
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}