=== Test case: muc_http_api_SUITE:message_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.7370.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@19371561ec7c.2024-04-15_16.44.55/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-15_16.54.26/muc_http_api_suite.message_errors.83970.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@19371561ec7c.2024-04-15_16.44.55/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-15_16.54.26/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@19371561ec7c.2024-04-15_16.44.55"
=== Started at 2024-04-15 16:54:32
*** User 2024-04-15 16:54:32.099 ***🔗
REST request:
Code: 201
Req: {<0.7407.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0f29488af1b847d3">>}],
<<"{\"owner\":\"alicE_message_errors_1344@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-72.69819\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-72.69819">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:54:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-72.69819">>,213,7113}
Params: #{body =>
<<"{\"owner\":\"alicE_message_errors_1344@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-72.69819\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-15 16:54:32.124 ***🔗
REST request:
Code: 204
Req: {<0.7415.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3013508e038fe7ca">>}],
<<"{\"from\":\"alicE_message_errors_1344@localhost\",\"body\":\"Greetings!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:54:31 GMT">>}],
<<>>,80,6128}
Params: #{body =>
<<"{\"from\":\"alicE_message_errors_1344@localhost\",\"body\":\"Greetings!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-15 16:54:32.144 ***🔗
REST request fails:
Code: 400
Req: {<0.7423.1>,<<"/api/mucs/localhost/wonderland-72.69819/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"421229e221ffd802">>}],
<<"{\"from\":\"alicE_message_errors_1344@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:54:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Missing message body\"">>,148,849}
Params: #{body => <<"{\"from\":\"alicE_message_errors_1344@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-72.69819/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-15 16:54:32.164 ***🔗
REST request fails:
Code: 400
Req: {<0.7430.1>,<<"/api/mucs/localhost/wonderland-72.69819/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c1ed8745c84732d1">>}],
<<"{\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:54:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,1103}
Params: #{body => <<"{\"body\":\"Greetings!\"}">>,method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-72.69819/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-15 16:54:32.173 ***🔗
REST request fails:
Code: 400
Req: {<0.7438.1>,<<"/api/mucs/localhost/wonderland-72.69819/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4374b451f7e7f561">>}],
<<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:54:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,2013}
Params: #{body => <<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-72.69819/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2024-04-15 16:54:32
=== successfully completed test case
=== === Returned value: {{<<"400">>,<<"Bad Request">>},<<"Invalid sender JID">>}