=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.67808.0>},
{preset,"mysql_redis"},
{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@83d0658cfa1c.2024-04-25_16.16.58/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_16.28.00/muc_http_api_suite.invite_errors.103428.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@83d0658cfa1c.2024-04-25_16.16.58/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_16.28.00/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@83d0658cfa1c.2024-04-25_16.16.58"
=== Started at 2024-04-25 16:28:06
*** User 2024-04-25 16:28:06.278 ***🔗
REST request:
Code: 201
Req: {<0.67855.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"29a415a8cf587c82">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2678@domain.example.com\",\"name\":\"wonderland-86.269422\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-86.269422">>},
{<<"date">>,<<"Thu, 25 Apr 2024 16:28:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-86.269422">>,224,2140}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2678@domain.example.com\",\"name\":\"wonderland-86.269422\"}">>,
return_headers => true}
*** User 2024-04-25 16:28:06.280 ***🔗
REST request fails:
Code: 400
Req: {<0.67867.0>,
<<"/api/mucs/domain.example.com/wonderland-86.269422/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"14fca33d69132696">>}],
<<"{\"recipient\":\"bOb_invite_errors_2678@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 16:28:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,474}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-86.269422/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2678@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-25 16:28:06.282 ***🔗
REST request fails:
Code: 400
Req: {<0.67874.0>,
<<"/api/mucs/domain.example.com/wonderland-86.269422/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9588d4a5a77976b9">>}],
<<"{\"sender\":\"alicE_invite_errors_2678@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 16:28:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,494}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-86.269422/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_2678@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-25 16:28:06.283 ***🔗
REST request fails:
Code: 400
Req: {<0.67880.0>,
<<"/api/mucs/domain.example.com/wonderland-86.269422/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"86d251188c95ccf4">>}],
<<"{\"recipient\":\"bOb_invite_errors_2678@domain.example.com\",\"sender\":\"alicE_invite_errors_2678@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 16:28:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,483}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-86.269422/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2678@domain.example.com\",\"sender\":\"alicE_invite_errors_2678@domain.example.com\"}">>,
return_headers => true}
*** User 2024-04-25 16:28:06.284 ***🔗
REST request fails:
Code: 400
Req: {<0.67882.0>,
<<"/api/mucs/domain.example.com/wonderland-86.269422/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3d1c98efa5aa90fd">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2678@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 16:28:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,489}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-86.269422/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2678@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-25 16:28:06.286 ***🔗
REST request fails:
Code: 400
Req: {<0.67886.0>,
<<"/api/mucs/domain.example.com/wonderland-86.269422/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cc02dbd545d77f14">>}],
<<"{\"recipient\":\"bOb_invite_errors_2678@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 16:28:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,474}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-86.269422/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2678@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-25 16:28:06.287 ***🔗
REST request fails:
Code: 404
Req: {<0.67891.0>,<<"/api/mucs/baddomain/wonderland-86.269422/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e6f8e18ec3779afa">>}],
<<"{\"recipient\":\"bOb_invite_errors_2678@domain.example.com\",\"sender\":\"alicE_invite_errors_2678@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 16:28:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,475}
Params: #{path => <<"/api/mucs/baddomain/wonderland-86.269422/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2678@domain.example.com\",\"sender\":\"alicE_invite_errors_2678@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-25 16:28:06.288 ***🔗
REST request fails:
Code: 404
Req: {<0.67896.0>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d77eb5fd5e189192">>}],
<<"{\"recipient\":\"bOb_invite_errors_2678@domain.example.com\",\"sender\":\"alicE_invite_errors_2678@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 16:28:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,502}
Params: #{path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2678@domain.example.com\",\"sender\":\"alicE_invite_errors_2678@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
=== Ended at 2024-04-25 16:28:06
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}