=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.39911.0>},
{preset,"ldap_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@306ffcb8cebe.2024-03-06_12.05.32/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-06_12.15.17/muc_http_api_suite.invite_errors.30212.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@306ffcb8cebe.2024-03-06_12.05.32/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-06_12.15.17/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@306ffcb8cebe.2024-03-06_12.05.32"
=== Started at 2024-03-06 12:15:22
*** User 2024-03-06 12:15:22.944 ***🔗
REST request:
Code: 201
Req: {<0.39956.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4509d5e338a7778c">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1340@localhost\",\"name\":\"wonderland-22.929074\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-22.929074">>},
{<<"date">>,<<"Wed, 06 Mar 2024 12:15:22 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-22.929074">>,215,2431}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1340@localhost\",\"name\":\"wonderland-22.929074\"}">>,
return_headers => true}
*** User 2024-03-06 12:15:22.947 ***🔗
REST request fails:
Code: 400
Req: {<0.39968.0>,<<"/api/mucs/localhost/wonderland-22.929074/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e9dd3ae3a0e8b496">>}],
<<"{\"recipient\":\"bOb_invite_errors_1340@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 06 Mar 2024 12:15:22 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,791}
Params: #{path => <<"/api/mucs/localhost/wonderland-22.929074/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1340@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-03-06 12:15:22.949 ***🔗
REST request fails:
Code: 400
Req: {<0.39975.0>,<<"/api/mucs/localhost/wonderland-22.929074/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"76c9cd289f5dabba">>}],
<<"{\"sender\":\"alicE_invite_errors_1340@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 06 Mar 2024 12:15:22 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,930}
Params: #{path => <<"/api/mucs/localhost/wonderland-22.929074/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"sender\":\"alicE_invite_errors_1340@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-03-06 12:15:22.951 ***🔗
REST request fails:
Code: 400
Req: {<0.39981.0>,<<"/api/mucs/localhost/wonderland-22.929074/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9f3fdf7f1fc927e3">>}],
<<"{\"recipient\":\"bOb_invite_errors_1340@localhost\",\"sender\":\"alicE_invite_errors_1340@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 06 Mar 2024 12:15:22 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,767}
Params: #{path => <<"/api/mucs/localhost/wonderland-22.929074/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1340@localhost\",\"sender\":\"alicE_invite_errors_1340@localhost\"}">>,
return_headers => true}
*** User 2024-03-06 12:15:22.953 ***🔗
REST request fails:
Code: 400
Req: {<0.39985.0>,<<"/api/mucs/localhost/wonderland-22.929074/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0d620c7044eff244">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_1340@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 06 Mar 2024 12:15:22 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,804}
Params: #{path => <<"/api/mucs/localhost/wonderland-22.929074/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_1340@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-03-06 12:15:22.955 ***🔗
REST request fails:
Code: 400
Req: {<0.39989.0>,<<"/api/mucs/localhost/wonderland-22.929074/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"146282eaa6d3740d">>}],
<<"{\"recipient\":\"bOb_invite_errors_1340@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 06 Mar 2024 12:15:22 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,777}
Params: #{path => <<"/api/mucs/localhost/wonderland-22.929074/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1340@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-03-06 12:15:22.957 ***🔗
REST request fails:
Code: 404
Req: {<0.39997.0>,<<"/api/mucs/baddomain/wonderland-22.929074/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"901569a9735961f1">>}],
<<"{\"recipient\":\"bOb_invite_errors_1340@localhost\",\"sender\":\"alicE_invite_errors_1340@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 06 Mar 2024 12:15:22 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,672}
Params: #{path => <<"/api/mucs/baddomain/wonderland-22.929074/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1340@localhost\",\"sender\":\"alicE_invite_errors_1340@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-03-06 12:15:22.959 ***🔗
REST request fails:
Code: 404
Req: {<0.40001.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0e2b991c37b8b66d">>}],
<<"{\"recipient\":\"bOb_invite_errors_1340@localhost\",\"sender\":\"alicE_invite_errors_1340@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 06 Mar 2024 12:15:22 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,747}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1340@localhost\",\"sender\":\"alicE_invite_errors_1340@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
=== Ended at 2024-03-06 12:15:22
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}