=== 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"]},
           ip_address => "0",ip_version => 4,
           ip_tuple => {0,0,0,0},
           proto => tcp,backwards_compatible_session => true,
           shaper => c2s_shaper,max_connections => infinity,
           reuse_port => false,proxy_protocol => false,
           connection_type => undefined,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@9d1ddff7d112.2024-04-16_10.55.26/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-16_10.55.28/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@9d1ddff7d112.2024-04-16_10.55.26/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-16_10.55.28/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => mnesia,iqdisc => parallel},
        mod_roster =>
            #{backend => mnesia,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        mod_amp => #{},
        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_presence => #{},
        mod_disco =>
            #{users_can_see_hidden_services => false,iqdisc => one_queue,
              server_info => [],extra_domains => []},
        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@9d1ddff7d112.2024-04-16_10.55.26"

=== Started at 2024-04-16 10:55:28


*** CT 2024-04-16 10:55:28.800 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_21.html

*** User 2024-04-16 10:55:28.862 ***🔗
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-16 10:55:28.873 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ee871e88684cf5b5' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 10:55:28.878 ***🔗
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-16 10:55:28.885 ***🔗
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-16 10:55:28.885 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 10:55:28.885 ***🔗
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-16 10:55:28.886 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2006d9a800dd00c6' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_13@localhost'>

*** User 2024-04-16 10:55:28.886 ***🔗
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-16 10:55:28.886 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost out
<iq type='set' id='ac5ba1ade7b7a1e771ba307d63814a78'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-16 10:55:28.886 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<iq id='ac5ba1ade7b7a1e771ba307d63814a78' 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-16 10:55:28.891 ***🔗
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>7b00032c55daa4a25d3d7ca0c24bb87f278fa3a65153d07a003274b45d419aeb792115c139866687e40ef29e27d6c84f8a2da29901bf348c3ab87088b7269f07fd60ac76a9e055fcfa502715c0f0cc0acb20946425e4392cbc1919c703d7874bcf5ec573f98e8dc85a8538802ddae0e4ed1984a0093dba6387145eaec0137100bba29dc835a661f2919cca47d948b8592e04929f2dcc79753e01adaeb6c305474263d989c9b98f9fd469a82125bd3254f3fd0f7a07a038574e06392a48760a6c9f32d2355c11310affc5f13a1fe92f4bdbce9773898c7c344ca866ea00ce79d5d0a588a83b9a9d9b25626b7775c8bb3859608342474b9eae62323bd9fc465daed150c55678a0896d3a5e535aa01693c6e8c717692b7aec4eb543bc41b0efa6bd770e688c18f79aa8977f08421f7685a74c2289b42e4f6b0d77e1e12ec86506f6cbbe00dedf4c0f0c78b8524b7d80508286ac5ffaa9e616f67138e72ef53e34d4728b144db298811f816e081cd5035e9ffd3aaf65d35dbb9555319dec2f47a3ab83e367a45db5b13550de41ea60b583ef422718f07afa6433a1842f1e70dce01c1761ca53aa1e8f90fe7c21db08a47bcc1e23ee04c7965cf158e8f5bd88a94dbfe5c572bda8ef8eb7a36d3e6b49112d4cfb9ede73b299430ff68ff05140f688b12ca73ec8e8d3c5df32f88464bf906e75385684eeeb2c7af5feb50ca594597af9f30c2c295f7e4a637685ba6ce866bcd978eb5eca50e1f3af0d4701c744106440624781ea52e46a037f1f995e552f2bdf6b763a59af92874baf454aee03006811d71c6e2e3d6d3db79dee698935c75cca7c82befbe9b4931fcafc3ea3396bcf08fdecee23305cea9271ec4f8eec27795a19180bb56b8b002e4dd16b0d4383226b4a3a200643e216465df5e58989323443edd1d651ce901da76a43b0686d9c1a0bea0d3a4c04ec31ab39a01afe5d14477dd9d3345653f375f05e8f7889c0bd1bfec8610850c46fdb76f75510e16493e56897f3cb1998aeffa2ae5592fb06d194a21f55c8c06897b5b848ab3f5cead161d9a1a68703400a31fb2e146e84c1ce58d4c0f709526ca6fac702ac7232e3bcbe8fc00120cbc15459ef1fb757519fb82eb388ca48f3a418c0797c17c2823fe49b73a248d76277e69a63bdb71d7f7f9d7ca0fef92bebad60f979081d68e039ba826d3aa3877e1598aad87390ea8c4d08f1c6e31e8da9cdcf3c4795d7978041e8fd032df7b6006e9cd7bb4234a7cbf8e0bf74edeb89054ab200bf0c6ea52aadbe492da018cd6d197c91def2f0947b4142d596be320cb4d6d32534ca0b68552d15be2d647d47e550c26108db3927d59d140513c44163b175113d881caecf36a8bdb87171869611af48ab10f1533224b3eb4980037d1d16de8f2f7c07e34476feabe74bf5ec62728df4e986a3970286ec5a684a</body>
</message>



*** User 2024-04-16 10:55:28.892 ***🔗
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-16 10:55:28.892 ***🔗
alice_too_big_stanza_is_rejected_13@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-04-16 10:55:28.898 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_27.html



=== Ended at 2024-04-16 10:55:28
=== successfully completed test case
=== === Returned value: true