=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.73509.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@1df4d63c78a0.2024-04-26_13.10.29/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_13.25.46/muc_http_api_suite.invite_errors.99204.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@1df4d63c78a0.2024-04-26_13.10.29/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_13.25.46/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]},
{kate,[{username,<<"kate">>},
{server,<<"localhost">>},
{password,<<"makrowe;p">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@1df4d63c78a0.2024-04-26_13.10.29"
=== Started at 2024-04-26 13:25:52
*** User 2024-04-26 13:25:52.321 ***🔗
REST request:
Code: 201
Req: {<0.73569.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3552ea671da6b0f9">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_3037@localhost\",\"name\":\"wonderland-52.282812\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-52.282812">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:25:51 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-52.282812">>,215,10420}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_3037@localhost\",\"name\":\"wonderland-52.282812\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:25:52.323 ***🔗
REST request fails:
Code: 400
Req: {<0.73577.0>,<<"/api/mucs/localhost/wonderland-52.282812/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e82aa95684d40dc2">>}],
<<"{\"recipient\":\"bOb_invite_errors_3037@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:25:51 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,628}
Params: #{path => <<"/api/mucs/localhost/wonderland-52.282812/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_3037@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:25:52.327 ***🔗
REST request fails:
Code: 400
Req: {<0.73582.0>,<<"/api/mucs/localhost/wonderland-52.282812/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c942145918bbd17f">>}],
<<"{\"sender\":\"alicE_invite_errors_3037@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:25:51 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,879}
Params: #{path => <<"/api/mucs/localhost/wonderland-52.282812/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_3037@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:25:52.330 ***🔗
REST request fails:
Code: 400
Req: {<0.73584.0>,<<"/api/mucs/localhost/wonderland-52.282812/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1e0bbe3955da206c">>}],
<<"{\"sender\":\"alicE_invite_errors_3037@localhost\",\"recipient\":\"bOb_invite_errors_3037@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:25:51 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,903}
Params: #{path => <<"/api/mucs/localhost/wonderland-52.282812/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_3037@localhost\",\"recipient\":\"bOb_invite_errors_3037@localhost\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:25:52.332 ***🔗
REST request fails:
Code: 400
Req: {<0.73588.0>,<<"/api/mucs/localhost/wonderland-52.282812/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"07796c5f9864fb31">>}],
<<"{\"sender\":\"alicE_invite_errors_3037@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:25:51 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,1090}
Params: #{path => <<"/api/mucs/localhost/wonderland-52.282812/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_3037@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:25:52.334 ***🔗
REST request fails:
Code: 400
Req: {<0.73593.0>,<<"/api/mucs/localhost/wonderland-52.282812/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7ac57f2c51cfd544">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_3037@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:25:51 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,688}
Params: #{path => <<"/api/mucs/localhost/wonderland-52.282812/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_3037@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:25:52.336 ***🔗
REST request fails:
Code: 404
Req: {<0.73595.0>,<<"/api/mucs/baddomain/wonderland-52.282812/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b755635a5b9f0a14">>}],
<<"{\"sender\":\"alicE_invite_errors_3037@localhost\",\"recipient\":\"bOb_invite_errors_3037@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:25:51 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,807}
Params: #{path => <<"/api/mucs/baddomain/wonderland-52.282812/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_3037@localhost\",\"recipient\":\"bOb_invite_errors_3037@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:25:52.342 ***🔗
REST request fails:
Code: 404
Req: {<0.73600.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cf319dcddbf852ff">>}],
<<"{\"sender\":\"alicE_invite_errors_3037@localhost\",\"recipient\":\"bOb_invite_errors_3037@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:25:51 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,902}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_3037@localhost\",\"recipient\":\"bOb_invite_errors_3037@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
=== Ended at 2024-04-26 13:25:52
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}