=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.68037.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@f3caad7d6bd0.2024-04-16_10.55.17/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-16_11.06.45/muc_http_api_suite.invite_errors.112004.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@f3caad7d6bd0.2024-04-16_10.55.17/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-16_11.06.45/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@f3caad7d6bd0.2024-04-16_10.55.17"
=== Started at 2024-04-16 11:06:51
*** User 2024-04-16 11:06:51.180 ***🔗
REST request:
Code: 201
Req: {<0.68084.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"33c60a86a13363da">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2689@domain.example.com\",\"name\":\"wonderland-11.168383\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-11.168383">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:50 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-11.168383">>,224,2735}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2689@domain.example.com\",\"name\":\"wonderland-11.168383\"}">>,
return_headers => true}
*** User 2024-04-16 11:06:51.182 ***🔗
REST request fails:
Code: 400
Req: {<0.68094.0>,
<<"/api/mucs/domain.example.com/wonderland-11.168383/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6448083cbe1f03a0">>}],
<<"{\"recipient\":\"bOb_invite_errors_2689@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:50 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,649}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-11.168383/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2689@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-16 11:06:51.184 ***🔗
REST request fails:
Code: 400
Req: {<0.68099.0>,
<<"/api/mucs/domain.example.com/wonderland-11.168383/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"efa0e4dbdff1a9dc">>}],
<<"{\"sender\":\"alicE_invite_errors_2689@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:50 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,653}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-11.168383/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_2689@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-16 11:06:51.186 ***🔗
REST request fails:
Code: 400
Req: {<0.68105.0>,
<<"/api/mucs/domain.example.com/wonderland-11.168383/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0cb1320d9732599d">>}],
<<"{\"recipient\":\"bOb_invite_errors_2689@domain.example.com\",\"sender\":\"alicE_invite_errors_2689@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:50 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,612}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-11.168383/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2689@domain.example.com\",\"sender\":\"alicE_invite_errors_2689@domain.example.com\"}">>,
return_headers => true}
*** User 2024-04-16 11:06:51.188 ***🔗
REST request fails:
Code: 400
Req: {<0.68111.0>,
<<"/api/mucs/domain.example.com/wonderland-11.168383/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6c7ed18ad1d5c687">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2689@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:50 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,743}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-11.168383/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2689@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-16 11:06:51.190 ***🔗
REST request fails:
Code: 400
Req: {<0.68115.0>,
<<"/api/mucs/domain.example.com/wonderland-11.168383/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a4e390e0738fae01">>}],
<<"{\"recipient\":\"bOb_invite_errors_2689@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:50 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,635}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-11.168383/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2689@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-16 11:06:51.192 ***🔗
REST request fails:
Code: 404
Req: {<0.68123.0>,<<"/api/mucs/baddomain/wonderland-11.168383/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d345c2f537c019a0">>}],
<<"{\"recipient\":\"bOb_invite_errors_2689@domain.example.com\",\"sender\":\"alicE_invite_errors_2689@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:50 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,514}
Params: #{path => <<"/api/mucs/baddomain/wonderland-11.168383/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2689@domain.example.com\",\"sender\":\"alicE_invite_errors_2689@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-16 11:06:51.194 ***🔗
REST request fails:
Code: 404
Req: {<0.68125.0>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"30d23432d53e796a">>}],
<<"{\"recipient\":\"bOb_invite_errors_2689@domain.example.com\",\"sender\":\"alicE_invite_errors_2689@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:50 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,578}
Params: #{path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2689@domain.example.com\",\"sender\":\"alicE_invite_errors_2689@domain.example.com\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
=== Ended at 2024-04-16 11:06:51
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}