=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.67118.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@8ba0dd56aa70.2024-04-15_16.45.39/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-15_16.57.12/muc_http_api_suite.invite_errors.127875.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@8ba0dd56aa70.2024-04-15_16.45.39/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-15_16.57.12/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@8ba0dd56aa70.2024-04-15_16.45.39"
=== Started at 2024-04-15 16:57:17
*** User 2024-04-15 16:57:17.686 ***🔗
REST request:
Code: 201
Req: {<0.67161.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"34cd594ea4f39df1">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2573@localhost\",\"name\":\"wonderland-37.674228\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-37.674228">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:57:17 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-37.674228">>,215,1912}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2573@localhost\",\"name\":\"wonderland-37.674228\"}">>,
role => admin,return_headers => true}
*** User 2024-04-15 16:57:17.687 ***🔗
REST request fails:
Code: 400
Req: {<0.67171.0>,<<"/api/mucs/localhost/wonderland-37.674228/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d6187325663ee062">>}],
<<"{\"recipient\":\"bOb_invite_errors_2573@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:57:17 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,454}
Params: #{path => <<"/api/mucs/localhost/wonderland-37.674228/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2573@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-15 16:57:17.689 ***🔗
REST request fails:
Code: 400
Req: {<0.67178.0>,<<"/api/mucs/localhost/wonderland-37.674228/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4f235dcaae5f5fd5">>}],
<<"{\"sender\":\"alicE_invite_errors_2573@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:57:17 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,508}
Params: #{path => <<"/api/mucs/localhost/wonderland-37.674228/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_2573@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-15 16:57:17.691 ***🔗
REST request fails:
Code: 400
Req: {<0.67184.0>,<<"/api/mucs/localhost/wonderland-37.674228/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bb23431363e889cc">>}],
<<"{\"recipient\":\"bOb_invite_errors_2573@localhost\",\"sender\":\"alicE_invite_errors_2573@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:57:17 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,757}
Params: #{path => <<"/api/mucs/localhost/wonderland-37.674228/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2573@localhost\",\"sender\":\"alicE_invite_errors_2573@localhost\"}">>,
role => admin,return_headers => true}
*** User 2024-04-15 16:57:17.692 ***🔗
REST request fails:
Code: 400
Req: {<0.67192.0>,<<"/api/mucs/localhost/wonderland-37.674228/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"69077f58fcfc1762">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2573@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:57:17 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,448}
Params: #{path => <<"/api/mucs/localhost/wonderland-37.674228/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2573@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-15 16:57:17.693 ***🔗
REST request fails:
Code: 400
Req: {<0.67194.0>,<<"/api/mucs/localhost/wonderland-37.674228/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2175d6d1888c1e04">>}],
<<"{\"recipient\":\"bOb_invite_errors_2573@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:57:17 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,452}
Params: #{path => <<"/api/mucs/localhost/wonderland-37.674228/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2573@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-15 16:57:17.694 ***🔗
REST request fails:
Code: 404
Req: {<0.67201.0>,<<"/api/mucs/baddomain/wonderland-37.674228/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3aeff716305d72bf">>}],
<<"{\"recipient\":\"bOb_invite_errors_2573@localhost\",\"sender\":\"alicE_invite_errors_2573@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:57:17 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,577}
Params: #{path => <<"/api/mucs/baddomain/wonderland-37.674228/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2573@localhost\",\"sender\":\"alicE_invite_errors_2573@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-15 16:57:17.696 ***🔗
REST request fails:
Code: 404
Req: {<0.67203.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2673a0ec3a9e9cfd">>}],
<<"{\"recipient\":\"bOb_invite_errors_2573@localhost\",\"sender\":\"alicE_invite_errors_2573@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:57:17 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,488}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2573@localhost\",\"sender\":\"alicE_invite_errors_2573@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
=== Ended at 2024-04-15 16:57:17
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}