=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.7194.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@f79facad4ed7.2024-01-15_11.58.37/big_tests.tests.muc_http_api_SUITE.logs/run.2024-01-15_12.07.57/muc_http_api_suite.invite_errors.13573.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@f79facad4ed7.2024-01-15_11.58.37/big_tests.tests.muc_http_api_SUITE.logs/run.2024-01-15_12.07.57/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@f79facad4ed7.2024-01-15_11.58.37"
=== Started at 2024-01-15 12:08:03
*** User 2024-01-15 12:08:03.091 ***🔗
REST request:
Code: 201
Req: {<0.7241.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"94fa97fc7ef95db6">>}],
<<"{\"owner\":\"alicE_invite_errors_1334@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-83.80006\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-83.80006">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-83.80006">>,213,1472}
Params: #{body =>
<<"{\"owner\":\"alicE_invite_errors_1334@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-83.80006\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:08:03.093 ***🔗
REST request fails:
Code: 400
Req: {<0.7249.1>,<<"/api/mucs/localhost/wonderland-83.80006/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f4648283c1dc2f9b">>}],
<<"{\"recipient\":\"bOb_invite_errors_1334@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,478}
Params: #{body =>
<<"{\"recipient\":\"bOb_invite_errors_1334@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-83.80006/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:08:03.095 ***🔗
REST request fails:
Code: 400
Req: {<0.7256.1>,<<"/api/mucs/localhost/wonderland-83.80006/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"28e73bebe1287820">>}],
<<"{\"sender\":\"alicE_invite_errors_1334@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,673}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_1334@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-83.80006/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:08:03.096 ***🔗
REST request fails:
Code: 400
Req: {<0.7262.1>,<<"/api/mucs/localhost/wonderland-83.80006/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4cb59181b0d610c0">>}],
<<"{\"sender\":\"alicE_invite_errors_1334@localhost\",\"recipient\":\"bOb_invite_errors_1334@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,432}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_1334@localhost\",\"recipient\":\"bOb_invite_errors_1334@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-83.80006/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:08:03.098 ***🔗
REST request fails:
Code: 400
Req: {<0.7268.1>,<<"/api/mucs/localhost/wonderland-83.80006/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bbe467dc085d9bdf">>}],
<<"{\"sender\":\"alicE_invite_errors_1334@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,601}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_1334@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-83.80006/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:08:03.100 ***🔗
REST request fails:
Code: 400
Req: {<0.7272.1>,<<"/api/mucs/localhost/wonderland-83.80006/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c321791a328ef1a7">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_1334@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,702}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_1334@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-83.80006/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:08:03.102 ***🔗
REST request fails:
Code: 404
Req: {<0.7277.1>,<<"/api/mucs/baddomain/wonderland-83.80006/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"24b61d3505f9eedf">>}],
<<"{\"sender\":\"alicE_invite_errors_1334@localhost\",\"recipient\":\"bOb_invite_errors_1334@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,557}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_1334@localhost\",\"recipient\":\"bOb_invite_errors_1334@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/baddomain/wonderland-83.80006/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:08:03.103 ***🔗
REST request fails:
Code: 404
Req: {<0.7282.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cc2332d6cf12b154">>}],
<<"{\"sender\":\"alicE_invite_errors_1334@localhost\",\"recipient\":\"bOb_invite_errors_1334@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,536}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_1334@localhost\",\"recipient\":\"bOb_invite_errors_1334@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-01-15 12:08:03
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}