=== Test case: muc_http_api_SUITE:message_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.8402.2>},
{preset,"pgsql_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@ce8571dc8546.2024-04-26_13.09.10/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_13.22.23/muc_http_api_suite.message_errors.154883.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@ce8571dc8546.2024-04-26_13.09.10/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_13.22.23/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@ce8571dc8546.2024-04-26_13.09.10"
=== Started at 2024-04-26 13:22:28
*** User 2024-04-26 13:22:28.890 ***🔗
REST request:
Code: 201
Req: {<0.8445.2>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b3fed668469d844a">>}],
<<"{\"owner\":\"alicE_message_errors_2915@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-48.881990\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-48.881990">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-48.881990">>,215,1824}
Params: #{body =>
<<"{\"owner\":\"alicE_message_errors_2915@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-48.881990\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:22:28.891 ***🔗
REST request:
Code: 204
Req: {<0.8455.2>,<<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ef1ab7ce00de5d1f">>}],
<<"{\"from\":\"alicE_message_errors_2915@localhost\",\"body\":\"Greetings!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:28 GMT">>}],
<<>>,80,797}
Params: #{body =>
<<"{\"from\":\"alicE_message_errors_2915@localhost\",\"body\":\"Greetings!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:22:28.893 ***🔗
REST request fails:
Code: 400
Req: {<0.8463.2>,<<"/api/mucs/localhost/wonderland-48.881990/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"aeeb26638dc9f0e2">>}],
<<"{\"from\":\"alicE_message_errors_2915@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Missing message body\"">>,148,666}
Params: #{body => <<"{\"from\":\"alicE_message_errors_2915@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-48.881990/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:22:28.895 ***🔗
REST request fails:
Code: 400
Req: {<0.8470.2>,<<"/api/mucs/localhost/wonderland-48.881990/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"90de8eca58ecda82">>}],
<<"{\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,633}
Params: #{body => <<"{\"body\":\"Greetings!\"}">>,method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-48.881990/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:22:28.897 ***🔗
REST request fails:
Code: 400
Req: {<0.8474.2>,<<"/api/mucs/localhost/wonderland-48.881990/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"aaf21b6d11625081">>}],
<<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,543}
Params: #{body => <<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-48.881990/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2024-04-26 13:22:28
=== successfully completed test case
=== === Returned value: {{<<"400">>,<<"Bad Request">>},<<"Invalid sender JID">>}