=== Test case: muc_http_api_SUITE:message_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.7194.1>},
{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@f79facad4ed7.2024-01-15_11.58.37/big_tests.tests.muc_http_api_SUITE.logs/run.2024-01-15_12.07.57/muc_http_api_suite.message_errors.13829.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@f79facad4ed7.2024-01-15_11.58.37/big_tests.tests.muc_http_api_SUITE.logs/run.2024-01-15_12.07.57/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@f79facad4ed7.2024-01-15_11.58.37"
=== Started at 2024-01-15 12:08:03
*** User 2024-01-15 12:08:03.090 ***🔗
REST request:
Code: 201
Req: {<0.7235.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"91764facd104c40d">>}],
<<"{\"owner\":\"alicE_message_errors_1337@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-83.83005\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-83.83005">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-83.83005">>,213,1568}
Params: #{body =>
<<"{\"owner\":\"alicE_message_errors_1337@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-83.83005\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:08:03.092 ***🔗
REST request:
Code: 204
Req: {<0.7243.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9fb34b15521ccd56">>}],
<<"{\"from\":\"alicE_message_errors_1337@localhost\",\"body\":\"Greetings!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>}],
<<>>,80,561}
Params: #{body =>
<<"{\"from\":\"alicE_message_errors_1337@localhost\",\"body\":\"Greetings!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:08:03.093 ***🔗
REST request fails:
Code: 400
Req: {<0.7251.1>,<<"/api/mucs/localhost/wonderland-83.83005/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4a03c5def6fa3ca4">>}],
<<"{\"from\":\"alicE_message_errors_1337@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Missing message body\"">>,148,456}
Params: #{body => <<"{\"from\":\"alicE_message_errors_1337@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-83.83005/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:08:03.095 ***🔗
REST request fails:
Code: 400
Req: {<0.7258.1>,<<"/api/mucs/localhost/wonderland-83.83005/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eb0446e2f5f48a9b">>}],
<<"{\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,683}
Params: #{body => <<"{\"body\":\"Greetings!\"}">>,method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-83.83005/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:08:03.097 ***🔗
REST request fails:
Code: 400
Req: {<0.7264.1>,<<"/api/mucs/localhost/wonderland-83.83005/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"860f0f28352401a8">>}],
<<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:08:02 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,564}
Params: #{body => <<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-83.83005/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2024-01-15 12:08:03
=== successfully completed test case
=== === Returned value: {{<<"400">>,<<"Bad Request">>},<<"Invalid sender JID">>}