=== 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,
           ip_address => "0",
           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"]},
           proto => tcp,shaper => c2s_shaper,max_stanza_size => 65536,
           ip_tuple => {0,0,0,0},
           c2s_state_timeout => 5000,backwards_compatible_session => true,
           ip_version => 4,proxy_protocol => false,
           connection_type => undefined,max_connections => infinity,
           reuse_port => false}},
     {watchdog,<0.1486.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
          {start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
     {preset,"odbc_mssql_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@d44e762df881.2024-03-18_12.53.29/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-18_12.53.31/mim_c2s_suite.too_big_stanza_is_rejected.3.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@d44e762df881.2024-03-18_12.53.29/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-18_12.53.31/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,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,buffer_max => 100,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              ack_freq => 1,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,<<"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@d44e762df881.2024-03-18_12.53.29"

=== Started at 2024-03-18 12:53:31


*** CT 2024-03-18 12:53:31.370 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_22.html

*** User 2024-03-18 12:53:31.485 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-18 12:53:31.496 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8751417932925915' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-18 12:53:31.504 ***🔗
alicE_too_big_stanza_is_rejected_12@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-03-18 12:53:31.518 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzEyAG1hdHlncnlzYQ==</auth>



*** User 2024-03-18 12:53:31.520 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-18 12:53:31.520 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-18 12:53:31.520 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='25aff3f97d2bc4bf' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_12@localhost'>

*** User 2024-03-18 12:53:31.521 ***🔗
alicE_too_big_stanza_is_rejected_12@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-03-18 12:53:31.521 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost out
<iq type='set' id='75002b6f152db49444f231bbddde9de4'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-03-18 12:53:31.521 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<iq id='75002b6f152db49444f231bbddde9de4' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_12@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-03-18 12:53:31.530 ***🔗
alice_too_big_stanza_is_rejected_12@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_12@localhost/escalus-default-resource'>
	<body>252fb970e61d435d7d221f0821cfad19cc68f6410b2850d439697b4e7d3ad8b8b5258d139670da318677732163cade91a75fab96cb228b9e9e4a168a4929c0d4c9bb8248a1d18426c43868bd406272f896bf1eba01053ae23a8a8b477b8bf56312233f796598fd3364ee72db253650f16b4670dbf8efe93092a6c0097548b6a494fe85ab742151c3f0f8a9f07545638414593b832936758feac01c73e9a0809056343d8186122cffe600165aa01bc2040e618f9eb08120edb77882798aed10bc46fed9da06e69b5085c06f529df2c108a7db18363bf2e24b2456733776f1ec4b941eb87d5582e80f710edee05b47caf11ee16210e88005f9be5a8e2b5da0771e1728cdff670d1830814301211fdedfa9493bd40b0681b19fc3d7846e35674f2c0dba32626c73a01f49dff57919b1460c31e8e2883ecfb6f1671430c89c0c0cc87ee9b3cfcee669acaac7f8208698fcf10f2b1182fd15416135d5f8b334c6d2cd09d507242fa26106d00fa0f01cc92e52fce006bf58ebf4c722bbc34356893f7848037159e609a85aaf73818544544052f7309e1215241b9497fff4c303ff0580889feb71b6c32089b223fed66c30a57ab644b4327ceff8d5934a50912b63919e0a095af335f8e551c5856a77f10ba2ab6595f339d8191f476e90cef0bac568f9124530d805cb96d3457b172de60e8ba1590dbe9e8455d1b95ab6ab14756408e7fa11661d1287a870993a14c72b924aa888d3ea383c69113cdba23d429fe552fa8f1e3eee50ef4a1566d1a9cc2566d68b3067930da1869128fc56b40f12417efcc0ebc190ffc60eaa0a332e9481246b8d0af1bdbc4561b42ea1dbcf12405daf5507b2dcf70ff86edee68a103d9d570c03a14c081fa1f8c0390239789a9d8d8664fbfb048207f5681ecc644f1bb92f29283e32c23e9b7ae83815eb831dd44374f63548ddb48eee7e03abfde663240589f9e78aa84ce996a76bf3b629f99f69b45be13fe4ccfc3fa8f4774c55526ec312635ef16a35925044d60cd114607ee38664bc5ff2663cdbd8ed1d0217623b36b1ee339708e2596bf4ee0c5283ad60bca46053c1a58abd8f77f99a69e567d1d0273100c3ff433d601c6c8f5005e9e60b6f2b1ff46abe37525c73fc7508287c8ceb2012e0c6ab1f38f06138b6c62332bda21a836add5fcffd313942bb4dcb42c25796a04915f1e57c00fe065d0289d81c81ea94728d796b8de9bf02f2b32f9a0efc83f180c9844746809973c4f553d33e1afc2d252bb0445cc6fab412653c3c07a733de8789fee2b5220bb4390e968e2d70f10385c93b3b4b210bb077ca708bbfa2604968743499c96f154622d6c393932b53c93d2f7840ecb73f81307133af306b28c90831bc1a3195b99755a30d0cdc08e8d4700138f756f100b037814d2e297810afb2cb9333113aa570a237e361f37dd3</body>
</message>



*** User 2024-03-18 12:53:31.531 ***🔗
alice_too_big_stanza_is_rejected_12@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-03-18 12:53:31.531 ***🔗
alice_too_big_stanza_is_rejected_12@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-03-18 12:53:31.547 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_28.html



=== Ended at 2024-03-18 12:53:31
=== successfully completed test case
=== === Returned value: true