=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.69591.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@9a1cab320394.2024-04-22_17.28.34/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_17.39.42/muc_http_api_suite.invite_errors.72069.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@9a1cab320394.2024-04-22_17.28.34/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_17.39.42/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@9a1cab320394.2024-04-22_17.28.34"
=== Started at 2024-04-22 17:39:47
*** User 2024-04-22 17:39:47.769 ***🔗
REST request:
Code: 201
Req: {<0.69638.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"aa17e16c8b2c7ecb">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2719@domain.example.com\",\"name\":\"wonderland-87.751801\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-87.751801">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:39:46 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-87.751801">>,224,6091}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2719@domain.example.com\",\"name\":\"wonderland-87.751801\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-22 17:39:47.777 ***🔗
REST request fails:
Code: 400
Req: {<0.69652.0>,
<<"/api/mucs/domain.example.com/wonderland-87.751801/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"db8a9570be68dbc1">>}],
<<"{\"recipient\":\"bOb_invite_errors_2719@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:39:46 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,1437}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-87.751801/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2719@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-22 17:39:47.789 ***🔗
REST request fails:
Code: 400
Req: {<0.69659.0>,
<<"/api/mucs/domain.example.com/wonderland-87.751801/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"473ccf7e23160f7d">>}],
<<"{\"sender\":\"alicE_invite_errors_2719@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:39:46 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,7313}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-87.751801/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"sender\":\"alicE_invite_errors_2719@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-22 17:39:47.791 ***🔗
REST request fails:
Code: 400
Req: {<0.69667.0>,
<<"/api/mucs/domain.example.com/wonderland-87.751801/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"49226035aabef8bd">>}],
<<"{\"recipient\":\"bOb_invite_errors_2719@domain.example.com\",\"sender\":\"alicE_invite_errors_2719@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:39:46 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,724}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-87.751801/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2719@domain.example.com\",\"sender\":\"alicE_invite_errors_2719@domain.example.com\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-22 17:39:47.793 ***🔗
REST request fails:
Code: 400
Req: {<0.69670.0>,
<<"/api/mucs/domain.example.com/wonderland-87.751801/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dfc64b723535ede4">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2719@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:39:46 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,703}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-87.751801/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2719@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-22 17:39:47.794 ***🔗
REST request fails:
Code: 400
Req: {<0.69672.0>,
<<"/api/mucs/domain.example.com/wonderland-87.751801/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b5dff7c838b75761">>}],
<<"{\"recipient\":\"bOb_invite_errors_2719@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:39:46 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,562}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-87.751801/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2719@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-22 17:39:47.796 ***🔗
REST request fails:
Code: 404
Req: {<0.69677.0>,<<"/api/mucs/baddomain/wonderland-87.751801/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5cc73224b980a95a">>}],
<<"{\"recipient\":\"bOb_invite_errors_2719@domain.example.com\",\"sender\":\"alicE_invite_errors_2719@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:39:46 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,631}
Params: #{path => <<"/api/mucs/baddomain/wonderland-87.751801/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2719@domain.example.com\",\"sender\":\"alicE_invite_errors_2719@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-22 17:39:47.798 ***🔗
REST request fails:
Code: 404
Req: {<0.69681.0>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c05b2348bad10d08">>}],
<<"{\"recipient\":\"bOb_invite_errors_2719@domain.example.com\",\"sender\":\"alicE_invite_errors_2719@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:39:46 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,640}
Params: #{path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2719@domain.example.com\",\"sender\":\"alicE_invite_errors_2719@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
=== Ended at 2024-04-22 17:39:47
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}