=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.65764.0>},
{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@d081adacb998.2024-01-14_19.39.56/big_tests.tests.muc_http_api_SUITE.logs/run.2024-01-14_19.52.27/muc_http_api_suite.invite_errors.52869.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@d081adacb998.2024-01-14_19.39.56/big_tests.tests.muc_http_api_SUITE.logs/run.2024-01-14_19.52.27/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]},
{kate,[{username,<<"kate">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrowe;p">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@d081adacb998.2024-01-14_19.39.56"
=== Started at 2024-01-14 19:52:33
*** User 2024-01-14 19:52:33.332 ***🔗
REST request:
Code: 201
Req: {<0.65807.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cf751264b7c8d117">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2648@domain.example.com\",\"name\":\"wonderland-53.320636\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-53.320636">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:52:32 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-53.320636">>,224,1860}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2648@domain.example.com\",\"name\":\"wonderland-53.320636\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:52:33.334 ***🔗
REST request fails:
Code: 400
Req: {<0.65815.0>,
<<"/api/mucs/domain.example.com/wonderland-53.320636/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"13630fb4972c99ed">>}],
<<"{\"recipient\":\"bOb_invite_errors_2648@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:52:32 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,585}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-53.320636/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2648@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:52:33.336 ***🔗
REST request fails:
Code: 400
Req: {<0.65823.0>,
<<"/api/mucs/domain.example.com/wonderland-53.320636/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"be041d1e36714a3e">>}],
<<"{\"sender\":\"alicE_invite_errors_2648@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:52:32 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,538}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-53.320636/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"sender\":\"alicE_invite_errors_2648@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:52:33.337 ***🔗
REST request fails:
Code: 400
Req: {<0.65830.0>,
<<"/api/mucs/domain.example.com/wonderland-53.320636/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4ed8704b629a7b43">>}],
<<"{\"recipient\":\"bOb_invite_errors_2648@domain.example.com\",\"sender\":\"alicE_invite_errors_2648@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:52:32 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,470}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-53.320636/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2648@domain.example.com\",\"sender\":\"alicE_invite_errors_2648@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:52:33.339 ***🔗
REST request fails:
Code: 400
Req: {<0.65836.0>,
<<"/api/mucs/domain.example.com/wonderland-53.320636/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dd37746a08f08e05">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2648@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:52:32 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,455}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-53.320636/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2648@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:52:33.340 ***🔗
REST request fails:
Code: 400
Req: {<0.65840.0>,
<<"/api/mucs/domain.example.com/wonderland-53.320636/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d888b6af5c17dcbf">>}],
<<"{\"recipient\":\"bOb_invite_errors_2648@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:52:32 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,499}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-53.320636/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2648@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:52:33.342 ***🔗
REST request fails:
Code: 404
Req: {<0.65844.0>,<<"/api/mucs/baddomain/wonderland-53.320636/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eb8b63216eabd670">>}],
<<"{\"recipient\":\"bOb_invite_errors_2648@domain.example.com\",\"sender\":\"alicE_invite_errors_2648@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:52:32 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,572}
Params: #{path => <<"/api/mucs/baddomain/wonderland-53.320636/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2648@domain.example.com\",\"sender\":\"alicE_invite_errors_2648@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:52:33.343 ***🔗
REST request fails:
Code: 404
Req: {<0.65849.0>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f5766939111abfc0">>}],
<<"{\"recipient\":\"bOb_invite_errors_2648@domain.example.com\",\"sender\":\"alicE_invite_errors_2648@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:52:32 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,529}
Params: #{path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2648@domain.example.com\",\"sender\":\"alicE_invite_errors_2648@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
=== Ended at 2024-01-14 19:52:33
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}