=== Test case: muc_http_api_SUITE:message_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.9782.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@230e13636cf2.2024-04-23_06.26.02/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_06.39.40/muc_http_api_suite.message_errors.154115.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@230e13636cf2.2024-04-23_06.26.02/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_06.39.40/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@230e13636cf2.2024-04-23_06.26.02"
=== Started at 2024-04-23 06:39:46
*** User 2024-04-23 06:39:46.067 ***🔗
REST request:
Code: 201
Req: {<0.9821.2>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1f4b825ba0ee8401">>}],
<<"{\"owner\":\"alicE_message_errors_2975@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-86.54242\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-86.54242">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:39:45 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-86.54242">>,213,3145}
Params: #{body =>
<<"{\"owner\":\"alicE_message_errors_2975@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-86.54242\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-23 06:39:46.070 ***🔗
REST request:
Code: 204
Req: {<0.9833.2>,<<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bdf93c9fe3d7550e">>}],
<<"{\"from\":\"alicE_message_errors_2975@localhost\",\"body\":\"Greetings!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:39:45 GMT">>}],
<<>>,80,1182}
Params: #{body =>
<<"{\"from\":\"alicE_message_errors_2975@localhost\",\"body\":\"Greetings!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-23 06:39:46.074 ***🔗
REST request fails:
Code: 400
Req: {<0.9839.2>,<<"/api/mucs/localhost/wonderland-86.54242/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0dca57ecf86530bc">>}],
<<"{\"from\":\"alicE_message_errors_2975@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:39:45 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Missing message body\"">>,148,1078}
Params: #{body => <<"{\"from\":\"alicE_message_errors_2975@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-86.54242/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-23 06:39:46.079 ***🔗
REST request fails:
Code: 400
Req: {<0.9847.2>,<<"/api/mucs/localhost/wonderland-86.54242/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5b2969e55063c991">>}],
<<"{\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:39:45 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,2495}
Params: #{body => <<"{\"body\":\"Greetings!\"}">>,method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-86.54242/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-23 06:39:46.083 ***🔗
REST request fails:
Code: 400
Req: {<0.9855.2>,<<"/api/mucs/localhost/wonderland-86.54242/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"525af73ca36ec82d">>}],
<<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:39:45 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,782}
Params: #{body => <<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-86.54242/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2024-04-23 06:39:46
=== successfully completed test case
=== === Returned value: {{<<"400">>,<<"Bad Request">>},<<"Invalid sender JID">>}