=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.70939.0>},
{preset,"odbc_mssql_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@d091d39a81d0.2024-03-08_08.59.35/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-08_09.15.10/muc_http_api_suite.invite_errors.152195.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@d091d39a81d0.2024-03-08_08.59.35/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-08_09.15.10/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@d091d39a81d0.2024-03-08_08.59.35"
=== Started at 2024-03-08 09:15:15
*** User 2024-03-08 09:15:15.697 ***🔗
REST request:
Code: 201
Req: {<0.70988.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"efac6ae6aeb9d0e0">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2770@localhost\",\"name\":\"wonderland-15.683794\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-15.683794">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:15:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-15.683794">>,215,2953}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2770@localhost\",\"name\":\"wonderland-15.683794\"}">>,
role => admin,return_headers => true}
*** User 2024-03-08 09:15:15.699 ***🔗
REST request fails:
Code: 400
Req: {<0.71001.0>,<<"/api/mucs/localhost/wonderland-15.683794/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8b8330e063ccda7e">>}],
<<"{\"recipient\":\"bOb_invite_errors_2770@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:15:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,537}
Params: #{path => <<"/api/mucs/localhost/wonderland-15.683794/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2770@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-03-08 09:15:15.701 ***🔗
REST request fails:
Code: 400
Req: {<0.71007.0>,<<"/api/mucs/localhost/wonderland-15.683794/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c6312f70386c6eb9">>}],
<<"{\"sender\":\"alicE_invite_errors_2770@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:15:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,700}
Params: #{path => <<"/api/mucs/localhost/wonderland-15.683794/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_2770@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-03-08 09:15:15.703 ***🔗
REST request fails:
Code: 400
Req: {<0.71011.0>,<<"/api/mucs/localhost/wonderland-15.683794/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"58f8640798a38834">>}],
<<"{\"sender\":\"alicE_invite_errors_2770@localhost\",\"recipient\":\"bOb_invite_errors_2770@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:15:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,700}
Params: #{path => <<"/api/mucs/localhost/wonderland-15.683794/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_2770@localhost\",\"recipient\":\"bOb_invite_errors_2770@localhost\"}">>,
role => admin,return_headers => true}
*** User 2024-03-08 09:15:15.705 ***🔗
REST request fails:
Code: 400
Req: {<0.71016.0>,<<"/api/mucs/localhost/wonderland-15.683794/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9ccd3af82b5d7f28">>}],
<<"{\"sender\":\"alicE_invite_errors_2770@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:15:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,733}
Params: #{path => <<"/api/mucs/localhost/wonderland-15.683794/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_2770@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-03-08 09:15:15.706 ***🔗
REST request fails:
Code: 400
Req: {<0.71020.0>,<<"/api/mucs/localhost/wonderland-15.683794/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"88e89ae611b11161">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2770@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:15:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,694}
Params: #{path => <<"/api/mucs/localhost/wonderland-15.683794/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2770@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-03-08 09:15:15.708 ***🔗
REST request fails:
Code: 404
Req: {<0.71025.0>,<<"/api/mucs/baddomain/wonderland-15.683794/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e56e2bb045bca172">>}],
<<"{\"sender\":\"alicE_invite_errors_2770@localhost\",\"recipient\":\"bOb_invite_errors_2770@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:15:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,606}
Params: #{path => <<"/api/mucs/baddomain/wonderland-15.683794/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_2770@localhost\",\"recipient\":\"bOb_invite_errors_2770@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-03-08 09:15:15.710 ***🔗
REST request fails:
Code: 404
Req: {<0.71028.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6955607d82db4abf">>}],
<<"{\"sender\":\"alicE_invite_errors_2770@localhost\",\"recipient\":\"bOb_invite_errors_2770@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:15:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,857}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_2770@localhost\",\"recipient\":\"bOb_invite_errors_2770@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
=== Ended at 2024-03-08 09:15:15
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}