=== Test case: muc_http_api_SUITE:message_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.67959.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@699c7e574a5d.2024-04-26_13.09.59/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_13.21.10/muc_http_api_suite.message_errors.124931.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@699c7e574a5d.2024-04-26_13.09.59/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_13.21.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@699c7e574a5d.2024-04-26_13.09.59"
=== Started at 2024-04-26 13:21:15
*** User 2024-04-26 13:21:15.667 ***🔗
REST request:
Code: 201
Req: {<0.67998.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"361621a04a877e2e">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_message_errors_2688@domain.example.com\",\"name\":\"wonderland-75.658313\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-75.658313">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:21:15 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-75.658313">>,224,2635}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_message_errors_2688@domain.example.com\",\"name\":\"wonderland-75.658313\"}">>,
return_headers => true}
*** User 2024-04-26 13:21:15.668 ***🔗
REST request:
Code: 204
Req: {<0.68012.0>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cf82e1dfec1b39d6">>}],
<<"{\"body\":\"Greetings!\",\"from\":\"alicE_message_errors_2688@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:21:15 GMT">>}],
<<>>,80,789}
Params: #{path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"body\":\"Greetings!\",\"from\":\"alicE_message_errors_2688@domain.example.com\"}">>,
return_headers => true}
*** User 2024-04-26 13:21:15.669 ***🔗
REST request fails:
Code: 400
Req: {<0.68018.0>,
<<"/api/mucs/domain.example.com/wonderland-75.658313/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"691aaec29b31d093">>}],
<<"{\"from\":\"alicE_message_errors_2688@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:21:15 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Missing message body\"">>,148,446}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-75.658313/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"from\":\"alicE_message_errors_2688@domain.example.com\"}">>,
return_headers => true}
*** User 2024-04-26 13:21:15.671 ***🔗
REST request fails:
Code: 400
Req: {<0.68026.0>,
<<"/api/mucs/domain.example.com/wonderland-75.658313/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"df11872e11bfe377">>}],
<<"{\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:21:15 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,604}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-75.658313/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body => <<"{\"body\":\"Greetings!\"}">>,return_headers => true}
*** User 2024-04-26 13:21:15.673 ***🔗
REST request fails:
Code: 400
Req: {<0.68033.0>,
<<"/api/mucs/domain.example.com/wonderland-75.658313/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6c2a39afc4a6ae13">>}],
<<"{\"body\":\"Greetings!\",\"from\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:21:15 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,405}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-75.658313/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body => <<"{\"body\":\"Greetings!\",\"from\":\"@invalid\"}">>,
return_headers => true}
=== Ended at 2024-04-26 13:21:15
=== successfully completed test case
=== === Returned value: {{<<"400">>,<<"Bad Request">>},<<"Invalid sender JID">>}