=== Test case: rest_SUITE:stanza_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.75003.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@983bb6b138f0.2024-04-26_13.09.46/big_tests.tests.rest_SUITE.logs/run.2024-04-26_13.22.30/rest_suite.stanza_errors.147715.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@983bb6b138f0.2024-04-26_13.09.46/big_tests.tests.rest_SUITE.logs/run.2024-04-26_13.22.30/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_sic => #{iqdisc => one_queue},
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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
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@983bb6b138f0.2024-04-26_13.09.46"
=== Started at 2024-04-26 13:22:30
*** User 2024-04-26 13:22:30.698 ***🔗
REST request fails:
Code: 400
Req: {<0.75235.0>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fa048e74c4152de3">>}],
<<"{\"stanza\":\"the bodyinside the sibling\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,1839}
Params: #{path => <<"/api/stanzas">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"stanza\":\"the bodyinside the sibling\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:22:30.702 ***🔗
REST request fails:
Code: 400
Req: {<0.75249.0>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a15eb3fa86bc7fb2">>}],
<<"{\"stanza\":\"the bodyinside the sibling\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,2582}
Params: #{path => <<"/api/stanzas">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"stanza\":\"the bodyinside the sibling\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:22:30.705 ***🔗
REST request fails:
Code: 400
Req: {<0.75268.0>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ee58c8420c7165fc">>}],
<<"{\"stanza\":\"the bodyinside the sibling\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,1107}
Params: #{path => <<"/api/stanzas">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"stanza\":\"the bodyinside the sibling\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:22:30.707 ***🔗
REST request fails:
Code: 400
Req: {<0.75277.0>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ca381520df329bb1">>}],
<<"{\"stanza\":\"the bodyinside the sibling\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,924}
Params: #{path => <<"/api/stanzas">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"stanza\":\"the bodyinside the sibling\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:22:30.710 ***🔗
REST request fails:
Code: 400
Req: {<0.75286.0>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1dd015873798100c">>}],
<<"{\"stanza\":\"the bodyinside the sibling\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"30">>}],
<<"\"User's domain does not exist\"">>,156,716}
Params: #{path => <<"/api/stanzas">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"stanza\":\"the bodyinside the sibling\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:22:30.713 ***🔗
REST request fails:
Code: 400
Req: {<0.75296.0>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"074a40404be36f86">>}],
<<"{\"stanza\":\"the bodyinside the sibling\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"21">>}],
<<"\"User does not exist\"">>,147,1245}
Params: #{path => <<"/api/stanzas">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"stanza\":\"the bodyinside the sibling\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:22:30.718 ***🔗
REST request fails:
Code: 400
Req: {<0.75304.0>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"379791987c9f990f">>}],
<<"{\"stanza\":\"the bodyinside the sibling>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"18">>}],
<<"\"Malformed stanza\"">>,144,2981}
Params: #{path => <<"/api/stanzas">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"stanza\":\"the bodyinside the sibling>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:22:30.778 ***🔗
REST request fails:
Code: 400
Req: {<0.75309.0>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c99c5da3bf43f545">>}],
<<"{}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Missing stanza\"">>,142,913}
Params: #{path => <<"/api/stanzas">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{}">>,method => <<"POST">>,
return_headers => true}
=== Ended at 2024-04-26 13:22:30
=== successfully completed test case
=== === Returned value: {{<<"400">>,<<"Bad Request">>},<<"Missing stanza">>}