=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.68548.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@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-18_11.07.41/muc_http_api_suite.invite_errors.134787.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@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-18_11.07.41/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@2ed2b07c4324.2024-04-18_10.56.18"
=== Started at 2024-04-18 11:07:46
*** User 2024-04-18 11:07:46.462 ***🔗
REST request:
Code: 201
Req: {<0.68589.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dd9c74b7d496ac94">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2585@localhost\",\"name\":\"wonderland-66.451831\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-66.451831">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:07:46 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-66.451831">>,215,2139}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2585@localhost\",\"name\":\"wonderland-66.451831\"}">>,
role => admin,return_headers => true}
*** User 2024-04-18 11:07:46.464 ***🔗
REST request fails:
Code: 400
Req: {<0.68599.0>,<<"/api/mucs/localhost/wonderland-66.451831/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f63620aa1e5d020c">>}],
<<"{\"recipient\":\"bOb_invite_errors_2585@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:07:46 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,475}
Params: #{path => <<"/api/mucs/localhost/wonderland-66.451831/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2585@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-18 11:07:46.466 ***🔗
REST request fails:
Code: 400
Req: {<0.68607.0>,<<"/api/mucs/localhost/wonderland-66.451831/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d45179e761a9d3ae">>}],
<<"{\"sender\":\"alicE_invite_errors_2585@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:07:46 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,454}
Params: #{path => <<"/api/mucs/localhost/wonderland-66.451831/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_2585@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-18 11:07:46.467 ***🔗
REST request fails:
Code: 400
Req: {<0.68614.0>,<<"/api/mucs/localhost/wonderland-66.451831/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d887b095954f32c2">>}],
<<"{\"recipient\":\"bOb_invite_errors_2585@localhost\",\"sender\":\"alicE_invite_errors_2585@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:07:46 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,433}
Params: #{path => <<"/api/mucs/localhost/wonderland-66.451831/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2585@localhost\",\"sender\":\"alicE_invite_errors_2585@localhost\"}">>,
role => admin,return_headers => true}
*** User 2024-04-18 11:07:46.469 ***🔗
REST request fails:
Code: 400
Req: {<0.68620.0>,<<"/api/mucs/localhost/wonderland-66.451831/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"91b6ef2a32606c37">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2585@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:07:46 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,442}
Params: #{path => <<"/api/mucs/localhost/wonderland-66.451831/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2585@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-18 11:07:46.470 ***🔗
REST request fails:
Code: 400
Req: {<0.68626.0>,<<"/api/mucs/localhost/wonderland-66.451831/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ed5c2a3243779dc5">>}],
<<"{\"recipient\":\"bOb_invite_errors_2585@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:07:46 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,421}
Params: #{path => <<"/api/mucs/localhost/wonderland-66.451831/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2585@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-18 11:07:46.471 ***🔗
REST request fails:
Code: 404
Req: {<0.68629.0>,<<"/api/mucs/baddomain/wonderland-66.451831/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"79291f01cc0a4c8d">>}],
<<"{\"recipient\":\"bOb_invite_errors_2585@localhost\",\"sender\":\"alicE_invite_errors_2585@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:07:46 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,328}
Params: #{path => <<"/api/mucs/baddomain/wonderland-66.451831/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2585@localhost\",\"sender\":\"alicE_invite_errors_2585@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-18 11:07:46.473 ***🔗
REST request fails:
Code: 404
Req: {<0.68633.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"326f3f5479ea2362">>}],
<<"{\"recipient\":\"bOb_invite_errors_2585@localhost\",\"sender\":\"alicE_invite_errors_2585@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:07:46 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,499}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2585@localhost\",\"sender\":\"alicE_invite_errors_2585@localhost\",\"reason\":\"Join this room!\"}">>,
role => admin,return_headers => true}
=== Ended at 2024-04-18 11:07:46
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}