=== Test case: mim_c2s_SUITE:too_big_stanza_is_rejected/1 (click for source code)
=== Config value:
[{c2s_listener,
#{access => c2s,module => mongoose_c2s_listener,port => 5222,
num_acceptors => 100,hibernate_after => 0,backlog => 1024,
tls =>
#{module => fast_tls,mode => starttls,verify_mode => none,
ciphers => "TLSv1.2:TLSv1.3",
protocol_options =>
["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"],
certfile => "priv/ssl/fake_server.pem",
dhfile => "priv/ssl/fake_dh_server.pem"},
shaper => c2s_shaper,ip_address => "0",
connection_type => undefined,max_stanza_size => 65536,
ip_tuple => {0,0,0,0},
c2s_state_timeout => 5000,backwards_compatible_session => true,
proto => tcp,ip_version => 4,max_connections => infinity,
reuse_port => false,proxy_protocol => false}},
{watchdog,<0.1436.0>},
{escalus_overrides,
[{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
{start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
{preset,"pgsql_mnesia"},
{mim_data_dir,
"/home/circleci/project/big_tests/tests/mim_c2s_SUITE_data"},
{tc_logfile,
"/home/circleci/project/big_tests/ct_report/ct_run.test@3a13e6c63e00.2024-04-23_06.26.56/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-23_06.26.56/mim_c2s_suite.too_big_stanza_is_rejected.514.html"},
{tc_group_properties,[{name,basic},parallel]},
{tc_group_path,[]},
{data_dir,
"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/mim_c2s_SUITE_data/"},
{priv_dir,
"/home/circleci/project/big_tests/ct_report/ct_run.test@3a13e6c63e00.2024-04-23_06.26.56/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-23_06.26.56/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_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_sic => #{iqdisc => one_queue},
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,buffer_max => 100,backend => mnesia,
ack_freq => 1,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue}}},
{escalus_users,
[{alice,
[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>},
{connection_steps,
[start_stream,stream_features,maybe_use_ssl,authenticate,
bind]}]},
{alice_bis,
[{username,<<"alicE">>},
{server,<<"domain.example.org">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,
[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>},
{connection_steps,
[start_stream,stream_features,maybe_use_ssl,authenticate,
bind]}]},
{carol,
[{username,<<"carol">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"jinglebells">>},
{transport,escalus_bosh},
{path,<<"/http-bind">>},
{port,5280}]},
{geralt_s,
[{username,<<"geralt_s">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"witcher_s">>},
{transport,escalus_ws},
{ssl,true},
{port,5285},
{wspath,<<"/ws-xmpp">>},
{ssl_opts,[{verify,verify_none}]}]},
{carol_s,
[{username,<<"carol_s">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"jinglebells_s">>},
{transport,escalus_bosh},
{ssl,true},
{path,<<"/http-bind">>},
{port,5285},
{ssl_opts,[{verify,verify_none}]}]},
{kate,
[{username,<<"kate">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrowe;p">>}]},
{mike,
[{username,<<"mike">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"nicniema">>}]},
{geralt,
[{username,<<"geralt">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"witcher">>},
{transport,escalus_ws},
{port,5280},
{wspath,<<"/ws-xmpp">>}]},
{admin,
[{username,<<"admin">>},
{server,<<"localhost">>},
{password,<<"bruce_almighty">>}]},
{secure_joe,
[{username,<<"secure_joe">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"break_me">>},
{starttls,required}]},
{clusterguy,
[{username,<<"clusterguy">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"distributionftw">>},
{port,5232}]},
{clusterbuddy,
[{username,<<"clusterbuddy">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"wasssssssup">>},
{port,5232}]},
{alice3,
[{username,<<"alice">>},
{server,<<"example.com">>},
{host,<<"localhost">>},
{password,<<"makota2">>}]},
{bob3,
[{username,<<"bob">>},
{server,<<"example.org">>},
{host,<<"localhost">>},
{password,<<"makota3">>},
{port,5232}]},
{john,
[{username,<<"john">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"cosontuma">>}]},
{neustradamus,
[{username,<<"neustradamus">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"scramshaplus">>},
{starttls,required},
{tls_module,fast_tls}]},
{hacker,
[{username,<<"hacker">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"bringdowntheserver">>},
{port,5223}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@3a13e6c63e00.2024-04-23_06.26.56"
=== Started at 2024-04-23 06:26:57
*** User 2024-04-23 06:26:57.209 ***🔗
alicE_too_big_stanza_is_rejected_11@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-23 06:26:57.216 ***🔗
alicE_too_big_stanza_is_rejected_11@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2ff5eb25d2e1d7a8' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-23 06:26:57.223 ***🔗
alicE_too_big_stanza_is_rejected_11@domain.example.com in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-23 06:26:57.227 ***🔗
alicE_too_big_stanza_is_rejected_11@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzExAG1hdHlncnlzYQ==</auth>
*** User 2024-04-23 06:26:57.229 ***🔗
alicE_too_big_stanza_is_rejected_11@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 06:26:57.229 ***🔗
alicE_too_big_stanza_is_rejected_11@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-23 06:26:57.229 ***🔗
alicE_too_big_stanza_is_rejected_11@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0efbc73c04662f18' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_11@domain.example.com'>
*** User 2024-04-23 06:26:57.229 ***🔗
alicE_too_big_stanza_is_rejected_11@domain.example.com in
<stream:features>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-23 06:26:57.229 ***🔗
alicE_too_big_stanza_is_rejected_11@domain.example.com out
<iq type='set' id='9aed080dc8f727edb88ae34921b40dbb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-04-23 06:26:57.230 ***🔗
alicE_too_big_stanza_is_rejected_11@domain.example.com in
<iq id='9aed080dc8f727edb88ae34921b40dbb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_too_big_stanza_is_rejected_11@domain.example.com/escalus-default-resource</jid>
</bind>
</iq>
*** User 2024-04-23 06:26:57.247 ***🔗
alice_too_big_stanza_is_rejected_11@domain.example.com/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_11@domain.example.com/escalus-default-resource'>
<body>a0bcfc13c7f98b1cbd5b2d3fb2de9779419d32cee7b880b1e170b28edbf398234328f69249848d7ae06eb3550c547da71d3f4ecc11df60c5ee042ec60d154e270ee26cdafb3ee979e4eb45042ba0eaf3e8f8af908a3c45f6114fbaaac931cc84201f7277cafd3a16ac66bceedfe8e71b640e6d8954f19e0c2d928ee1c8571112f60ba741951e3c5fd090b6aa8eef7143c3e81e82c0a85f9de33cee1ef9188ca9fc87fa02cf7c3f1a042970563bd4b288cea895db4dc6166f35c1830bae42eb0d05046f794cc4c082115bc2d371acf7220d421e5b73dbebed7f39ce3b2e4e04b439067b63cd61b689b3444ea045c5d96e185517755d538bad21ba48656152a44c51678b779752d753752d7b554d5862f6f2b86758a749dcb209db9a2967caac9243d8180a4e19e665efbb2bcd4e8f167c744d93e6d4e1beb45b2a38da2bbd50cc09f21036d3c19c14322866f89750f5f41318093e4a0e2a14b124a166a1eeeedb128506818969d2bc7435b73c160c8c11ed48643f875b8c74ab125e53e83079f40401bfd511656f07b36f1030aa4c63c78457f266672645a2c1a0cf057eb06ad5eca27e93563019d9763d1413fc4591f33de74dd97892335d04cd8b27069ab463ea82579cbe29b268d1c7d0b37f6c999425bce87c923593f575c13eaccc91ad38af31c56cc84f4a78cc568abc7358f5e56f0087d69905be79ab121b3bb668fc7c44f1380d1093f644ac9eb4d27824ff6a438a1cf1ddfafe94159c72ead6844e290f1ea69ee345f49a37a9dad3518e93893224cb71d0240bb30fde1a6be478be085ca27c8cd35cd947c35fe17768c9c0b311fde684a53242672a4223e8b17e80dd7675ea41313fea0dcded5e58ddc7ceb948cca403dfc241281f210027baa5a4c7f4a87d4523c17d4a5d3ccf5a76cc320e759a62bdbd753d7ef27be2345272b46cad5f961eb9f7d58da95e70733447bd3351cc43267de4c2087c609a0155460a1dbea61d1fe71ed527ad0953880d759d7d313d80eb05113b86774fb2b6479423d3172db1e62c39902d8ea1f2e7bc1789bd4bdefc88768c282aec44f6f7abfc5428344732996c7da2759138e0008fcca69b21a5b3f55cd2e3367f094ad6e0c32967a9d36406d11b3e5b815016502039c5a5e6aee3e33726f82691023a1d7d54c550818ee6d474ba3e3d280825d3ac011c79ef341ae58b35797a6a8110c501aa2440c8acecc1042db31d691020b2799ade4e5585ee416392a2641a105c73e143cbf246c026fedfc7366d60f79238246987edefff7e04d0b1907e0f6d8fbc4809e41ab2dbc82148ff70055c50e003f3cb7c0b8c552be5b1b7b96ee26a3ea0d3d2334dd7a7a6606c7bc607a164ad164d9a7b3199a9879b56d555705b7e86956971a82e6fd36ec1ce844557dfafe840d92555422658b9093ed9ef5b6e0b8e6073218363</body>
</message>
*** User 2024-04-23 06:26:57.247 ***🔗
alice_too_big_stanza_is_rejected_11@domain.example.com/escalus-default-resource in
<stream:error>
<policy-violation xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>
<text xml:lang='en' xmlns='urn:ietf:params:xml:ns:xmpp-streams'>element too big</text>
</stream:error>
*** User 2024-04-23 06:26:57.247 ***🔗
alice_too_big_stanza_is_rejected_11@domain.example.com/escalus-default-resource in
</stream:stream>
=== Ended at 2024-04-23 06:26:57
=== successfully completed test case
=== === Returned value: true