=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.67891.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@8a480c91a890.2024-04-12_13.25.32/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-12_13.36.38/muc_http_api_suite.invite_errors.195202.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@8a480c91a890.2024-04-12_13.25.32/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-12_13.36.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@8a480c91a890.2024-04-12_13.25.32"
=== Started at 2024-04-12 13:36:44
*** User 2024-04-12 13:36:44.258 ***🔗
REST request:
Code: 201
Req: {<0.67938.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5c506ef6376da9c6">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2674@domain.example.com\",\"name\":\"wonderland-4.244685\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-4.244685">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:36:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-4.244685">>,222,2609}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2674@domain.example.com\",\"name\":\"wonderland-4.244685\"}">>,
role => admin,return_headers => true}
*** User 2024-04-12 13:36:44.260 ***🔗
REST request fails:
Code: 400
Req: {<0.67948.0>,
<<"/api/mucs/domain.example.com/wonderland-4.244685/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6baa0d6471b918d6">>}],
<<"{\"recipient\":\"bOb_invite_errors_2674@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:36:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,674}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-4.244685/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2674@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-12 13:36:44.262 ***🔗
REST request fails:
Code: 400
Req: {<0.67955.0>,
<<"/api/mucs/domain.example.com/wonderland-4.244685/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5e8ed57668338299">>}],
<<"{\"sender\":\"alicE_invite_errors_2674@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:36:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,564}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-4.244685/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_2674@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-12 13:36:44.263 ***🔗
REST request fails:
Code: 400
Req: {<0.67961.0>,
<<"/api/mucs/domain.example.com/wonderland-4.244685/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"82940e5f561d9bca">>}],
<<"{\"sender\":\"alicE_invite_errors_2674@domain.example.com\",\"recipient\":\"bOb_invite_errors_2674@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:36:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,490}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-4.244685/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_2674@domain.example.com\",\"recipient\":\"bOb_invite_errors_2674@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2024-04-12 13:36:44.272 ***🔗
REST request fails:
Code: 400
Req: {<0.67967.0>,
<<"/api/mucs/domain.example.com/wonderland-4.244685/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"af62696116e77af0">>}],
<<"{\"sender\":\"alicE_invite_errors_2674@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:36:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,7462}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-4.244685/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_2674@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-12 13:36:44.274 ***🔗
REST request fails:
Code: 400
Req: {<0.67973.0>,
<<"/api/mucs/domain.example.com/wonderland-4.244685/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4850e32e2c41c58b">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2674@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:36:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,783}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-4.244685/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2674@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-12 13:36:44.277 ***🔗
REST request fails:
Code: 404
Req: {<0.67977.0>,<<"/api/mucs/baddomain/wonderland-4.244685/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b0c9ea5c53e51d78">>}],
<<"{\"sender\":\"alicE_invite_errors_2674@domain.example.com\",\"recipient\":\"bOb_invite_errors_2674@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:36:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,860}
Params: #{path => <<"/api/mucs/baddomain/wonderland-4.244685/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_2674@domain.example.com\",\"recipient\":\"bOb_invite_errors_2674@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-12 13:36:44.279 ***🔗
REST request fails:
Code: 404
Req: {<0.67979.0>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"373ddb42f43c43e0">>}],
<<"{\"sender\":\"alicE_invite_errors_2674@domain.example.com\",\"recipient\":\"bOb_invite_errors_2674@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:36:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,888}
Params: #{path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_2674@domain.example.com\",\"recipient\":\"bOb_invite_errors_2674@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
=== Ended at 2024-04-12 13:36:44
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}