=== Test case: muc_http_api_SUITE:message_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.4602.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@fca70da71937.2023-11-16_09.05.55/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-16_09.18.23/muc_http_api_suite.message_errors.145923.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@fca70da71937.2023-11-16_09.05.55/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-16_09.18.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@fca70da71937.2023-11-16_09.05.55"
=== Started at 2023-11-16 09:18:29
*** User 2023-11-16 09:18:29.405 ***🔗
REST request:
Code: 201
Req: {<0.4641.2>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2fbcce731c20f71d">>}],
<<"{\"owner\":\"alicE_message_errors_2722@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-9.384355\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-9.384355">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:18:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-9.384355">>,213,11078}
Params: #{body =>
<<"{\"owner\":\"alicE_message_errors_2722@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-9.384355\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:18:29.408 ***🔗
REST request:
Code: 204
Req: {<0.4653.2>,<<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3c1ab2c35591d197">>}],
<<"{\"from\":\"alicE_message_errors_2722@localhost\",\"body\":\"Greetings!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:18:28 GMT">>}],
<<>>,80,1389}
Params: #{body =>
<<"{\"from\":\"alicE_message_errors_2722@localhost\",\"body\":\"Greetings!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:18:29.412 ***🔗
REST request fails:
Code: 400
Req: {<0.4659.2>,<<"/api/mucs/localhost/wonderland-9.384355/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"43c6b6cacffaea7f">>}],
<<"{\"from\":\"alicE_message_errors_2722@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:18:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Missing message body\"">>,148,1727}
Params: #{body => <<"{\"from\":\"alicE_message_errors_2722@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-9.384355/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:18:29.414 ***🔗
REST request fails:
Code: 400
Req: {<0.4663.2>,<<"/api/mucs/localhost/wonderland-9.384355/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ee963ae04b304018">>}],
<<"{\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:18:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,981}
Params: #{body => <<"{\"body\":\"Greetings!\"}">>,method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-9.384355/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:18:29.417 ***🔗
REST request fails:
Code: 400
Req: {<0.4671.2>,<<"/api/mucs/localhost/wonderland-9.384355/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6efc9b3adca8772f">>}],
<<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:18:28 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,1214}
Params: #{body => <<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-9.384355/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2023-11-16 09:18:29
=== successfully completed test case
=== === Returned value: {{<<"400">>,<<"Bad Request">>},<<"Invalid sender JID">>}