=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.42453.0>},
{preset,"internal_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@a7b3e14b752f.2024-04-25_14.57.24/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_15.10.35/muc_http_api_suite.invite_errors.37252.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@a7b3e14b752f.2024-04-25_14.57.24/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_15.10.35/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@a7b3e14b752f.2024-04-25_14.57.24"
=== Started at 2024-04-25 15:10:41
*** User 2024-04-25 15:10:41.046 ***🔗
REST request:
Code: 201
Req: {<0.42494.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b3df80d99c63e809">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1547@localhost\",\"name\":\"wonderland-41.30642\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-41.30642">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:40 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-41.30642">>,213,1346}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1547@localhost\",\"name\":\"wonderland-41.30642\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:10:41.048 ***🔗
REST request fails:
Code: 400
Req: {<0.42502.0>,<<"/api/mucs/localhost/wonderland-41.30642/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4a6b1d8792f05458">>}],
<<"{\"recipient\":\"bOb_invite_errors_1547@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:40 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,630}
Params: #{path => <<"/api/mucs/localhost/wonderland-41.30642/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1547@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:10:41.051 ***🔗
REST request fails:
Code: 400
Req: {<0.42508.0>,<<"/api/mucs/localhost/wonderland-41.30642/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e262ece3a77fa4d6">>}],
<<"{\"sender\":\"alicE_invite_errors_1547@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:40 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,689}
Params: #{path => <<"/api/mucs/localhost/wonderland-41.30642/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_1547@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:10:41.052 ***🔗
REST request fails:
Code: 400
Req: {<0.42517.0>,<<"/api/mucs/localhost/wonderland-41.30642/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"df096ce72508db8a">>}],
<<"{\"recipient\":\"bOb_invite_errors_1547@localhost\",\"sender\":\"alicE_invite_errors_1547@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:40 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,606}
Params: #{path => <<"/api/mucs/localhost/wonderland-41.30642/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1547@localhost\",\"sender\":\"alicE_invite_errors_1547@localhost\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:10:41.054 ***🔗
REST request fails:
Code: 400
Req: {<0.42522.0>,<<"/api/mucs/localhost/wonderland-41.30642/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"810c3f1b118c33ec">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_1547@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:40 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,430}
Params: #{path => <<"/api/mucs/localhost/wonderland-41.30642/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_1547@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:10:41.056 ***🔗
REST request fails:
Code: 400
Req: {<0.42527.0>,<<"/api/mucs/localhost/wonderland-41.30642/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ea34c29651c9a2b5">>}],
<<"{\"recipient\":\"bOb_invite_errors_1547@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:40 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,530}
Params: #{path => <<"/api/mucs/localhost/wonderland-41.30642/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1547@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:10:41.058 ***🔗
REST request fails:
Code: 404
Req: {<0.42535.0>,<<"/api/mucs/baddomain/wonderland-41.30642/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"39d2dd92214a3b79">>}],
<<"{\"recipient\":\"bOb_invite_errors_1547@localhost\",\"sender\":\"alicE_invite_errors_1547@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:40 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,423}
Params: #{path => <<"/api/mucs/baddomain/wonderland-41.30642/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1547@localhost\",\"sender\":\"alicE_invite_errors_1547@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:10:41.060 ***🔗
REST request fails:
Code: 404
Req: {<0.42538.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"00c692490ff43095">>}],
<<"{\"recipient\":\"bOb_invite_errors_1547@localhost\",\"sender\":\"alicE_invite_errors_1547@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:40 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,558}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1547@localhost\",\"sender\":\"alicE_invite_errors_1547@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,return_headers => true}
=== Ended at 2024-04-25 15:10:41
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}