=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.7421.1>},
{preset,"ldap_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@472006ff75ca.2024-04-26_12.38.26/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_12.47.46/muc_http_api_suite.invite_errors.18693.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@472006ff75ca.2024-04-26_12.38.26/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_12.47.46/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@472006ff75ca.2024-04-26_12.38.26"
=== Started at 2024-04-26 12:47:51
*** User 2024-04-26 12:47:51.427 ***🔗
REST request:
Code: 201
Req: {<0.7464.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1be6c4571dcd91f7">>}],
<<"{\"owner\":\"alicE_invite_errors_1341@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-71.417370\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-71.417370">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:47:51 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-71.417370">>,215,1657}
Params: #{body =>
<<"{\"owner\":\"alicE_invite_errors_1341@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-71.417370\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:47:51.428 ***🔗
REST request fails:
Code: 400
Req: {<0.7474.1>,<<"/api/mucs/localhost/wonderland-71.417370/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1b0df8828ff45249">>}],
<<"{\"recipient\":\"bOb_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:47:51 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,522}
Params: #{body =>
<<"{\"recipient\":\"bOb_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-71.417370/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:47:51.430 ***🔗
REST request fails:
Code: 400
Req: {<0.7482.1>,<<"/api/mucs/localhost/wonderland-71.417370/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1bcfd8993ffde0c9">>}],
<<"{\"sender\":\"alicE_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:47:51 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,527}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-71.417370/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:47:51.431 ***🔗
REST request fails:
Code: 400
Req: {<0.7489.1>,<<"/api/mucs/localhost/wonderland-71.417370/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"726adafd218b5a73">>}],
<<"{\"sender\":\"alicE_invite_errors_1341@localhost\",\"recipient\":\"bOb_invite_errors_1341@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:47:51 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,561}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_1341@localhost\",\"recipient\":\"bOb_invite_errors_1341@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-71.417370/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:47:51.433 ***🔗
REST request fails:
Code: 400
Req: {<0.7495.1>,<<"/api/mucs/localhost/wonderland-71.417370/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0a26e548cba635bb">>}],
<<"{\"sender\":\"alicE_invite_errors_1341@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:47:51 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,619}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_1341@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-71.417370/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:47:51.434 ***🔗
REST request fails:
Code: 400
Req: {<0.7497.1>,<<"/api/mucs/localhost/wonderland-71.417370/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"251b7dca8753f7f5">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:47:51 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,465}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-71.417370/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:47:51.436 ***🔗
REST request fails:
Code: 404
Req: {<0.7502.1>,<<"/api/mucs/baddomain/wonderland-71.417370/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fdc31a8198379b25">>}],
<<"{\"sender\":\"alicE_invite_errors_1341@localhost\",\"recipient\":\"bOb_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:47:51 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,507}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_1341@localhost\",\"recipient\":\"bOb_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/baddomain/wonderland-71.417370/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:47:51.437 ***🔗
REST request fails:
Code: 404
Req: {<0.7509.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"195d759b4609a519">>}],
<<"{\"sender\":\"alicE_invite_errors_1341@localhost\",\"recipient\":\"bOb_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:47:51 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,500}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_1341@localhost\",\"recipient\":\"bOb_invite_errors_1341@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 12:47:51
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}