=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.74960.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@17cbf61cf260.2024-04-22_14.32.24/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_14.47.50/muc_http_api_suite.invite_errors.224514.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@17cbf61cf260.2024-04-22_14.32.24/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_14.47.50/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@17cbf61cf260.2024-04-22_14.32.24"
=== Started at 2024-04-22 14:47:55
*** User 2024-04-22 14:47:55.446 ***🔗
REST request:
Code: 201
Req: {<0.75001.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f499c729d48a4a40">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_3050@localhost\",\"name\":\"wonderland-75.416032\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-75.416032">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-75.416032">>,215,4221}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_3050@localhost\",\"name\":\"wonderland-75.416032\"}">>,
return_headers => true}
*** User 2024-04-22 14:47:55.449 ***🔗
REST request fails:
Code: 400
Req: {<0.75017.0>,<<"/api/mucs/localhost/wonderland-75.416032/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1edbd8c7c64d295b">>}],
<<"{\"recipient\":\"bOb_invite_errors_3050@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,789}
Params: #{path => <<"/api/mucs/localhost/wonderland-75.416032/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_3050@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:47:55.451 ***🔗
REST request fails:
Code: 400
Req: {<0.75023.0>,<<"/api/mucs/localhost/wonderland-75.416032/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"31aee56815e80fd6">>}],
<<"{\"sender\":\"alicE_invite_errors_3050@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,792}
Params: #{path => <<"/api/mucs/localhost/wonderland-75.416032/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_3050@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:47:55.453 ***🔗
REST request fails:
Code: 400
Req: {<0.75029.0>,<<"/api/mucs/localhost/wonderland-75.416032/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3b8e2e2bf9927707">>}],
<<"{\"recipient\":\"bOb_invite_errors_3050@localhost\",\"sender\":\"alicE_invite_errors_3050@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,646}
Params: #{path => <<"/api/mucs/localhost/wonderland-75.416032/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_3050@localhost\",\"sender\":\"alicE_invite_errors_3050@localhost\"}">>,
return_headers => true}
*** User 2024-04-22 14:47:55.457 ***🔗
REST request fails:
Code: 400
Req: {<0.75031.0>,<<"/api/mucs/localhost/wonderland-75.416032/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bf03a9ac8776061b">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_3050@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,975}
Params: #{path => <<"/api/mucs/localhost/wonderland-75.416032/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_3050@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:47:55.460 ***🔗
REST request fails:
Code: 400
Req: {<0.75039.0>,<<"/api/mucs/localhost/wonderland-75.416032/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c051db3527b58632">>}],
<<"{\"recipient\":\"bOb_invite_errors_3050@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,647}
Params: #{path => <<"/api/mucs/localhost/wonderland-75.416032/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_3050@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:47:55.462 ***🔗
REST request fails:
Code: 404
Req: {<0.75043.0>,<<"/api/mucs/baddomain/wonderland-75.416032/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2932106ebc8b1ae0">>}],
<<"{\"recipient\":\"bOb_invite_errors_3050@localhost\",\"sender\":\"alicE_invite_errors_3050@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,634}
Params: #{path => <<"/api/mucs/baddomain/wonderland-75.416032/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_3050@localhost\",\"sender\":\"alicE_invite_errors_3050@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:47:55.464 ***🔗
REST request fails:
Code: 404
Req: {<0.75046.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"07079b40bc8251ec">>}],
<<"{\"recipient\":\"bOb_invite_errors_3050@localhost\",\"sender\":\"alicE_invite_errors_3050@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,806}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_3050@localhost\",\"sender\":\"alicE_invite_errors_3050@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
=== Ended at 2024-04-22 14:47:55
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}