=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.4947.2>},
{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@cdcecdf9c9e0.2023-12-04_15.40.23/big_tests.tests.muc_http_api_SUITE.logs/run.2023-12-04_15.52.58/muc_http_api_suite.invite_errors.52229.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@cdcecdf9c9e0.2023-12-04_15.40.23/big_tests.tests.muc_http_api_SUITE.logs/run.2023-12-04_15.52.58/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@cdcecdf9c9e0.2023-12-04_15.40.23"
=== Started at 2023-12-04 15:53:03
*** User 2023-12-04 15:53:03.786 ***🔗
REST request:
Code: 201
Req: {<0.4990.2>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c8799dadc948c142">>}],
<<"{\"owner\":\"alicE_invite_errors_2665@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-83.775877\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-83.775877">>},
{<<"date">>,<<"Mon, 04 Dec 2023 15:53:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-83.775877">>,215,1804}
Params: #{body =>
<<"{\"owner\":\"alicE_invite_errors_2665@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-83.775877\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-12-04 15:53:03.787 ***🔗
REST request fails:
Code: 400
Req: {<0.5000.2>,<<"/api/mucs/localhost/wonderland-83.775877/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e82c5ea3c664177d">>}],
<<"{\"recipient\":\"bOb_invite_errors_2665@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Dec 2023 15:53:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,611}
Params: #{body =>
<<"{\"recipient\":\"bOb_invite_errors_2665@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-83.775877/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-12-04 15:53:03.789 ***🔗
REST request fails:
Code: 400
Req: {<0.5006.2>,<<"/api/mucs/localhost/wonderland-83.775877/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d1465a0039cfc6ac">>}],
<<"{\"sender\":\"alicE_invite_errors_2665@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Dec 2023 15:53:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,482}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2665@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-83.775877/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-12-04 15:53:03.790 ***🔗
REST request fails:
Code: 400
Req: {<0.5014.2>,<<"/api/mucs/localhost/wonderland-83.775877/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7cdab2468cad44f4">>}],
<<"{\"sender\":\"alicE_invite_errors_2665@localhost\",\"recipient\":\"bOb_invite_errors_2665@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Dec 2023 15:53:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,560}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2665@localhost\",\"recipient\":\"bOb_invite_errors_2665@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-83.775877/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-12-04 15:53:03.792 ***🔗
REST request fails:
Code: 400
Req: {<0.5021.2>,<<"/api/mucs/localhost/wonderland-83.775877/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7e4cc6ddcedb5ea6">>}],
<<"{\"sender\":\"alicE_invite_errors_2665@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Dec 2023 15:53:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,634}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2665@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-83.775877/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-12-04 15:53:03.793 ***🔗
REST request fails:
Code: 400
Req: {<0.5023.2>,<<"/api/mucs/localhost/wonderland-83.775877/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2832e8519efb65c6">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2665@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Dec 2023 15:53:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,447}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2665@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-83.775877/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-12-04 15:53:03.794 ***🔗
REST request fails:
Code: 404
Req: {<0.5027.2>,<<"/api/mucs/baddomain/wonderland-83.775877/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bc6a8852870468f1">>}],
<<"{\"sender\":\"alicE_invite_errors_2665@localhost\",\"recipient\":\"bOb_invite_errors_2665@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Dec 2023 15:53:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,426}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2665@localhost\",\"recipient\":\"bOb_invite_errors_2665@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/baddomain/wonderland-83.775877/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-12-04 15:53:03.796 ***🔗
REST request fails:
Code: 404
Req: {<0.5030.2>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ba943b9567ba7e8d">>}],
<<"{\"sender\":\"alicE_invite_errors_2665@localhost\",\"recipient\":\"bOb_invite_errors_2665@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Dec 2023 15:53:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,557}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2665@localhost\",\"recipient\":\"bOb_invite_errors_2665@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2023-12-04 15:53:03
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}