=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.8402.2>},
{preset,"pgsql_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@ce8571dc8546.2024-04-26_13.09.10/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_13.22.23/muc_http_api_suite.invite_errors.154627.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@ce8571dc8546.2024-04-26_13.09.10/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_13.22.23/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@ce8571dc8546.2024-04-26_13.09.10"
=== Started at 2024-04-26 13:22:28
*** User 2024-04-26 13:22:28.889 ***🔗
REST request:
Code: 201
Req: {<0.8443.2>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"916fb7948f183325">>}],
<<"{\"owner\":\"alicE_invite_errors_2912@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-48.876966\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-48.876966">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-48.876966">>,215,2321}
Params: #{body =>
<<"{\"owner\":\"alicE_invite_errors_2912@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-48.876966\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:22:28.891 ***🔗
REST request fails:
Code: 400
Req: {<0.8453.2>,<<"/api/mucs/localhost/wonderland-48.876966/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9c1163450919b010">>}],
<<"{\"recipient\":\"bOb_invite_errors_2912@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,682}
Params: #{body =>
<<"{\"recipient\":\"bOb_invite_errors_2912@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-48.876966/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:22:28.893 ***🔗
REST request fails:
Code: 400
Req: {<0.8461.2>,<<"/api/mucs/localhost/wonderland-48.876966/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7ba32d32d1739fae">>}],
<<"{\"sender\":\"alicE_invite_errors_2912@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,623}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2912@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-48.876966/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:22:28.895 ***🔗
REST request fails:
Code: 400
Req: {<0.8468.2>,<<"/api/mucs/localhost/wonderland-48.876966/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"41694e03b5f776c5">>}],
<<"{\"sender\":\"alicE_invite_errors_2912@localhost\",\"recipient\":\"bOb_invite_errors_2912@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,690}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2912@localhost\",\"recipient\":\"bOb_invite_errors_2912@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-48.876966/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:22:28.897 ***🔗
REST request fails:
Code: 400
Req: {<0.8476.2>,<<"/api/mucs/localhost/wonderland-48.876966/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ced2bee8b075ce9e">>}],
<<"{\"sender\":\"alicE_invite_errors_2912@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,668}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2912@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-48.876966/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:22:28.899 ***🔗
REST request fails:
Code: 400
Req: {<0.8480.2>,<<"/api/mucs/localhost/wonderland-48.876966/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1e022b890ca92326">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2912@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,610}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2912@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-48.876966/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:22:28.900 ***🔗
REST request fails:
Code: 404
Req: {<0.8485.2>,<<"/api/mucs/baddomain/wonderland-48.876966/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f7a73d95e4a64c73">>}],
<<"{\"sender\":\"alicE_invite_errors_2912@localhost\",\"recipient\":\"bOb_invite_errors_2912@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,570}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2912@localhost\",\"recipient\":\"bOb_invite_errors_2912@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/baddomain/wonderland-48.876966/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:22:28.902 ***🔗
REST request fails:
Code: 404
Req: {<0.8487.2>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8c84d995e06efd01">>}],
<<"{\"sender\":\"alicE_invite_errors_2912@localhost\",\"recipient\":\"bOb_invite_errors_2912@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,551}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2912@localhost\",\"recipient\":\"bOb_invite_errors_2912@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2024-04-26 13:22:28
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}