=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.65311.0>},
{preset,"pgsql_cets"},
{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@76d8bb481028.2024-03-11_08.55.19/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-11_09.07.22/muc_http_api_suite.invite_errors.154114.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@76d8bb481028.2024-03-11_08.55.19/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-11_09.07.22/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@76d8bb481028.2024-03-11_08.55.19"
=== Started at 2024-03-11 09:07:27
*** User 2024-03-11 09:07:27.490 ***🔗
REST request:
Code: 201
Req: {<0.65354.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f65f3c68056460aa">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2535@localhost\",\"name\":\"wonderland-47.478016\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-47.478016">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:07:26 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-47.478016">>,215,2440}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2535@localhost\",\"name\":\"wonderland-47.478016\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-03-11 09:07:27.492 ***🔗
REST request fails:
Code: 400
Req: {<0.65362.0>,<<"/api/mucs/localhost/wonderland-47.478016/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6c7f0a3a2ee166ae">>}],
<<"{\"recipient\":\"bOb_invite_errors_2535@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:07:26 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,739}
Params: #{path => <<"/api/mucs/localhost/wonderland-47.478016/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2535@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-03-11 09:07:27.494 ***🔗
REST request fails:
Code: 400
Req: {<0.65368.0>,<<"/api/mucs/localhost/wonderland-47.478016/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"30ba1d697853ec11">>}],
<<"{\"sender\":\"alicE_invite_errors_2535@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:07:26 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,636}
Params: #{path => <<"/api/mucs/localhost/wonderland-47.478016/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"sender\":\"alicE_invite_errors_2535@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-03-11 09:07:27.496 ***🔗
REST request fails:
Code: 400
Req: {<0.65379.0>,<<"/api/mucs/localhost/wonderland-47.478016/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0fe8440f4ff0b4a1">>}],
<<"{\"recipient\":\"bOb_invite_errors_2535@localhost\",\"sender\":\"alicE_invite_errors_2535@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:07:26 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,645}
Params: #{path => <<"/api/mucs/localhost/wonderland-47.478016/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2535@localhost\",\"sender\":\"alicE_invite_errors_2535@localhost\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-03-11 09:07:27.498 ***🔗
REST request fails:
Code: 400
Req: {<0.65383.0>,<<"/api/mucs/localhost/wonderland-47.478016/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a44403a0e450906a">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2535@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:07:26 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,779}
Params: #{path => <<"/api/mucs/localhost/wonderland-47.478016/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2535@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-03-11 09:07:27.500 ***🔗
REST request fails:
Code: 400
Req: {<0.65389.0>,<<"/api/mucs/localhost/wonderland-47.478016/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"65c808360d3f667f">>}],
<<"{\"recipient\":\"bOb_invite_errors_2535@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:07:26 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,685}
Params: #{path => <<"/api/mucs/localhost/wonderland-47.478016/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2535@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-03-11 09:07:27.503 ***🔗
REST request fails:
Code: 404
Req: {<0.65392.0>,<<"/api/mucs/baddomain/wonderland-47.478016/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7863c7104cf1bbe3">>}],
<<"{\"recipient\":\"bOb_invite_errors_2535@localhost\",\"sender\":\"alicE_invite_errors_2535@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:07:26 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,736}
Params: #{path => <<"/api/mucs/baddomain/wonderland-47.478016/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2535@localhost\",\"sender\":\"alicE_invite_errors_2535@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-03-11 09:07:27.505 ***🔗
REST request fails:
Code: 404
Req: {<0.65399.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d50f183b717c481b">>}],
<<"{\"recipient\":\"bOb_invite_errors_2535@localhost\",\"sender\":\"alicE_invite_errors_2535@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:07:26 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,896}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_2535@localhost\",\"sender\":\"alicE_invite_errors_2535@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
=== Ended at 2024-03-11 09:07:27
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}