=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.68106.0>},
{preset,"odbc_mssql_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@38f50db751a1.2024-04-25_14.57.23/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_15.10.20/muc_http_api_suite.invite_errors.76549.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@38f50db751a1.2024-04-25_14.57.23/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_15.10.20/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@38f50db751a1.2024-04-25_14.57.23"
=== Started at 2024-04-25 15:10:25
*** User 2024-04-25 15:10:25.700 ***🔗
REST request:
Code: 201
Req: {<0.68175.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1b24b956688445eb">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2817@domain.example.com\",\"name\":\"wonderland-25.662599\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-25.662599">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:25 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-25.662599">>,224,2726}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2817@domain.example.com\",\"name\":\"wonderland-25.662599\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:10:25.701 ***🔗
REST request fails:
Code: 400
Req: {<0.68182.0>,
<<"/api/mucs/domain.example.com/wonderland-25.662599/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"018fc858ac2eb589">>}],
<<"{\"recipient\":\"bOb_invite_errors_2817@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:25 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,570}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-25.662599/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2817@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:10:25.703 ***🔗
REST request fails:
Code: 400
Req: {<0.68184.0>,
<<"/api/mucs/domain.example.com/wonderland-25.662599/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ab4adb32bb859ee0">>}],
<<"{\"sender\":\"alicE_invite_errors_2817@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:25 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,635}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-25.662599/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"sender\":\"alicE_invite_errors_2817@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:10:25.704 ***🔗
REST request fails:
Code: 400
Req: {<0.68188.0>,
<<"/api/mucs/domain.example.com/wonderland-25.662599/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bab3309da26a82b9">>}],
<<"{\"recipient\":\"bOb_invite_errors_2817@domain.example.com\",\"sender\":\"alicE_invite_errors_2817@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:25 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,490}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-25.662599/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2817@domain.example.com\",\"sender\":\"alicE_invite_errors_2817@domain.example.com\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:10:25.706 ***🔗
REST request fails:
Code: 400
Req: {<0.68191.0>,
<<"/api/mucs/domain.example.com/wonderland-25.662599/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"76eb1fe39aee0591">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2817@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:25 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,499}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-25.662599/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2817@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:10:25.707 ***🔗
REST request fails:
Code: 400
Req: {<0.68193.0>,
<<"/api/mucs/domain.example.com/wonderland-25.662599/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"486215df32865b2c">>}],
<<"{\"recipient\":\"bOb_invite_errors_2817@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:25 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,498}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-25.662599/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2817@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:10:25.708 ***🔗
REST request fails:
Code: 404
Req: {<0.68195.0>,<<"/api/mucs/baddomain/wonderland-25.662599/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0f4eb5f7c35b3394">>}],
<<"{\"recipient\":\"bOb_invite_errors_2817@domain.example.com\",\"sender\":\"alicE_invite_errors_2817@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:25 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,445}
Params: #{path => <<"/api/mucs/baddomain/wonderland-25.662599/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2817@domain.example.com\",\"sender\":\"alicE_invite_errors_2817@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:10:25.709 ***🔗
REST request fails:
Code: 404
Req: {<0.68197.0>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3346b78f74ab08e2">>}],
<<"{\"recipient\":\"bOb_invite_errors_2817@domain.example.com\",\"sender\":\"alicE_invite_errors_2817@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:25 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,491}
Params: #{path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2817@domain.example.com\",\"sender\":\"alicE_invite_errors_2817@domain.example.com\",\"reason\":\"Join this room!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
=== Ended at 2024-04-25 15:10:25
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}