=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.67959.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@699c7e574a5d.2024-04-26_13.09.59/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_13.21.10/muc_http_api_suite.invite_errors.110596.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@699c7e574a5d.2024-04-26_13.09.59/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_13.21.10/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@699c7e574a5d.2024-04-26_13.09.59"
=== Started at 2024-04-26 13:21:15
*** User 2024-04-26 13:21:15.667 ***🔗
REST request:
Code: 201
Req: {<0.68004.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d9870b4abfebb55d">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2687@domain.example.com\",\"name\":\"wonderland-75.657078\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-75.657078">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:21:15 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-75.657078">>,224,2381}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2687@domain.example.com\",\"name\":\"wonderland-75.657078\"}">>,
return_headers => true}
*** User 2024-04-26 13:21:15.669 ***🔗
REST request fails:
Code: 400
Req: {<0.68014.0>,
<<"/api/mucs/domain.example.com/wonderland-75.657078/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e7591828c4bdcfdf">>}],
<<"{\"recipient\":\"bOb_invite_errors_2687@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:21:15 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,552}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-75.657078/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2687@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-26 13:21:15.670 ***🔗
REST request fails:
Code: 400
Req: {<0.68022.0>,
<<"/api/mucs/domain.example.com/wonderland-75.657078/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"87070514c054945c">>}],
<<"{\"sender\":\"alicE_invite_errors_2687@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:21:15 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,537}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-75.657078/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_2687@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-26 13:21:15.672 ***🔗
REST request fails:
Code: 400
Req: {<0.68028.0>,
<<"/api/mucs/domain.example.com/wonderland-75.657078/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3b261d5f85488078">>}],
<<"{\"sender\":\"alicE_invite_errors_2687@domain.example.com\",\"recipient\":\"bOb_invite_errors_2687@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:21:15 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,495}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-75.657078/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_2687@domain.example.com\",\"recipient\":\"bOb_invite_errors_2687@domain.example.com\"}">>,
return_headers => true}
*** User 2024-04-26 13:21:15.673 ***🔗
REST request fails:
Code: 400
Req: {<0.68035.0>,
<<"/api/mucs/domain.example.com/wonderland-75.657078/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0b3bf44a96cd440f">>}],
<<"{\"sender\":\"alicE_invite_errors_2687@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:21:15 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,564}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-75.657078/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_2687@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-26 13:21:15.674 ***🔗
REST request fails:
Code: 400
Req: {<0.68038.0>,
<<"/api/mucs/domain.example.com/wonderland-75.657078/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a49a3cee03078388">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2687@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:21:15 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,437}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-75.657078/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2687@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-26 13:21:15.676 ***🔗
REST request fails:
Code: 404
Req: {<0.68042.0>,<<"/api/mucs/baddomain/wonderland-75.657078/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"36bb5eb21ac34118">>}],
<<"{\"sender\":\"alicE_invite_errors_2687@domain.example.com\",\"recipient\":\"bOb_invite_errors_2687@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:21:15 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,417}
Params: #{path => <<"/api/mucs/baddomain/wonderland-75.657078/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_2687@domain.example.com\",\"recipient\":\"bOb_invite_errors_2687@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-26 13:21:15.677 ***🔗
REST request fails:
Code: 404
Req: {<0.68047.0>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5707be39028b45ea">>}],
<<"{\"sender\":\"alicE_invite_errors_2687@domain.example.com\",\"recipient\":\"bOb_invite_errors_2687@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:21:15 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,713}
Params: #{path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_2687@domain.example.com\",\"recipient\":\"bOb_invite_errors_2687@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
=== Ended at 2024-04-26 13:21:15
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}