=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.7370.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@19371561ec7c.2024-04-15_16.44.55/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-15_16.54.26/muc_http_api_suite.invite_errors.53891.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@19371561ec7c.2024-04-15_16.44.55/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-15_16.54.26/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@19371561ec7c.2024-04-15_16.44.55"
=== Started at 2024-04-15 16:54:32
*** User 2024-04-15 16:54:32.127 ***🔗
REST request:
Code: 201
Req: {<0.7417.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7a9bc6bdf4586612">>}],
<<"{\"owner\":\"alicE_invite_errors_1345@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-72.76705\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-72.76705">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:54:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-72.76705">>,213,3660}
Params: #{body =>
<<"{\"owner\":\"alicE_invite_errors_1345@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-72.76705\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-15 16:54:32.145 ***🔗
REST request fails:
Code: 400
Req: {<0.7426.1>,<<"/api/mucs/localhost/wonderland-72.76705/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cb7d86f75fa261a1">>}],
<<"{\"recipient\":\"bOb_invite_errors_1345@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:54:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,1749}
Params: #{body =>
<<"{\"recipient\":\"bOb_invite_errors_1345@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-72.76705/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-15 16:54:32.166 ***🔗
REST request fails:
Code: 400
Req: {<0.7431.1>,<<"/api/mucs/localhost/wonderland-72.76705/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"77c80cd699310aac">>}],
<<"{\"sender\":\"alicE_invite_errors_1345@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:54:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,2447}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_1345@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-72.76705/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-15 16:54:32.174 ***🔗
REST request fails:
Code: 400
Req: {<0.7442.1>,<<"/api/mucs/localhost/wonderland-72.76705/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9480db499694d43b">>}],
<<"{\"sender\":\"alicE_invite_errors_1345@localhost\",\"recipient\":\"bOb_invite_errors_1345@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:54:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,2899}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_1345@localhost\",\"recipient\":\"bOb_invite_errors_1345@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-72.76705/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-15 16:54:32.178 ***🔗
REST request fails:
Code: 400
Req: {<0.7449.1>,<<"/api/mucs/localhost/wonderland-72.76705/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e99537fcf4e50f2f">>}],
<<"{\"sender\":\"alicE_invite_errors_1345@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:54:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,1722}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_1345@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-72.76705/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-15 16:54:32.195 ***🔗
REST request fails:
Code: 400
Req: {<0.7456.1>,<<"/api/mucs/localhost/wonderland-72.76705/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4d44b1f582038406">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_1345@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:54:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,8645}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_1345@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-72.76705/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-15 16:54:32.202 ***🔗
REST request fails:
Code: 404
Req: {<0.7459.1>,<<"/api/mucs/baddomain/wonderland-72.76705/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6027c3ba2914f307">>}],
<<"{\"sender\":\"alicE_invite_errors_1345@localhost\",\"recipient\":\"bOb_invite_errors_1345@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:54:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,2081}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_1345@localhost\",\"recipient\":\"bOb_invite_errors_1345@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/baddomain/wonderland-72.76705/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-15 16:54:32.213 ***🔗
REST request fails:
Code: 404
Req: {<0.7461.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1e279314241a3ee0">>}],
<<"{\"sender\":\"alicE_invite_errors_1345@localhost\",\"recipient\":\"bOb_invite_errors_1345@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:54:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,1844}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_1345@localhost\",\"recipient\":\"bOb_invite_errors_1345@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-15 16:54:32
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}