=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.4602.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@fca70da71937.2023-11-16_09.05.55/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-16_09.18.23/muc_http_api_suite.invite_errors.57733.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@fca70da71937.2023-11-16_09.05.55/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-16_09.18.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@fca70da71937.2023-11-16_09.05.55"
=== Started at 2023-11-16 09:18:29
*** User 2023-11-16 09:18:29.407 ***🔗
REST request:
Code: 201
Req: {<0.4643.2>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c2c8a99f43b5d6ed">>}],
<<"{\"owner\":\"alicE_invite_errors_2720@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-9.380160\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-9.380160">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:18:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-9.380160">>,213,12444}
Params: #{body =>
<<"{\"owner\":\"alicE_invite_errors_2720@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-9.380160\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:18:29.410 ***🔗
REST request fails:
Code: 400
Req: {<0.4655.2>,<<"/api/mucs/localhost/wonderland-9.380160/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9f5f72c951bb7542">>}],
<<"{\"recipient\":\"bOb_invite_errors_2720@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:18:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,851}
Params: #{body =>
<<"{\"recipient\":\"bOb_invite_errors_2720@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-9.380160/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:18:29.413 ***🔗
REST request fails:
Code: 400
Req: {<0.4661.2>,<<"/api/mucs/localhost/wonderland-9.380160/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"45fb8a7d0008f459">>}],
<<"{\"sender\":\"alicE_invite_errors_2720@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:18:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,779}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2720@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-9.380160/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:18:29.416 ***🔗
REST request fails:
Code: 400
Req: {<0.4669.2>,<<"/api/mucs/localhost/wonderland-9.380160/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c7205c3c0be05810">>}],
<<"{\"sender\":\"alicE_invite_errors_2720@localhost\",\"recipient\":\"bOb_invite_errors_2720@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:18:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,921}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2720@localhost\",\"recipient\":\"bOb_invite_errors_2720@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-9.380160/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:18:29.418 ***🔗
REST request fails:
Code: 400
Req: {<0.4676.2>,<<"/api/mucs/localhost/wonderland-9.380160/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"df3c040c01c0b737">>}],
<<"{\"sender\":\"alicE_invite_errors_2720@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:18:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,640}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2720@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-9.380160/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:18:29.422 ***🔗
REST request fails:
Code: 400
Req: {<0.4678.2>,<<"/api/mucs/localhost/wonderland-9.380160/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b662f0677b3c7b40">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2720@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:18:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,1433}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2720@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-9.380160/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:18:29.426 ***🔗
REST request fails:
Code: 404
Req: {<0.4685.2>,<<"/api/mucs/baddomain/wonderland-9.380160/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e0039e961f85971d">>}],
<<"{\"sender\":\"alicE_invite_errors_2720@localhost\",\"recipient\":\"bOb_invite_errors_2720@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:18:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,861}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2720@localhost\",\"recipient\":\"bOb_invite_errors_2720@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/baddomain/wonderland-9.380160/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:18:29.428 ***🔗
REST request fails:
Code: 404
Req: {<0.4690.2>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3e1bf07e91d82ccd">>}],
<<"{\"sender\":\"alicE_invite_errors_2720@localhost\",\"recipient\":\"bOb_invite_errors_2720@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:18:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,897}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2720@localhost\",\"recipient\":\"bOb_invite_errors_2720@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2023-11-16 09:18:29
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}