=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.31741.1>},
{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@1d8001dd39bd.2023-11-13_19.21.09/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-13_19.31.44/muc_http_api_suite.invite_errors.205058.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@1d8001dd39bd.2023-11-13_19.21.09/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-13_19.31.44/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@1d8001dd39bd.2023-11-13_19.21.09"
=== Started at 2023-11-13 19:31:49
*** User 2023-11-13 19:31:49.480 ***🔗
REST request:
Code: 201
Req: {<0.31788.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6586f58c3b48b953">>}],
<<"{\"owner\":\"alicE_invite_errors_2565@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-9.473057\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-9.473057">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-9.473057">>,222,1425}
Params: #{body =>
<<"{\"owner\":\"alicE_invite_errors_2565@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-9.473057\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:31:49.481 ***🔗
REST request fails:
Code: 400
Req: {<0.31798.1>,
<<"/api/mucs/domain.example.com/wonderland-9.473057/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e673c59ccff3e6a6">>}],
<<"{\"recipient\":\"bOb_invite_errors_2565@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,463}
Params: #{body =>
<<"{\"recipient\":\"bOb_invite_errors_2565@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-9.473057/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:31:49.483 ***🔗
REST request fails:
Code: 400
Req: {<0.31805.1>,
<<"/api/mucs/domain.example.com/wonderland-9.473057/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"00a41df288bcf7f3">>}],
<<"{\"sender\":\"alicE_invite_errors_2565@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,496}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2565@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-9.473057/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:31:49.484 ***🔗
REST request fails:
Code: 400
Req: {<0.31811.1>,
<<"/api/mucs/domain.example.com/wonderland-9.473057/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5f376e7900816828">>}],
<<"{\"sender\":\"alicE_invite_errors_2565@domain.example.com\",\"recipient\":\"bOb_invite_errors_2565@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,477}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2565@domain.example.com\",\"recipient\":\"bOb_invite_errors_2565@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-9.473057/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:31:49.486 ***🔗
REST request fails:
Code: 400
Req: {<0.31815.1>,
<<"/api/mucs/domain.example.com/wonderland-9.473057/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"318ec5fd15654374">>}],
<<"{\"sender\":\"alicE_invite_errors_2565@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,481}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2565@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-9.473057/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:31:49.487 ***🔗
REST request fails:
Code: 400
Req: {<0.31822.1>,
<<"/api/mucs/domain.example.com/wonderland-9.473057/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0ca3d1378c19838f">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2565@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,443}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2565@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-9.473057/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:31:49.488 ***🔗
REST request fails:
Code: 404
Req: {<0.31824.1>,<<"/api/mucs/baddomain/wonderland-9.473057/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7b6fdde4fa8a562f">>}],
<<"{\"sender\":\"alicE_invite_errors_2565@domain.example.com\",\"recipient\":\"bOb_invite_errors_2565@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,397}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2565@domain.example.com\",\"recipient\":\"bOb_invite_errors_2565@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/baddomain/wonderland-9.473057/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:31:49.489 ***🔗
REST request fails:
Code: 404
Req: {<0.31826.1>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"db95f6a510a76e17">>}],
<<"{\"sender\":\"alicE_invite_errors_2565@domain.example.com\",\"recipient\":\"bOb_invite_errors_2565@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,420}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2565@domain.example.com\",\"recipient\":\"bOb_invite_errors_2565@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2023-11-13 19:31:49
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}