=== Test case: muc_http_api_SUITE:message_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.72246.0>},
{preset,"odbc_mssql_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@fb43d4252d17.2024-02-22_12.37.44/big_tests.tests.muc_http_api_SUITE.logs/run.2024-02-22_12.53.10/muc_http_api_suite.message_errors.206082.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@fb43d4252d17.2024-02-22_12.37.44/big_tests.tests.muc_http_api_SUITE.logs/run.2024-02-22_12.53.10/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@fb43d4252d17.2024-02-22_12.37.44"
=== Started at 2024-02-22 12:53:16
*** User 2024-02-22 12:53:16.077 ***🔗
REST request:
Code: 201
Req: {<0.72287.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"44fbf73c12eb654e">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_message_errors_2862@localhost\",\"name\":\"wonderland-96.67201\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-96.67201">>},
{<<"date">>,<<"Thu, 22 Feb 2024 12:53:15 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-96.67201">>,213,2806}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_message_errors_2862@localhost\",\"name\":\"wonderland-96.67201\"}">>,
return_headers => true}
*** User 2024-02-22 12:53:16.080 ***🔗
REST request:
Code: 204
Req: {<0.72301.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ae60d61d6f10b852">>}],
<<"{\"from\":\"alicE_message_errors_2862@localhost\",\"body\":\"Greetings!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 22 Feb 2024 12:53:15 GMT">>}],
<<>>,80,1410}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"from\":\"alicE_message_errors_2862@localhost\",\"body\":\"Greetings!\"}">>,
return_headers => true}
*** User 2024-02-22 12:53:16.082 ***🔗
REST request fails:
Code: 400
Req: {<0.72310.0>,<<"/api/mucs/localhost/wonderland-96.67201/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"af5522f6026f0821">>}],
<<"{\"from\":\"alicE_message_errors_2862@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 22 Feb 2024 12:53:15 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Missing message body\"">>,148,635}
Params: #{path => <<"/api/mucs/localhost/wonderland-96.67201/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body => <<"{\"from\":\"alicE_message_errors_2862@localhost\"}">>,
return_headers => true}
*** User 2024-02-22 12:53:16.084 ***🔗
REST request fails:
Code: 400
Req: {<0.72316.0>,<<"/api/mucs/localhost/wonderland-96.67201/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0f726d1cd9398648">>}],
<<"{\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 22 Feb 2024 12:53:15 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,614}
Params: #{path => <<"/api/mucs/localhost/wonderland-96.67201/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body => <<"{\"body\":\"Greetings!\"}">>,return_headers => true}
*** User 2024-02-22 12:53:16.086 ***🔗
REST request fails:
Code: 400
Req: {<0.72322.0>,<<"/api/mucs/localhost/wonderland-96.67201/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"69e6dc0d9f694084">>}],
<<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 22 Feb 2024 12:53:15 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,455}
Params: #{path => <<"/api/mucs/localhost/wonderland-96.67201/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body => <<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>,
return_headers => true}
=== Ended at 2024-02-22 12:53:16
=== successfully completed test case
=== === Returned value: {{<<"400">>,<<"Bad Request">>},<<"Invalid sender JID">>}