=== Test case: muc_http_api_SUITE:message_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.64402.0>},
{preset,"mysql_redis"},
{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@d3b7dd7159a8.2023-12-07_07.46.41/big_tests.tests.muc_http_api_SUITE.logs/run.2023-12-07_07.56.44/muc_http_api_suite.message_errors.53381.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@d3b7dd7159a8.2023-12-07_07.46.41/big_tests.tests.muc_http_api_SUITE.logs/run.2023-12-07_07.56.44/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@d3b7dd7159a8.2023-12-07_07.46.41"
=== Started at 2023-12-07 07:56:49
*** User 2023-12-07 07:56:50.004 ***🔗
REST request:
Code: 201
Req: {<0.64443.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"51bf83cd40c866fd">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_message_errors_2457@domain.example.com\",\"name\":\"wonderland-9.995869\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-9.995869">>},
{<<"date">>,<<"Thu, 07 Dec 2023 07:56:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-9.995869">>,222,2668}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_message_errors_2457@domain.example.com\",\"name\":\"wonderland-9.995869\"}">>,
return_headers => true}
*** User 2023-12-07 07:56:50.006 ***🔗
REST request:
Code: 204
Req: {<0.64455.0>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"260f41228f0605ac">>}],
<<"{\"body\":\"Greetings!\",\"from\":\"alicE_message_errors_2457@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Dec 2023 07:56:49 GMT">>}],
<<>>,80,913}
Params: #{path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/messages">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"body\":\"Greetings!\",\"from\":\"alicE_message_errors_2457@domain.example.com\"}">>,
return_headers => true}
*** User 2023-12-07 07:56:50.008 ***🔗
REST request fails:
Code: 400
Req: {<0.64465.0>,
<<"/api/mucs/domain.example.com/wonderland-9.995869/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"da591730717d49fa">>}],
<<"{\"from\":\"alicE_message_errors_2457@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Dec 2023 07:56:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Missing message body\"">>,148,633}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-9.995869/messages">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"from\":\"alicE_message_errors_2457@domain.example.com\"}">>,
return_headers => true}
*** User 2023-12-07 07:56:50.010 ***🔗
REST request fails:
Code: 400
Req: {<0.64472.0>,
<<"/api/mucs/domain.example.com/wonderland-9.995869/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b2f177ab4dc2b62a">>}],
<<"{\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Dec 2023 07:56:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,551}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-9.995869/messages">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body => <<"{\"body\":\"Greetings!\"}">>,return_headers => true}
*** User 2023-12-07 07:56:50.011 ***🔗
REST request fails:
Code: 400
Req: {<0.64476.0>,
<<"/api/mucs/domain.example.com/wonderland-9.995869/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"018cb07587214346">>}],
<<"{\"body\":\"Greetings!\",\"from\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Dec 2023 07:56:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,468}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-9.995869/messages">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body => <<"{\"body\":\"Greetings!\",\"from\":\"@invalid\"}">>,
return_headers => true}
=== Ended at 2023-12-07 07:56:50
=== successfully completed test case
=== === Returned value: {{<<"400">>,<<"Bad Request">>},<<"Invalid sender JID">>}