=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.73593.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@96ddc50d3205.2024-04-23_10.53.40/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_11.09.49/muc_http_api_suite.invite_errors.221826.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@96ddc50d3205.2024-04-23_10.53.40/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_11.09.49/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@96ddc50d3205.2024-04-23_10.53.40"
=== Started at 2024-04-23 11:09:55
*** User 2024-04-23 11:09:55.374 ***🔗
REST request:
Code: 201
Req: {<0.73636.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"661b2f6d4978302d">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2973@localhost\",\"name\":\"wonderland-95.355121\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-95.355121">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-95.355121">>,215,2813}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2973@localhost\",\"name\":\"wonderland-95.355121\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-23 11:09:55.376 ***🔗
REST request fails:
Code: 400
Req: {<0.73646.0>,<<"/api/mucs/localhost/wonderland-95.355121/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d8a1a4beb7b4a3db">>}],
<<"{\"recipient\":\"bOb_invite_errors_2973@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,673}
Params: #{path => <<"/api/mucs/localhost/wonderland-95.355121/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2973@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-23 11:09:55.378 ***🔗
REST request fails:
Code: 400
Req: {<0.73652.0>,<<"/api/mucs/localhost/wonderland-95.355121/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"daa84c5aeac42855">>}],
<<"{\"sender\":\"alicE_invite_errors_2973@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,668}
Params: #{path => <<"/api/mucs/localhost/wonderland-95.355121/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_2973@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-23 11:09:55.380 ***🔗
REST request fails:
Code: 400
Req: {<0.73660.0>,<<"/api/mucs/localhost/wonderland-95.355121/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"de0adedd73687139">>}],
<<"{\"recipient\":\"bOb_invite_errors_2973@localhost\",\"sender\":\"alicE_invite_errors_2973@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,797}
Params: #{path => <<"/api/mucs/localhost/wonderland-95.355121/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2973@localhost\",\"sender\":\"alicE_invite_errors_2973@localhost\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-23 11:09:55.382 ***🔗
REST request fails:
Code: 400
Req: {<0.73667.0>,<<"/api/mucs/localhost/wonderland-95.355121/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8a0f383edbaf9ec9">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2973@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,1036}
Params: #{path => <<"/api/mucs/localhost/wonderland-95.355121/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2973@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-23 11:09:55.385 ***🔗
REST request fails:
Code: 400
Req: {<0.73669.0>,<<"/api/mucs/localhost/wonderland-95.355121/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cacb7d1535db50a9">>}],
<<"{\"recipient\":\"bOb_invite_errors_2973@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,860}
Params: #{path => <<"/api/mucs/localhost/wonderland-95.355121/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2973@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-23 11:09:55.387 ***🔗
REST request fails:
Code: 404
Req: {<0.73674.0>,<<"/api/mucs/baddomain/wonderland-95.355121/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1b74f6bb05d91888">>}],
<<"{\"recipient\":\"bOb_invite_errors_2973@localhost\",\"sender\":\"alicE_invite_errors_2973@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,703}
Params: #{path => <<"/api/mucs/baddomain/wonderland-95.355121/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2973@localhost\",\"sender\":\"alicE_invite_errors_2973@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-23 11:09:55.390 ***🔗
REST request fails:
Code: 404
Req: {<0.73679.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"10fab9cc07991da4">>}],
<<"{\"recipient\":\"bOb_invite_errors_2973@localhost\",\"sender\":\"alicE_invite_errors_2973@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,828}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2973@localhost\",\"sender\":\"alicE_invite_errors_2973@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
=== Ended at 2024-04-23 11:09:55
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}