=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.75316.0>},
{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@6bd26896afa6.2024-04-22_14.32.22/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_14.47.30/muc_http_api_suite.invite_errors.147843.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@6bd26896afa6.2024-04-22_14.32.22/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_14.47.30/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@6bd26896afa6.2024-04-22_14.32.22"
=== Started at 2024-04-22 14:47:35
*** User 2024-04-22 14:47:35.619 ***🔗
REST request:
Code: 201
Req: {<0.75363.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d3bd72aa8b503609">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_3008@localhost\",\"name\":\"wonderland-55.607947\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-55.607947">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:35 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-55.607947">>,215,2043}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_3008@localhost\",\"name\":\"wonderland-55.607947\"}">>,
return_headers => true}
*** User 2024-04-22 14:47:35.622 ***🔗
REST request fails:
Code: 400
Req: {<0.75373.0>,<<"/api/mucs/localhost/wonderland-55.607947/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cc03b536f108a29d">>}],
<<"{\"recipient\":\"bOb_invite_errors_3008@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:35 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,493}
Params: #{path => <<"/api/mucs/localhost/wonderland-55.607947/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_3008@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:47:35.624 ***🔗
REST request fails:
Code: 400
Req: {<0.75380.0>,<<"/api/mucs/localhost/wonderland-55.607947/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"760f9534a03e8f55">>}],
<<"{\"sender\":\"alicE_invite_errors_3008@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:35 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,917}
Params: #{path => <<"/api/mucs/localhost/wonderland-55.607947/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_3008@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:47:35.627 ***🔗
REST request fails:
Code: 400
Req: {<0.75386.0>,<<"/api/mucs/localhost/wonderland-55.607947/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"05cf9bcdef70d819">>}],
<<"{\"recipient\":\"bOb_invite_errors_3008@localhost\",\"sender\":\"alicE_invite_errors_3008@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:35 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,640}
Params: #{path => <<"/api/mucs/localhost/wonderland-55.607947/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_3008@localhost\",\"sender\":\"alicE_invite_errors_3008@localhost\"}">>,
return_headers => true}
*** User 2024-04-22 14:47:35.631 ***🔗
REST request fails:
Code: 400
Req: {<0.75392.0>,<<"/api/mucs/localhost/wonderland-55.607947/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5764e62b775be37e">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_3008@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:35 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,876}
Params: #{path => <<"/api/mucs/localhost/wonderland-55.607947/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_3008@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:47:35.635 ***🔗
REST request fails:
Code: 400
Req: {<0.75397.0>,<<"/api/mucs/localhost/wonderland-55.607947/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"727b4e8536ff8f56">>}],
<<"{\"recipient\":\"bOb_invite_errors_3008@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:35 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,893}
Params: #{path => <<"/api/mucs/localhost/wonderland-55.607947/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_3008@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:47:35.637 ***🔗
REST request fails:
Code: 404
Req: {<0.75401.0>,<<"/api/mucs/baddomain/wonderland-55.607947/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e308af0d24f234d7">>}],
<<"{\"recipient\":\"bOb_invite_errors_3008@localhost\",\"sender\":\"alicE_invite_errors_3008@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:35 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,728}
Params: #{path => <<"/api/mucs/baddomain/wonderland-55.607947/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_3008@localhost\",\"sender\":\"alicE_invite_errors_3008@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:47:35.639 ***🔗
REST request fails:
Code: 404
Req: {<0.75406.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"64d6c12fd11757c9">>}],
<<"{\"recipient\":\"bOb_invite_errors_3008@localhost\",\"sender\":\"alicE_invite_errors_3008@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:35 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,805}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_3008@localhost\",\"sender\":\"alicE_invite_errors_3008@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
=== Ended at 2024-04-22 14:47:35
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}