=== 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,proto => tcp,ip_address => "0",
           tls =>
               #{module => fast_tls,mode => starttls,
                 certfile => "priv/ssl/fake_server.pem",
                 ciphers => "TLSv1.2:TLSv1.3",verify_mode => none,
                 dhfile => "priv/ssl/fake_dh_server.pem",
                 protocol_options =>
                     ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
           ip_tuple => {0,0,0,0},
           ip_version => 4,connection_type => undefined,
           max_stanza_size => 65536,backwards_compatible_session => true,
           c2s_state_timeout => 5000,max_connections => infinity,
           reuse_port => false,proxy_protocol => false}},
     {watchdog,<0.1500.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
          {start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
     {preset,"pgsql_cets"},
     {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@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-18_10.56.20/mim_c2s_suite.too_big_stanza_is_rejected.131.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@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-18_10.56.20/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_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,backend => cets,
              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 => cets,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@2ed2b07c4324.2024-04-18_10.56.18"

=== Started at 2024-04-18 10:56:20


*** CT 2024-04-18 10:56:20.818 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_29.html

*** User 2024-04-18 10:56:20.895 ***🔗
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-18 10:56:20.896 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cc59df5848ee2f46' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-18 10:56:20.903 ***🔗
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-18 10:56:20.907 ***🔗
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-18 10:56:20.908 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-18 10:56:20.909 ***🔗
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-18 10:56:20.909 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='047a56afa61809da' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_13@localhost'>

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



*** User 2024-04-18 10:56:20.910 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<iq id='7dbee9c8cad7453e1d4ca5dacc42f137' 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-18 10:56:20.917 ***🔗
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>f6bd615c5cf7e612a7d5c77aee6889b3d891c343e45f2c71fb5e1ab8773a419f11aa1f564151d255725dee1baa1ce7e27c19eb30f6bf7ae0fa849c7186cf8f4217bb7da3f3967b1ae483e59f6875b3e95c074c088df7531848cf03a5abc2040359ddfeabc6cbdd5ccc9f9f7824b2f826a94d144f8f207ac44b467abcec3f54bc07b3060a4075cd89e84540ac1caf210283671e44538012fb4fc2d7e73fef210cde22d91b8dfed3c64562dc069143cbe490d36d1de0cd7fd451d3c5fe6ce1210e4c0529823657c46e3b347745f23134fcfb588651c8ab85acd25c3c6738d6c3e0621a32297d899392ebeb733560dd2fa57ea3ad450a00a1a33d4e8e2d32bed2d1d4ab3412995d15b73af4c4f80f1f08356ca8cbcc7ff8de6599957e6b578784bfa1b40239b8d0551b02a70e6b25bd343502c9e92286bc231634fad03b125adf31fed2423d04550d2bb95970e295071d7cbd2bf55d4a676c2b75b6a78850de739de73a34f3035307494060bf9d61e254abe441fc2e8c5c266f2e7f05e17421d82bd45f0cc6e41c20a52e1a08dd29f79b242d9da8d87e68464c4b29a5c9b7c45ea7d822ac82fc937e7a90eaf833b6fbc77f1e65f2c76e2c03fb5cd8087fe9a29d7c19e608fab436fb7b80bb373e79f44e639cf397c6738c5a1f249f694c09528248449633649deaff3d499502ab6d4eb2e6438a81b1fb3ce86c534f22d2bdd2d751fe32d6fb7f1d5522318bd13cd674356434ffe688e5cd35e727ad2c12bcbf0372afca9c91b3f998430fc629be2253d99f10c6554a34e0f0acf5184487be349851615ddb5dc7772c3f0f1ef3238b42ddbf288c7a53c617f4aae05101f87d86eb80dc5dac48c8d0dd29312b129e1b0ab95da68f07910f92072753cdc6a5ed638848202102deb5cbaad3179e26268c00a516ef1ed49646cefea32f34ea042f7decccbb174964f8a9df4fb8232c661e492bdee740a23828a28c1b1305e4ba2bc7d11b05a3eb789f39e59b42649bb52b677ece45113b9d1f442ff1e8e3859acff7b4dab9a51ecda5a3e7a7244124fc6d85140d67ad73fffb0a0a8ad9f7af6ecbd769a7c2a4023e9d9a8473326ae2a091845767e2c75c23fb1b8c7fa0912de7892ac9b56545846687347b41c441e2a44d02f6060591bd1ae450a23b12a8e934eba3b06e1280ec49c43346840a1d9b6ad66f307bfa5273ee467315588f7d3204b7e533a6896d3d298a684f06c39835d46a47086438341652e36a4d2938fbb629d68ddc0c159f0d0e7aa150a368f8b88c491c264d13b6e8d83bf2f111ebfc5f15c39269320803d2cf33cb7136db9cdfca516bdaaa0e0d9f101208bbe11c011584b8a57c794cec63a14c6568a42e336fb749b810c9104ede1718605c13da65434b9a348eac054b4aa93393b3bafb11cec2dadf4face830cf2babbd104bf2a910e21dafa8c1</body>
</message>



*** User 2024-04-18 10:56:20.917 ***🔗
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-18 10:56:20.917 ***🔗
alice_too_big_stanza_is_rejected_13@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-04-18 10:56:20.932 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_35.html



=== Ended at 2024-04-18 10:56:20
=== successfully completed test case
=== === Returned value: true