=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.73870.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@a91c848225da.2024-04-24_13.09.45/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-24_13.22.47/muc_http_api_suite.invite_errors.102148.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@a91c848225da.2024-04-24_13.09.45/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-24_13.22.47/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@a91c848225da.2024-04-24_13.09.45"
=== Started at 2024-04-24 13:22:52
*** User 2024-04-24 13:22:52.992 ***🔗
REST request:
Code: 201
Req: {<0.73941.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"03479b20be42f1d9">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2831@localhost\",\"name\":\"wonderland-72.923159\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-72.923159">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:22:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-72.923159">>,215,2957}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2831@localhost\",\"name\":\"wonderland-72.923159\"}">>,
return_headers => true}
*** User 2024-04-24 13:22:52.994 ***🔗
REST request fails:
Code: 400
Req: {<0.73944.0>,<<"/api/mucs/localhost/wonderland-72.923159/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e05f23fed4b8180a">>}],
<<"{\"recipient\":\"bOb_invite_errors_2831@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:22:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,594}
Params: #{path => <<"/api/mucs/localhost/wonderland-72.923159/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2831@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-24 13:22:52.995 ***🔗
REST request fails:
Code: 400
Req: {<0.73946.0>,<<"/api/mucs/localhost/wonderland-72.923159/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6205144d7bb37cf8">>}],
<<"{\"sender\":\"alicE_invite_errors_2831@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:22:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,762}
Params: #{path => <<"/api/mucs/localhost/wonderland-72.923159/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_2831@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-24 13:22:52.997 ***🔗
REST request fails:
Code: 400
Req: {<0.73950.0>,<<"/api/mucs/localhost/wonderland-72.923159/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c10d4e2b41b3eccd">>}],
<<"{\"recipient\":\"bOb_invite_errors_2831@localhost\",\"sender\":\"alicE_invite_errors_2831@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:22:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,713}
Params: #{path => <<"/api/mucs/localhost/wonderland-72.923159/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2831@localhost\",\"sender\":\"alicE_invite_errors_2831@localhost\"}">>,
return_headers => true}
*** User 2024-04-24 13:22:52.999 ***🔗
REST request fails:
Code: 400
Req: {<0.73952.0>,<<"/api/mucs/localhost/wonderland-72.923159/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d7707a7262df7710">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2831@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:22:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,701}
Params: #{path => <<"/api/mucs/localhost/wonderland-72.923159/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2831@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-24 13:22:53.001 ***🔗
REST request fails:
Code: 400
Req: {<0.73956.0>,<<"/api/mucs/localhost/wonderland-72.923159/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"57631583c277eb4e">>}],
<<"{\"recipient\":\"bOb_invite_errors_2831@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:22:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,669}
Params: #{path => <<"/api/mucs/localhost/wonderland-72.923159/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2831@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-24 13:22:53.002 ***🔗
REST request fails:
Code: 404
Req: {<0.73959.0>,<<"/api/mucs/baddomain/wonderland-72.923159/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8d98be7d0e371c01">>}],
<<"{\"recipient\":\"bOb_invite_errors_2831@localhost\",\"sender\":\"alicE_invite_errors_2831@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:22:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,547}
Params: #{path => <<"/api/mucs/baddomain/wonderland-72.923159/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2831@localhost\",\"sender\":\"alicE_invite_errors_2831@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-24 13:22:53.004 ***🔗
REST request fails:
Code: 404
Req: {<0.73961.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"13cc74594390df93">>}],
<<"{\"recipient\":\"bOb_invite_errors_2831@localhost\",\"sender\":\"alicE_invite_errors_2831@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:22:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,714}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_2831@localhost\",\"sender\":\"alicE_invite_errors_2831@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
=== Ended at 2024-04-24 13:22:53
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}