=== 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,
           tls =>
               #{module => fast_tls,mode => starttls,verify_mode => none,
                 ciphers => "TLSv1.2:TLSv1.3",
                 protocol_options =>
                     ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"],
                 certfile => "priv/ssl/fake_server.pem",
                 dhfile => "priv/ssl/fake_dh_server.pem"},
           ip_address => "0",connection_type => undefined,
           ip_tuple => {0,0,0,0},
           ip_version => 4,proto => tcp,max_stanza_size => 65536,
           c2s_state_timeout => 5000,backwards_compatible_session => true,
           max_connections => infinity,reuse_port => false,
           proxy_protocol => false}},
     {watchdog,<0.1504.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@48902645c190.2024-04-23_06.26.59/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-23_06.27.01/mim_c2s_suite.too_big_stanza_is_rejected.387.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@48902645c190.2024-04-23_06.26.59/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-23_06.27.01/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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => cets,buffer_max => 100,
              ack_freq => 1,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              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 => cets,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@48902645c190.2024-04-23_06.26.59"

=== Started at 2024-04-23 06:27:01


*** CT 2024-04-23 06:27:01.531 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_29.html

*** User 2024-04-23 06:27:01.621 ***🔗
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-04-23 06:27:01.621 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c66228750c2de123' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 06:27:01.631 ***🔗
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-04-23 06:27:01.635 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzEyAG1hdHlncnlzYQ==</auth>



*** User 2024-04-23 06:27:01.636 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 06:27:01.637 ***🔗
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-04-23 06:27:01.637 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7a3cef8390f963a5' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_12@localhost'>

*** User 2024-04-23 06:27:01.637 ***🔗
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-04-23 06:27:01.637 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost out
<iq type='set' id='09b3478a490df749f05f3d8f6f44b0cd'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-23 06:27:01.638 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<iq id='09b3478a490df749f05f3d8f6f44b0cd' 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-04-23 06:27:01.650 ***🔗
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>fe13b0a05fea6693faebbc476593596b934e1c6b373d81452728cbac33dfbd209391e2418fe5b69563fa9f5c5ab217655ef1f67de327c742f4cedaf854524d145680df8cb69b663c3dc0b109905a47ca3fdedbf9fe3848195e028a22af70bb1bc02ff952113dfaf2ed276589b00446c5851d9a7efffeef355f8c23f3c881424f87a0364fdb228d9794acd4e6ba5ddc574afc7223030ea3b4171e1669d19d79dd096d423de2c50193f46c37da7a18d5b9d3a99c14d1661d91aeb78fb769f9e6a2e4f4772e6e7da62e08fd078a5454a0ce5c16c24a4c3c48d1ad4055ec9d668c7c377de759eee985df209209bb6993115c00ff5bfe53782d8a37bdbd872356f2d5b1dfcd7298826f5db01a3ddfc0c493d601e288e5a7caea0ff1290309984bf30b55eb1eae9323308eef29ae11105ee0e3e32a44449e8ccf95f2ce3eb0cdbf0630fec22190365351af660091a9d60aedead113b2e3d933d55c76655e2c11c0d7c121d2f0130967671143b6e5c2e10d2169f6edbb0fcb95ac502e1bff2afbb70153c12b5e5ebd5bea1c071d50d75d3f8070f11183d8fe32f72b852648287f2ccf459a1768ff717342464b2800a59988108c765ff868c335617c2ef4bf1732bc37ddab7069f1e5773914b953f2a5d0d9a9d345896effc578c66558d0c63c8d44f8ee925d1c5059da073b432befbcf64a198f68348ab707364d5089e42cc85fbed7267a2bedefe6148e9d2c38426b6ebfec7bc12aa39c7092e8e5ce0a1b5764cb3f635c9daa5bfb607bec7444359426d87f61591c663302238a1996e45fbdcf33b14114981ca9ed20f1eedefea0bc1586e6f02cf79a901e2c4dfa3da57ce5766e3379f29161310a677f029b07b7261f12a7d8e99c977ebb638bbc94f44d45f67fd4530c6311f550d5bd41232520187366294d8c5f191c8495a348511fa586005c4a2143feb3c8edc31892f1ada8e70034d89c6ed9717378095f5fa9cdd812ce1ca722ec1abc95b1669a4aad425d4146e84f6c2bea77498dfd90cb68a597f8e1adf01565158779c6c98d51f2e3cb180c589412a13a77be8435df0a026a79069e9c1100c4d839aee3c738267f9e20e8a4b40325a8d0e9bab1f22e5dbfa1435a1d40f3c53ef2ca240f8b716b539bd38f754583e7bd7aea6b97fcfb6fdbadcfd549df148b2c460434cdff2f3243a040d437e684eb8c246333cd4da8a14a4ce1e450f8b5235d3db76a4460151d371ac97ec783d6944541c17e182166f12324b4556890f7062c1332d0f7aac698243a5bfa7e2de43f032e6f6bcc2af3a63aa6228dee7a588ae0a73048b826c3cc50d3f41355906ddaeb682dee6d4a9646f52be9fd5744d290e1180c78a14b4dc473507ee511ee54b74e8d415204678342655132f9da2b99a888a09714629881e45b3032c633b3f6493b0a10b2a2626a87a687c24d1672b58e</body>
</message>



*** User 2024-04-23 06:27:01.650 ***🔗
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-04-23 06:27:01.651 ***🔗
alice_too_big_stanza_is_rejected_12@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-04-23 06:27:01.652 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_35.html



=== Ended at 2024-04-23 06:27:01
=== successfully completed test case
=== === Returned value: true