=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.64423.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@a2fc54846062.2023-11-14_11.38.11/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-14_11.53.20/muc_http_api_suite.invite_errors.64005.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@a2fc54846062.2023-11-14_11.38.11/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-14_11.53.20/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]},
{kate,[{username,<<"kate">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrowe;p">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a2fc54846062.2023-11-14_11.38.11"
=== Started at 2023-11-14 11:53:25
*** User 2023-11-14 11:53:25.719 ***🔗
REST request:
Code: 201
Req: {<0.64468.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"26b92cf9ec3144ca">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_3137@domain.example.com\",\"name\":\"wonderland-5.694754\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-5.694754">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:53:24 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-5.694754">>,222,2182}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_3137@domain.example.com\",\"name\":\"wonderland-5.694754\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2023-11-14 11:53:25.721 ***🔗
REST request fails:
Code: 400
Req: {<0.64476.0>,
<<"/api/mucs/domain.example.com/wonderland-5.694754/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a1a0c5f38cf2486d">>}],
<<"{\"recipient\":\"bOb_invite_errors_3137@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:53:24 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,760}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-5.694754/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_3137@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2023-11-14 11:53:25.723 ***🔗
REST request fails:
Code: 400
Req: {<0.64481.0>,
<<"/api/mucs/domain.example.com/wonderland-5.694754/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b29024f42b7bfad0">>}],
<<"{\"sender\":\"alicE_invite_errors_3137@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:53:24 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,813}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-5.694754/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"sender\":\"alicE_invite_errors_3137@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2023-11-14 11:53:25.725 ***🔗
REST request fails:
Code: 400
Req: {<0.64487.0>,
<<"/api/mucs/domain.example.com/wonderland-5.694754/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5359774ab0353631">>}],
<<"{\"recipient\":\"bOb_invite_errors_3137@domain.example.com\",\"sender\":\"alicE_invite_errors_3137@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:53:24 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,677}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-5.694754/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_3137@domain.example.com\",\"sender\":\"alicE_invite_errors_3137@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2023-11-14 11:53:25.727 ***🔗
REST request fails:
Code: 400
Req: {<0.64493.0>,
<<"/api/mucs/domain.example.com/wonderland-5.694754/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"083380a7084ea353">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_3137@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:53:24 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,769}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-5.694754/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_3137@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2023-11-14 11:53:25.729 ***🔗
REST request fails:
Code: 400
Req: {<0.64501.0>,
<<"/api/mucs/domain.example.com/wonderland-5.694754/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a91cc3eca96c7f1a">>}],
<<"{\"recipient\":\"bOb_invite_errors_3137@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:53:24 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,567}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-5.694754/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_3137@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2023-11-14 11:53:25.731 ***🔗
REST request fails:
Code: 404
Req: {<0.64506.0>,<<"/api/mucs/baddomain/wonderland-5.694754/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9e30cdb1d93ae15f">>}],
<<"{\"recipient\":\"bOb_invite_errors_3137@domain.example.com\",\"sender\":\"alicE_invite_errors_3137@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:53:24 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,652}
Params: #{path => <<"/api/mucs/baddomain/wonderland-5.694754/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_3137@domain.example.com\",\"sender\":\"alicE_invite_errors_3137@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2023-11-14 11:53:25.732 ***🔗
REST request fails:
Code: 404
Req: {<0.64510.0>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0505356d3ceb88d9">>}],
<<"{\"recipient\":\"bOb_invite_errors_3137@domain.example.com\",\"sender\":\"alicE_invite_errors_3137@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:53:24 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,624}
Params: #{path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"recipient\":\"bOb_invite_errors_3137@domain.example.com\",\"sender\":\"alicE_invite_errors_3137@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
=== Ended at 2023-11-14 11:53:25
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}