=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.10188.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@e19d78a4da91.2024-04-22_14.48.03/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_15.13.46/muc_http_api_suite.invite_errors.114692.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@e19d78a4da91.2024-04-22_14.48.03/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_15.13.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@e19d78a4da91.2024-04-22_14.48.03"
=== Started at 2024-04-22 15:13:52
*** User 2024-04-22 15:13:52.343 ***🔗
REST request:
Code: 201
Req: {<0.10231.2>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c333bc825c06042d">>}],
<<"{\"owner\":\"alicE_invite_errors_4822@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-32.285835\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-32.285835">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:13:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-32.285835">>,215,9565}
Params: #{body =>
<<"{\"owner\":\"alicE_invite_errors_4822@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-32.285835\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:13:52.352 ***🔗
REST request fails:
Code: 400
Req: {<0.10245.2>,<<"/api/mucs/localhost/wonderland-32.285835/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bc67d09d91fac6a0">>}],
<<"{\"recipient\":\"bOb_invite_errors_4822@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:13:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,4869}
Params: #{body =>
<<"{\"recipient\":\"bOb_invite_errors_4822@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-32.285835/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:13:52.366 ***🔗
REST request fails:
Code: 400
Req: {<0.10253.2>,<<"/api/mucs/localhost/wonderland-32.285835/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4855b5bba386ce29">>}],
<<"{\"sender\":\"alicE_invite_errors_4822@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:13:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,4197}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_4822@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-32.285835/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:13:52.378 ***🔗
REST request fails:
Code: 400
Req: {<0.10258.2>,<<"/api/mucs/localhost/wonderland-32.285835/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"63b16748d46a74d3">>}],
<<"{\"sender\":\"alicE_invite_errors_4822@localhost\",\"recipient\":\"bOb_invite_errors_4822@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:13:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,1852}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_4822@localhost\",\"recipient\":\"bOb_invite_errors_4822@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-32.285835/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:13:52.410 ***🔗
REST request fails:
Code: 400
Req: {<0.10265.2>,<<"/api/mucs/localhost/wonderland-32.285835/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cd6836c73c77df51">>}],
<<"{\"sender\":\"alicE_invite_errors_4822@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:13:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,3917}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_4822@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-32.285835/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:13:52.421 ***🔗
REST request fails:
Code: 400
Req: {<0.10269.2>,<<"/api/mucs/localhost/wonderland-32.285835/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9a2ca1d4109787d5">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_4822@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:13:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,1763}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_4822@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-32.285835/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:13:52.452 ***🔗
REST request fails:
Code: 404
Req: {<0.10271.2>,<<"/api/mucs/baddomain/wonderland-32.285835/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9d81147573f15fe8">>}],
<<"{\"sender\":\"alicE_invite_errors_4822@localhost\",\"recipient\":\"bOb_invite_errors_4822@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:13:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,14357}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_4822@localhost\",\"recipient\":\"bOb_invite_errors_4822@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/baddomain/wonderland-32.285835/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:13:52.471 ***🔗
REST request fails:
Code: 404
Req: {<0.10279.2>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"48a240a94cb6767e">>}],
<<"{\"sender\":\"alicE_invite_errors_4822@localhost\",\"recipient\":\"bOb_invite_errors_4822@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:13:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,6855}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_4822@localhost\",\"recipient\":\"bOb_invite_errors_4822@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 15:13:52
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}