=== Test case: rest_SUITE:stanza_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.71235.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"pgsql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@7465fd1d5a64.2023-11-23_14.13.58/big_tests.tests.rest_SUITE.logs/run.2023-11-23_14.27.16/rest_suite.stanza_errors.154115.html"},
{tc_group_properties,[{name,admin},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@7465fd1d5a64.2023-11-23_14.13.58/big_tests.tests.rest_SUITE.logs/run.2023-11-23_14.27.16/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_amp => #{},
mod_sic => #{iqdisc => one_queue},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_presence => #{},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@7465fd1d5a64.2023-11-23_14.13.58"
=== Started at 2023-11-23 14:27:16
*** User 2023-11-23 14:27:16.889 ***🔗
REST request fails:
Code: 400
Req: {<0.71469.0>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"92562c6b08e6e3d2">>}],
<<"{\"stanza\":\"the bodyinside the sibling\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 23 Nov 2023 14:27:16 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,1527}
Params: #{path => <<"/api/stanzas">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"stanza\":\"the bodyinside the sibling\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2023-11-23 14:27:16.903 ***🔗
REST request fails:
Code: 400
Req: {<0.71484.0>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c1431aa4b8f351f3">>}],
<<"{\"stanza\":\"the bodyinside the sibling\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 23 Nov 2023 14:27:16 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,4927}
Params: #{path => <<"/api/stanzas">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"stanza\":\"the bodyinside the sibling\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2023-11-23 14:27:16.906 ***🔗
REST request fails:
Code: 400
Req: {<0.71500.0>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ddc43b53f8efb425">>}],
<<"{\"stanza\":\"the bodyinside the sibling\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 23 Nov 2023 14:27:16 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,622}
Params: #{path => <<"/api/stanzas">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"stanza\":\"the bodyinside the sibling\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2023-11-23 14:27:16.908 ***🔗
REST request fails:
Code: 400
Req: {<0.71510.0>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"15ed13e7292d9038">>}],
<<"{\"stanza\":\"the bodyinside the sibling\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 23 Nov 2023 14:27:16 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,839}
Params: #{path => <<"/api/stanzas">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"stanza\":\"the bodyinside the sibling\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2023-11-23 14:27:16.910 ***🔗
REST request fails:
Code: 400
Req: {<0.71518.0>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7c51077c3ec64a4d">>}],
<<"{\"stanza\":\"the bodyinside the sibling\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 23 Nov 2023 14:27:16 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"30">>}],
<<"\"User's domain does not exist\"">>,156,753}
Params: #{path => <<"/api/stanzas">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"stanza\":\"the bodyinside the sibling\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2023-11-23 14:27:16.914 ***🔗
REST request fails:
Code: 400
Req: {<0.71523.0>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"744ab444e19dbbda">>}],
<<"{\"stanza\":\"the bodyinside the sibling\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 23 Nov 2023 14:27:16 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"21">>}],
<<"\"User does not exist\"">>,147,1784}
Params: #{path => <<"/api/stanzas">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"stanza\":\"the bodyinside the sibling\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2023-11-23 14:27:16.916 ***🔗
REST request fails:
Code: 400
Req: {<0.71537.0>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c417ad17ec989166">>}],
<<"{\"stanza\":\"the bodyinside the sibling>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 23 Nov 2023 14:27:16 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"18">>}],
<<"\"Malformed stanza\"">>,144,844}
Params: #{path => <<"/api/stanzas">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"stanza\":\"the bodyinside the sibling>,
method => <<"POST">>,return_headers => true}
*** User 2023-11-23 14:27:16.918 ***🔗
REST request fails:
Code: 400
Req: {<0.71546.0>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"81c3dae9db3d9ab6">>}],
<<"{}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 23 Nov 2023 14:27:16 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Missing stanza\"">>,142,601}
Params: #{path => <<"/api/stanzas">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{}">>,method => <<"POST">>,
return_headers => true}
=== Ended at 2023-11-23 14:27:16
=== successfully completed test case
=== === Returned value: {{<<"400">>,<<"Bad Request">>},<<"Missing stanza">>}