=== 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,
           shaper => c2s_shaper,ip_version => 4,
           ip_tuple => {0,0,0,0},
           max_connections => infinity,reuse_port => false,
           tls =>
               #{module => fast_tls,mode => starttls,
                 certfile => "priv/ssl/fake_server.pem",
                 ciphers => "TLSv1.2:TLSv1.3",
                 dhfile => "priv/ssl/fake_dh_server.pem",verify_mode => none,
                 protocol_options =>
                     ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
           ip_address => "0",proxy_protocol => false,proto => tcp,
           max_stanza_size => 65536,backwards_compatible_session => true,
           c2s_state_timeout => 5000,connection_type => undefined}},
     {watchdog,<0.1485.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
          {start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
     {preset,"mysql_redis"},
     {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@786a062e1fe3.2024-04-15_20.13.12/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-15_20.13.14/mim_c2s_suite.too_big_stanza_is_rejected.2.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@786a062e1fe3.2024-04-15_20.13.12/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-15_20.13.14/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{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_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        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,<<"localhost">>},
               {password,<<"matygrysa">>},
               {connection_steps,
                   [start_stream,stream_features,maybe_use_ssl,authenticate,
                    bind]}]},
          {alice_bis,
              [{username,<<"alicE">>},
               {server,<<"localhost.bis">>},
               {host,<<"localhost">>},
               {password,<<"matygrysa">>}]},
          {bob,
              [{username,<<"bOb">>},
               {server,<<"localhost">>},
               {password,<<"makrolika">>},
               {connection_steps,
                   [start_stream,stream_features,maybe_use_ssl,authenticate,
                    bind]}]},
          {carol,
              [{username,<<"carol">>},
               {server,<<"localhost">>},
               {password,<<"jinglebells">>},
               {transport,escalus_bosh},
               {path,<<"/http-bind">>},
               {port,5280}]},
          {carol_s,
              [{username,<<"carol_s">>},
               {server,<<"localhost">>},
               {password,<<"jinglebells_s">>},
               {transport,escalus_bosh},
               {ssl,true},
               {path,<<"/http-bind">>},
               {port,5285},
               {ssl_opts,[{verify,verify_none}]}]},
          {kate,
              [{username,<<"kate">>},
               {server,<<"localhost">>},
               {password,<<"makrowe;p">>}]},
          {mike,
              [{username,<<"mike">>},
               {server,<<"localhost">>},
               {password,<<"nicniema">>}]},
          {john,
              [{username,<<"john">>},
               {server,<<"localhost">>},
               {password,<<"cosontuma">>}]},
          {geralt,
              [{username,<<"geralt">>},
               {server,<<"localhost">>},
               {password,<<"witcher">>},
               {transport,escalus_ws},
               {port,5280},
               {wspath,<<"/ws-xmpp">>}]},
          {geralt_s,
              [{username,<<"geralt_s">>},
               {server,<<"localhost">>},
               {password,<<"witcher_s">>},
               {transport,escalus_ws},
               {ssl,true},
               {port,5285},
               {wspath,<<"/ws-xmpp">>},
               {ssl_opts,[{verify,verify_none}]}]},
          {hacker,
              [{username,<<"hacker">>},
               {server,<<"localhost">>},
               {password,<<"bringdowntheserver">>},
               {port,5223}]},
          {admin,
              [{username,<<"admin">>},
               {server,<<"localhost">>},
               {password,<<"bruce_almighty">>}]},
          {secure_joe,
              [{username,<<"secure_joe">>},
               {server,<<"localhost">>},
               {password,<<"break_me">>},
               {starttls,required}]},
          {astrid,
              [{username,<<"astrid">>},
               {server,<<"sogndal">>},
               {host,<<"localhost">>},
               {password,<<"doctor">>}]},
          {alice2,
              [{username,<<"alice">>},
               {server,<<"fed1">>},
               {host,<<"localhost">>},
               {port,5242},
               {password,<<"makota2">>}]},
          {bob2,
              [{username,<<"bob">>},
               {server,<<109,105,99,104,97,197,130>>},
               {host,<<"localhost">>},
               {port,5242},
               {password,<<"makota3">>}]},
          {clusterguy,
              [{username,<<"clusterguy">>},
               {server,<<"localhost">>},
               {host,<<"localhost">>},
               {password,<<"distributionftw">>},
               {port,5232}]},
          {clusterbuddy,
              [{username,<<"clusterbuddy">>},
               {server,<<"localhost">>},
               {host,<<"localhost">>},
               {password,<<"wasssssssup">>},
               {port,5232}]},
          {eve,
              [{username,<<"eve">>},
               {server,<<"localhost">>},
               {password,<<"password">>},
               {port,5252}]},
          {neustradamus,
              [{username,<<"neustradamus">>},
               {server,<<"localhost">>},
               {host,<<"localhost">>},
               {password,<<"scramshaplus">>},
               {starttls,required},
               {tls_module,fast_tls}]},
          {alice3,
              [{username,<<"alice">>},
               {server,<<"example.com">>},
               {host,<<"localhost">>},
               {password,<<"makota2">>}]},
          {bob3,
              [{username,<<"bob">>},
               {server,<<"example.org">>},
               {host,<<"localhost">>},
               {password,<<"makota3">>},
               {port,5232}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@786a062e1fe3.2024-04-15_20.13.12"

=== Started at 2024-04-15 20:13:14


*** CT 2024-04-15 20:13:14.283 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_21.html

*** User 2024-04-15 20:13:14.403 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-15 20:13:14.416 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c1f4ef6e27585c70' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-15 20:13:14.416 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost 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-15 20:13:14.430 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzEzAG1hdHlncnlzYQ==</auth>



*** User 2024-04-15 20:13:14.437 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-15 20:13:14.437 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-15 20:13:14.438 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7ae5711fec953ecc' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_13@localhost'>

*** User 2024-04-15 20:13:14.438 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost 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-15 20:13:14.438 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost out
<iq type='set' id='ad50a80edbbab6624382d3042b99b735'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-15 20:13:14.439 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<iq id='ad50a80edbbab6624382d3042b99b735' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_13@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-04-15 20:13:14.442 ***🔗
alice_too_big_stanza_is_rejected_13@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_13@localhost/escalus-default-resource'>
	<body>5d17103a1b1388c72c6e5c49a9c237257bb33bfc396246e8b8e2adebeb3e5c2588b04dabb08568223c3b8f6d2fb7b1107ffd6e89a9a22b1b87a018cba8e2efa5a7b7cce3fdb9052fa66ea24439646eb31208226daf985e771083b1a76d4a13c882b48ca792ece58dc4cfc123c67716f6d7679079725a47247989efc1487e44eb059438804dffb33ad0e8f6980d9d258be9952e9f01fced12333ccc3b9a104a57b7450a9ed021e63d459fb70b9fdb7e8124d1cb5963f30d868bee27cf0e7bba85061d990e0957b29bec61eb6eb4cf643a53cec636d879ef79a78a5ed1340edd9fa92951f78140be5032f562df6291f91c915134c90772e86237199e5e4a02a20ed34ac1737d54902c0bc15eeae2daa344063d7cb95a2e69b846a3b9b5f7b4a52098b4d9ca0dca560747c559c82aa87d6d37ef8f4d7b992fa8cbc5a7222304ff61751914d0853ad67a11dece4a0f1637bff9a7032f8a514ecc74a1f502315b51c209d5b37a2c77e2cad0e9b041635eb53367220cf3d3f638b50571c0683ed9952fd57de2836e185cea67cf98188fb5cc3c94d8046c2589d32efe425203b47786ed47a6e6ae020f6c69e962ee03168abeb9ec64147638426d5a539b9db38c5c90e6dfbec2b9704d1d19d4376ae3c9dc5f94d84ca0896213d8e0cbdfe8f8c37db875e105d9ec9923ce02040a010d2457ebb25d0a804072be8d20df1bc15c8d3fc07275429ba45119692026f56ea718c0f7ed0923576e1e9c077ed137d70c9efbe1b4391f09f7efef6a32c5d2af27277845605e4d2f2624c1c9a93c17d6f679f14389c700c0f3f2c1a93f85b2d5b7d349024256e4734172eb0ac1117cefbc2db4519b132368385e6a4a94c828fef5ac9f4e65b4a13b6d6326f8102c4d64872b7ab43e8ae8b42f54315d8b019a8689cc1d6d46c10ad3441c394fda26264c867b0eae1686344cec4a581127afc059692c1b108aa28457ac90f6fcf1dc408eab152920249b58fd2c087c365a05310f9e49189707f113462ea896d0fcdda2a96345a134e42145f46586d00b3f3f5d741ee6ebc5b31d0c70302f0509ea93e184019e209f5a4e78cfe731841579055eda7bd0f29c1491e6a00cf36962f2bef5f474b17f6fb935a00e822bd3fbebd395c7060c65e34e9d3681b3ea4a18df2b38cd2a6825a6292c28eeaf31ade74339eb5a978849f8db05f821923fd90a32fcf4b4046603e387ce594f9ad361c04a5f1899885f9717d0a2188afb4811f30e8e89949e51cf1421efc176f6cd29e22af374f3418c21b874883bfec4522d9ec3558aeb5a14b665a27c345593dd80543b083f475fbc51fe45c821d61483da54386988b24062b7936f8b701b3f9251ec9742e9220457ddc7b7d3380fae914fbc84c336e7f6187a767c0227453befb61a483a9a890c6a6ef10eb26d10611c0402496910517b7a5977b9</body>
</message>



*** User 2024-04-15 20:13:14.443 ***🔗
alice_too_big_stanza_is_rejected_13@localhost/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-15 20:13:14.443 ***🔗
alice_too_big_stanza_is_rejected_13@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-04-15 20:13:14.447 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_27.html



=== Ended at 2024-04-15 20:13:14
=== successfully completed test case
=== === Returned value: true