=== 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,
                 certfile => "priv/ssl/fake_server.pem",
                 dhfile => "priv/ssl/fake_dh_server.pem",
                 ciphers => "TLSv1.2:TLSv1.3",verify_mode => none,
                 protocol_options =>
                     ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
           shaper => c2s_shaper,ip_address => "0",
           connection_type => undefined,ip_version => 4,
           ip_tuple => {0,0,0,0},
           max_connections => infinity,reuse_port => false,
           proxy_protocol => false,proto => tcp,
           backwards_compatible_session => true,max_stanza_size => 65536,
           c2s_state_timeout => 5000}},
     {watchdog,<0.1518.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
          {start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
     {preset,"internal_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@c5ea015cc63a.2024-02-26_14.16.41/big_tests.tests.mim_c2s_SUITE.logs/run.2024-02-26_14.16.43/mim_c2s_suite.too_big_stanza_is_rejected.770.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@c5ea015cc63a.2024-02-26_14.16.41/big_tests.tests.mim_c2s_SUITE.logs/run.2024-02-26_14.16.43/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => mnesia},
        mod_roster =>
            #{iqdisc => one_queue,backend => mnesia,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_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              backend => mnesia,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@c5ea015cc63a.2024-02-26_14.16.41"

=== Started at 2024-02-26 14:16:43


*** CT 2024-02-26 14:16:43.316 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_21.html

*** User 2024-02-26 14:16:43.400 ***🔗
alicE_too_big_stanza_is_rejected_14@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-26 14:16:43.401 ***🔗
alicE_too_big_stanza_is_rejected_14@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='53eb6eb3a8e6a2b9' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-26 14:16:43.414 ***🔗
alicE_too_big_stanza_is_rejected_14@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-02-26 14:16:43.414 ***🔗
alicE_too_big_stanza_is_rejected_14@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzE0AG1hdHlncnlzYQ==</auth>



*** User 2024-02-26 14:16:43.415 ***🔗
alicE_too_big_stanza_is_rejected_14@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-26 14:16:43.415 ***🔗
alicE_too_big_stanza_is_rejected_14@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-26 14:16:43.415 ***🔗
alicE_too_big_stanza_is_rejected_14@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5319e6fe1065d73e' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_14@localhost'>

*** User 2024-02-26 14:16:43.416 ***🔗
alicE_too_big_stanza_is_rejected_14@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-02-26 14:16:43.416 ***🔗
alicE_too_big_stanza_is_rejected_14@localhost out
<iq type='set' id='819714a78296adedad8c636f6635419d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-02-26 14:16:43.416 ***🔗
alicE_too_big_stanza_is_rejected_14@localhost in
<iq id='819714a78296adedad8c636f6635419d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_14@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-02-26 14:16:43.431 ***🔗
alice_too_big_stanza_is_rejected_14@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_14@localhost/escalus-default-resource'>
	<body>9b07213b1946b8ef01bd9be40708df985d2b853c7be74d77697e860e87ea82c7377cabfd4f7318f8a16c5c81d40e7e83a4d7a47fd2f0103c7d1f39964efb5043593dcb1b62f7d94d629f1e55f71e81dcb6730239e2e5bdedc47e9e1184b458545e4133890e58819767401ad1230aafdd480192902086c30fed9b1f494119b962a3117c383c5b3edda294fcc9644bf383b38420512e1b8d6ffe5d11ddd5c9fd0ac0e06de3f052403dcdc06efd46b5f3d70ff12f58fc73e1f85433c2e8efe709837c2749b6e3dfd17be4016b6a744725bf988f33edd5f8e8025a3db9b3c3252907c4639d0268e1728a5dee68fbdd91e1ed13cb25b3e6058fe2d1e0159163dcbd53149c7be942c62d4103ddcb8002786d19651fa838532007bc8fce1ad3dcf26afaf4fb4d14aa76574b5c203acb393216f64c3699004e8e40472f24c45f91447fa344de1d8ce829f946e5d13be222efbc394f4598878d0b9b95bb465088c2aed07f7e5f206ffc07534f1597477aefae7e4b0d285d1543e2a0ade6d996d4e2e64c0eb350c49eb5ae75356008f3bb96e5b08b4d60b57853cf5ac2c3e889574821439d6f25a8008255538991fa164a2c5d2fcc4b8a82f9ca1b509f76ab2c4f2a4b468758bc8129459e12965dae3c180d81e23866a24670a2c360694cae37078368e4c4308d30991307e0648774da54699d101e0a1a9bc6d887b641deed2e57ab946928ba8c0814addec3f0b3f3a96d8c3847563476a5eee3b58df500556a24a47dd04e6e325c0c1245b662eb234b15915c62765fffc87d21eac47c5e79a25768c07c6a1ed56fbd0aadd0bbab184e6f5e942b27145d7ddbf1960a080870e7c23b55258e5a37c316a69ff82b683d7c781adab174cf9db93936fffc1504fbfc9019e4ea1cc4173471c245e5a0687f4603efcb7da67d2e830b3b14b984c0418e014b357d5bf61e08a90f88b5329a0ab21b4012600f150ebec710e2761070f533471bfdd5e3d9b6b19afefb52ca521b944cfc29880e57001e17f3a83678b4bc4c182834952517e6288caa3935e10f136b0241ab0e0a01cff11ed1915095466bd5040e0c30527c4fac76e877ea7660902f24dc029eebb01b4ad369a439a1c78b553f2d921824f1b98a60e91eb373de5456211ba56e3f72b7ad923f162d0a64214bb18cfcb0c1c5192bd07a4daf46bbee151f3cd212b07a57917388af3fb64de59362f83bd9dbabe52829cf830f4e1df4116bc4f5bde2d1daba99532694252f47e69455045d9320f77f6605c8d47ed21f8ab87d328ea26d68e9cd50f5eb9ea3b3a73948f6fbd14fa03a97014ee96ca8c3172cf44561c48570d8d352ce2f1197da5a2be021b36a69dcb6b5ddc7b70cb7e0e9bfdd2f504d8e410dc29c6c87631b081ae88c79c8a875e2f11c8554f9b734cfb6c362d4e1ac3bb842ea6ab47c9c7a4457d333eface9</body>
</message>



*** User 2024-02-26 14:16:43.432 ***🔗
alice_too_big_stanza_is_rejected_14@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-02-26 14:16:43.432 ***🔗
alice_too_big_stanza_is_rejected_14@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-02-26 14:16:43.434 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_27.html



=== Ended at 2024-02-26 14:16:43
=== successfully completed test case
=== === Returned value: true