=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.67026.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@956535c0d19a.2024-04-25_12.01.24/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_12.13.00/muc_http_api_suite.invite_errors.126467.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@956535c0d19a.2024-04-25_12.01.24/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_12.13.00/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@956535c0d19a.2024-04-25_12.01.24"
=== Started at 2024-04-25 12:13:06
*** User 2024-04-25 12:13:06.176 ***🔗
REST request:
Code: 201
Req: {<0.67069.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"92e7dcedd1938b43">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2556@localhost\",\"name\":\"wonderland-86.164028\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-86.164028">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:06 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-86.164028">>,215,2406}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2556@localhost\",\"name\":\"wonderland-86.164028\"}">>,
return_headers => true}
*** User 2024-04-25 12:13:06.179 ***🔗
REST request fails:
Code: 400
Req: {<0.67079.0>,<<"/api/mucs/localhost/wonderland-86.164028/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ea93700ae46b6d17">>}],
<<"{\"recipient\":\"bOb_invite_errors_2556@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:06 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,672}
Params: #{path => <<"/api/mucs/localhost/wonderland-86.164028/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2556@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-25 12:13:06.181 ***🔗
REST request fails:
Code: 400
Req: {<0.67087.0>,<<"/api/mucs/localhost/wonderland-86.164028/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4be8e85e23cb23a3">>}],
<<"{\"sender\":\"alicE_invite_errors_2556@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:06 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,575}
Params: #{path => <<"/api/mucs/localhost/wonderland-86.164028/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_2556@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-25 12:13:06.183 ***🔗
REST request fails:
Code: 400
Req: {<0.67094.0>,<<"/api/mucs/localhost/wonderland-86.164028/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dc56af37ce1b4481">>}],
<<"{\"recipient\":\"bOb_invite_errors_2556@localhost\",\"sender\":\"alicE_invite_errors_2556@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:06 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,659}
Params: #{path => <<"/api/mucs/localhost/wonderland-86.164028/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2556@localhost\",\"sender\":\"alicE_invite_errors_2556@localhost\"}">>,
return_headers => true}
*** User 2024-04-25 12:13:06.185 ***🔗
REST request fails:
Code: 400
Req: {<0.67100.0>,<<"/api/mucs/localhost/wonderland-86.164028/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0023e4410c582a2b">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2556@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:06 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,691}
Params: #{path => <<"/api/mucs/localhost/wonderland-86.164028/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2556@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-25 12:13:06.187 ***🔗
REST request fails:
Code: 400
Req: {<0.67102.0>,<<"/api/mucs/localhost/wonderland-86.164028/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9b45829daa17ae31">>}],
<<"{\"recipient\":\"bOb_invite_errors_2556@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:06 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,695}
Params: #{path => <<"/api/mucs/localhost/wonderland-86.164028/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2556@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-25 12:13:06.188 ***🔗
REST request fails:
Code: 404
Req: {<0.67109.0>,<<"/api/mucs/baddomain/wonderland-86.164028/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b2b59dc01b405c92">>}],
<<"{\"recipient\":\"bOb_invite_errors_2556@localhost\",\"sender\":\"alicE_invite_errors_2556@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:06 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,600}
Params: #{path => <<"/api/mucs/baddomain/wonderland-86.164028/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2556@localhost\",\"sender\":\"alicE_invite_errors_2556@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-25 12:13:06.190 ***🔗
REST request fails:
Code: 404
Req: {<0.67113.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9bf8de1f9520be6f">>}],
<<"{\"recipient\":\"bOb_invite_errors_2556@localhost\",\"sender\":\"alicE_invite_errors_2556@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:06 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,864}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2556@localhost\",\"sender\":\"alicE_invite_errors_2556@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
=== Ended at 2024-04-25 12:13:06
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}