=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.9631.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@8ee8aee1817b.2024-04-22_17.27.48/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_17.41.05/muc_http_api_suite.invite_errors.241026.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@8ee8aee1817b.2024-04-22_17.27.48/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_17.41.05/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@8ee8aee1817b.2024-04-22_17.27.48"
=== Started at 2024-04-22 17:41:10
*** User 2024-04-22 17:41:10.429 ***🔗
REST request:
Code: 201
Req: {<0.9676.2>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"184c8d49462dafb4">>}],
<<"{\"owner\":\"alicE_invite_errors_2951@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-70.413854\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-70.413854">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:41:10 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-70.413854">>,215,2041}
Params: #{body =>
<<"{\"owner\":\"alicE_invite_errors_2951@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-70.413854\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 17:41:10.431 ***🔗
REST request fails:
Code: 400
Req: {<0.9688.2>,<<"/api/mucs/localhost/wonderland-70.413854/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"760f47c6099c539a">>}],
<<"{\"recipient\":\"bOb_invite_errors_2951@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:41:10 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,742}
Params: #{body =>
<<"{\"recipient\":\"bOb_invite_errors_2951@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-70.413854/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 17:41:10.433 ***🔗
REST request fails:
Code: 400
Req: {<0.9691.2>,<<"/api/mucs/localhost/wonderland-70.413854/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f3208c07989d27e8">>}],
<<"{\"sender\":\"alicE_invite_errors_2951@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:41:10 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,430}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2951@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-70.413854/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 17:41:10.434 ***🔗
REST request fails:
Code: 400
Req: {<0.9697.2>,<<"/api/mucs/localhost/wonderland-70.413854/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4b798858946cf719">>}],
<<"{\"sender\":\"alicE_invite_errors_2951@localhost\",\"recipient\":\"bOb_invite_errors_2951@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:41:10 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,572}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2951@localhost\",\"recipient\":\"bOb_invite_errors_2951@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-70.413854/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 17:41:10.436 ***🔗
REST request fails:
Code: 400
Req: {<0.9703.2>,<<"/api/mucs/localhost/wonderland-70.413854/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f0e0dab5e48d82c8">>}],
<<"{\"sender\":\"alicE_invite_errors_2951@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:41:10 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,511}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2951@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-70.413854/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 17:41:10.438 ***🔗
REST request fails:
Code: 400
Req: {<0.9709.2>,<<"/api/mucs/localhost/wonderland-70.413854/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eed15a60d0e57cf2">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2951@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:41:10 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,635}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2951@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-70.413854/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 17:41:10.439 ***🔗
REST request fails:
Code: 404
Req: {<0.9714.2>,<<"/api/mucs/baddomain/wonderland-70.413854/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"987e5192d4936e0f">>}],
<<"{\"sender\":\"alicE_invite_errors_2951@localhost\",\"recipient\":\"bOb_invite_errors_2951@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:41:10 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,481}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2951@localhost\",\"recipient\":\"bOb_invite_errors_2951@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/baddomain/wonderland-70.413854/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 17:41:10.441 ***🔗
REST request fails:
Code: 404
Req: {<0.9716.2>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"560428d9342416ce">>}],
<<"{\"sender\":\"alicE_invite_errors_2951@localhost\",\"recipient\":\"bOb_invite_errors_2951@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:41:10 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,822}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2951@localhost\",\"recipient\":\"bOb_invite_errors_2951@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-22 17:41:10
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}