=== Test case: muc_http_api_SUITE:message_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.67531.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@76f252b4c6ae.2024-03-11_08.50.44/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-11_09.04.10/muc_http_api_suite.message_errors.147715.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@76f252b4c6ae.2024-03-11_08.50.44/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-11_09.04.10/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@76f252b4c6ae.2024-03-11_08.50.44"
=== Started at 2024-03-11 09:04:15
*** User 2024-03-11 09:04:15.454 ***🔗
REST request:
Code: 201
Req: {<0.67574.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eb2ef512c9003d6f">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_message_errors_2795@domain.example.com\",\"name\":\"wonderland-55.442579\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-55.442579">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:04:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-55.442579">>,224,2654}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_message_errors_2795@domain.example.com\",\"name\":\"wonderland-55.442579\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-03-11 09:04:15.457 ***🔗
REST request:
Code: 204
Req: {<0.67588.0>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"86d56b603fd80a08">>}],
<<"{\"from\":\"alicE_message_errors_2795@domain.example.com\",\"body\":\"Greetings!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:04:14 GMT">>}],
<<>>,80,1733}
Params: #{path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"from\":\"alicE_message_errors_2795@domain.example.com\",\"body\":\"Greetings!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-03-11 09:04:15.459 ***🔗
REST request fails:
Code: 400
Req: {<0.67595.0>,
<<"/api/mucs/domain.example.com/wonderland-55.442579/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d6ba612e7ae49651">>}],
<<"{\"from\":\"alicE_message_errors_2795@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:04:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Missing message body\"">>,148,529}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-55.442579/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"from\":\"alicE_message_errors_2795@domain.example.com\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-03-11 09:04:15.461 ***🔗
REST request fails:
Code: 400
Req: {<0.67601.0>,
<<"/api/mucs/domain.example.com/wonderland-55.442579/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f2af63506e57a7f1">>}],
<<"{\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:04:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,726}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-55.442579/messages">>,
server => #{node => mongooseim@localhost},
body => <<"{\"body\":\"Greetings!\"}">>,role => admin,
method => <<"POST">>,return_headers => true}
*** User 2024-03-11 09:04:15.463 ***🔗
REST request fails:
Code: 400
Req: {<0.67607.0>,
<<"/api/mucs/domain.example.com/wonderland-55.442579/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5d23a3bceab1d126">>}],
<<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:04:14 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,669}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-55.442579/messages">>,
server => #{node => mongooseim@localhost},
body => <<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
=== Ended at 2024-03-11 09:04:15
=== successfully completed test case
=== === Returned value: {{<<"400">>,<<"Bad Request">>},<<"Invalid sender JID">>}