=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.65109.0>},
{preset,"mysql_redis"},
{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@eebaa68b7995.2024-01-14_19.39.51/big_tests.tests.muc_http_api_SUITE.logs/run.2024-01-14_19.49.38/muc_http_api_suite.invite_errors.110852.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@eebaa68b7995.2024-01-14_19.39.51/big_tests.tests.muc_http_api_SUITE.logs/run.2024-01-14_19.49.38/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@eebaa68b7995.2024-01-14_19.39.51"
=== Started at 2024-01-14 19:49:43
*** User 2024-01-14 19:49:43.288 ***🔗
REST request:
Code: 201
Req: {<0.65156.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e35db5408ff6f7ae">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2497@domain.example.com\",\"name\":\"wonderland-83.279925\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-83.279925">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:49:43 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-83.279925">>,224,2183}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2497@domain.example.com\",\"name\":\"wonderland-83.279925\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:49:43.289 ***🔗
REST request fails:
Code: 400
Req: {<0.65166.0>,
<<"/api/mucs/domain.example.com/wonderland-83.279925/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"aa9ad27b47dbcb73">>}],
<<"{\"recipient\":\"bOb_invite_errors_2497@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:49:43 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,498}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-83.279925/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2497@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:49:43.291 ***🔗
REST request fails:
Code: 400
Req: {<0.65171.0>,
<<"/api/mucs/domain.example.com/wonderland-83.279925/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d8e50fdf784fbeca">>}],
<<"{\"sender\":\"alicE_invite_errors_2497@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:49:43 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,421}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-83.279925/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"sender\":\"alicE_invite_errors_2497@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:49:43.292 ***🔗
REST request fails:
Code: 400
Req: {<0.65177.0>,
<<"/api/mucs/domain.example.com/wonderland-83.279925/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"011dca052a687702">>}],
<<"{\"recipient\":\"bOb_invite_errors_2497@domain.example.com\",\"sender\":\"alicE_invite_errors_2497@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:49:43 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,422}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-83.279925/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2497@domain.example.com\",\"sender\":\"alicE_invite_errors_2497@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:49:43.293 ***🔗
REST request fails:
Code: 400
Req: {<0.65181.0>,
<<"/api/mucs/domain.example.com/wonderland-83.279925/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8f93148ea147fe44">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2497@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:49:43 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,442}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-83.279925/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2497@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:49:43.295 ***🔗
REST request fails:
Code: 400
Req: {<0.65187.0>,
<<"/api/mucs/domain.example.com/wonderland-83.279925/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c3b17119305f9193">>}],
<<"{\"recipient\":\"bOb_invite_errors_2497@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:49:43 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,483}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-83.279925/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2497@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:49:43.296 ***🔗
REST request fails:
Code: 404
Req: {<0.65192.0>,<<"/api/mucs/baddomain/wonderland-83.279925/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3b974afd442897ee">>}],
<<"{\"recipient\":\"bOb_invite_errors_2497@domain.example.com\",\"sender\":\"alicE_invite_errors_2497@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:49:43 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,389}
Params: #{path => <<"/api/mucs/baddomain/wonderland-83.279925/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2497@domain.example.com\",\"sender\":\"alicE_invite_errors_2497@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:49:43.297 ***🔗
REST request fails:
Code: 404
Req: {<0.65196.0>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3b86262a0e9a3b72">>}],
<<"{\"recipient\":\"bOb_invite_errors_2497@domain.example.com\",\"sender\":\"alicE_invite_errors_2497@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:49:43 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,415}
Params: #{path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2497@domain.example.com\",\"sender\":\"alicE_invite_errors_2497@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
=== Ended at 2024-01-14 19:49:43
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}