=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.73411.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@f9de24452ab3.2024-04-10_11.46.55/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-10_11.59.59/muc_http_api_suite.invite_errors.148995.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@f9de24452ab3.2024-04-10_11.46.55/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-10_11.59.59/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@f9de24452ab3.2024-04-10_11.46.55"
=== Started at 2024-04-10 12:00:05
*** User 2024-04-10 12:00:05.156 ***🔗
REST request:
Code: 201
Req: {<0.73452.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5f7e223451d4d931">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2930@localhost\",\"name\":\"wonderland-5.143800\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-5.143800">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:00:04 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-5.143800">>,213,2159}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2930@localhost\",\"name\":\"wonderland-5.143800\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-10 12:00:05.158 ***🔗
REST request fails:
Code: 400
Req: {<0.73466.0>,<<"/api/mucs/localhost/wonderland-5.143800/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9bc004335d55739d">>}],
<<"{\"recipient\":\"bOb_invite_errors_2930@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:00:04 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,728}
Params: #{path => <<"/api/mucs/localhost/wonderland-5.143800/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2930@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-10 12:00:05.160 ***🔗
REST request fails:
Code: 400
Req: {<0.73475.0>,<<"/api/mucs/localhost/wonderland-5.143800/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"34b4a784ea19a7db">>}],
<<"{\"sender\":\"alicE_invite_errors_2930@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:00:04 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,603}
Params: #{path => <<"/api/mucs/localhost/wonderland-5.143800/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"sender\":\"alicE_invite_errors_2930@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-10 12:00:05.161 ***🔗
REST request fails:
Code: 400
Req: {<0.73481.0>,<<"/api/mucs/localhost/wonderland-5.143800/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"18258e68653aa7a0">>}],
<<"{\"sender\":\"alicE_invite_errors_2930@localhost\",\"recipient\":\"bOb_invite_errors_2930@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:00:04 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,464}
Params: #{path => <<"/api/mucs/localhost/wonderland-5.143800/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"sender\":\"alicE_invite_errors_2930@localhost\",\"recipient\":\"bOb_invite_errors_2930@localhost\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-10 12:00:05.163 ***🔗
REST request fails:
Code: 400
Req: {<0.73485.0>,<<"/api/mucs/localhost/wonderland-5.143800/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7dc1f533e2ba66cf">>}],
<<"{\"sender\":\"alicE_invite_errors_2930@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:00:04 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,435}
Params: #{path => <<"/api/mucs/localhost/wonderland-5.143800/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"sender\":\"alicE_invite_errors_2930@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-10 12:00:05.164 ***🔗
REST request fails:
Code: 400
Req: {<0.73490.0>,<<"/api/mucs/localhost/wonderland-5.143800/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b1e936046f917c4f">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2930@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:00:04 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,467}
Params: #{path => <<"/api/mucs/localhost/wonderland-5.143800/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2930@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-10 12:00:05.166 ***🔗
REST request fails:
Code: 404
Req: {<0.73494.0>,<<"/api/mucs/baddomain/wonderland-5.143800/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ea8e173eca25280f">>}],
<<"{\"sender\":\"alicE_invite_errors_2930@localhost\",\"recipient\":\"bOb_invite_errors_2930@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:00:04 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,483}
Params: #{path => <<"/api/mucs/baddomain/wonderland-5.143800/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"sender\":\"alicE_invite_errors_2930@localhost\",\"recipient\":\"bOb_invite_errors_2930@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-10 12:00:05.167 ***🔗
REST request fails:
Code: 404
Req: {<0.73499.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"10090de6e63cf5fd">>}],
<<"{\"sender\":\"alicE_invite_errors_2930@localhost\",\"recipient\":\"bOb_invite_errors_2930@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:00:04 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,480}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"sender\":\"alicE_invite_errors_2930@localhost\",\"recipient\":\"bOb_invite_errors_2930@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
=== Ended at 2024-04-10 12:00:05
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}