=== Test case: muc_http_api_SUITE:message_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.40105.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@6ebac22519b0.2024-02-23_08.34.56/big_tests.tests.muc_http_api_SUITE.logs/run.2024-02-23_08.44.47/muc_http_api_suite.message_errors.54275.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@6ebac22519b0.2024-02-23_08.34.56/big_tests.tests.muc_http_api_SUITE.logs/run.2024-02-23_08.44.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@6ebac22519b0.2024-02-23_08.34.56"
=== Started at 2024-02-23 08:44:52
*** User 2024-02-23 08:44:52.486 ***🔗
REST request:
Code: 201
Req: {<0.40146.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"262fcb4c9a198323">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_message_errors_1375@localhost\",\"name\":\"wonderland-92.480719\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-92.480719">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-92.480719">>,215,1513}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_message_errors_1375@localhost\",\"name\":\"wonderland-92.480719\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-02-23 08:44:52.488 ***🔗
REST request:
Code: 204
Req: {<0.40154.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"028cc4a4c38d7e82">>}],
<<"{\"body\":\"Greetings!\",\"from\":\"alicE_message_errors_1375@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>}],
<<>>,80,451}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"Greetings!\",\"from\":\"alicE_message_errors_1375@localhost\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-02-23 08:44:52.489 ***🔗
REST request fails:
Code: 400
Req: {<0.40162.0>,<<"/api/mucs/localhost/wonderland-92.480719/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ab596b3ee35bf335">>}],
<<"{\"from\":\"alicE_message_errors_1375@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Missing message body\"">>,148,464}
Params: #{path => <<"/api/mucs/localhost/wonderland-92.480719/messages">>,
server => #{node => mongooseim@localhost},
body => <<"{\"from\":\"alicE_message_errors_1375@localhost\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-02-23 08:44:52.491 ***🔗
REST request fails:
Code: 400
Req: {<0.40169.0>,<<"/api/mucs/localhost/wonderland-92.480719/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2f08f31c6e7e71e7">>}],
<<"{\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,535}
Params: #{path => <<"/api/mucs/localhost/wonderland-92.480719/messages">>,
server => #{node => mongooseim@localhost},
body => <<"{\"body\":\"Greetings!\"}">>,method => <<"POST">>,
role => admin,return_headers => true}
*** User 2024-02-23 08:44:52.492 ***🔗
REST request fails:
Code: 400
Req: {<0.40175.0>,<<"/api/mucs/localhost/wonderland-92.480719/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"37e3af340b5cedd2">>}],
<<"{\"body\":\"Greetings!\",\"from\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,665}
Params: #{path => <<"/api/mucs/localhost/wonderland-92.480719/messages">>,
server => #{node => mongooseim@localhost},
body => <<"{\"body\":\"Greetings!\",\"from\":\"@invalid\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
=== Ended at 2024-02-23 08:44:52
=== successfully completed test case
=== === Returned value: {{<<"400">>,<<"Bad Request">>},<<"Invalid sender JID">>}