=== 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",
                 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"]},
           shaper => c2s_shaper,ip_address => "0",
           ip_tuple => {0,0,0,0},
           ip_version => 4,proto => tcp,proxy_protocol => false,
           max_stanza_size => 65536,backwards_compatible_session => true,
           c2s_state_timeout => 5000,connection_type => undefined,
           max_connections => infinity,reuse_port => false}},
     {watchdog,<0.1488.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@263f7cbb53ed.2024-04-25_14.57.19/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-25_14.57.21/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@263f7cbb53ed.2024-04-25_14.57.19/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-25_14.57.21/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,users_can_see_hidden_services => false,
              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_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@263f7cbb53ed.2024-04-25_14.57.19"

=== Started at 2024-04-25 14:57:21


*** CT 2024-04-25 14:57:21.312 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_22.html

*** User 2024-04-25 14:57:21.450 ***🔗
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-25 14:57:21.450 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cdeab34de31009db' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 14:57:21.470 ***🔗
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-25 14:57:21.480 ***🔗
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-25 14:57:21.482 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 14:57:21.482 ***🔗
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-25 14:57:21.483 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='59b76956e8158b9b' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_13@localhost'>

*** User 2024-04-25 14:57:21.483 ***🔗
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-25 14:57:21.483 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost out
<iq type='set' id='c9d53305f327063f8943389be5506ebe'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-25 14:57:21.483 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<iq id='c9d53305f327063f8943389be5506ebe' 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-25 14:57:21.498 ***🔗
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>edf76a366537f16fde693fd6e43caa4c3a02035e83606e59bbeb07046d2b61db4a6a5560e8dfe84dfc7078a1598e24fe1d56facf082d9eb57f918694b42f4fba47bd186f9d6e242897143d53abdefc164b4d461fa62c3358722bbc5b2c732f00dddb0a6800ff67fa0e339dd9d1863af27b1c81f6fddde053c4d3489d6076e5316399fbc7d639176a9ba1dbd7f6d273395435cb30a288dce085ea8a40a841f7d4c49d42f9a545143951800426a3e6f462196c269c7d90d099af4984b43e8e9bd4aa5a13163592d38d208d76696e6f823ff89db1a348c54798fd17775a9a274d1564bd276b4657ecccc52b898d518af0b3d019ca99600ce7e3b8f1aa6bb62723f7f4c5cc5c15963a1a86bfdc10d8d7c54518c0e326aa3726f8e01bde240ac43013c7d256b0f19dbb0fe292b689cdb86c0e35272045f983a759203f44f18b4c66917860c02ca810a97076af30a120462c7436762b652867eb2596232d224517676c2ab5a2e97a30da8f20c11a36c6d0e5b1929def6efad08d4eabd15349ab54d8d695f8d6bff06a23604a8acdeb801c203022ad18272ab8ebff5b448229e2f388fb6f4d5223296ee0f45cc78914e708d598eda30372fd05e5a44afa306bb069655637f45ccaaace1c836f82d670601064eeedca09925ed533a1619fb2f711afb44646c710e95640d18f4d65ec479aecd57f8b5af0a3e6703bcbc0e0827b6c4725adeb8c19ef1d9b8970be4ecd2daf1d4902f8c944036e7a8197b7c71e14f3dfab8f6d31db48b2be5a089f29daccdf5f86054fc4e9cfd8a2c5f4d4ce19115ee6326eeb9b0eb98488d7615aa203f238172986491bd3dfac810e58f524ee79c84f3b8a1d64ab60efed99206beb5ea893f1a7302ce6a2032cc6d6d6d1bfae387b77e732ea34bbd2d56af72ac137c1c9108309d81ee7118e9baf0538851072bffbd196ec1b4ea32cf1a2be48c9daa8c3f9a7ac5324adbf6b9c8634ec9e0345dcc88faa50cd1ee6d29062bcc4d116462cf2f67ff9bd259f51de5f2378fd2e9e796ac43a829dc524e888df5dda5dfd86e4bb1c7f9926969a396e6f59a8687f04edc93e0f9453ae473276afa0837dff17c71315f6f687068aec6b9cacafa83bdf8c3d240903cbe8ca7209ee76766dc41143142f1754a23ba2cd3a1b0282400d9653a0f0e8a3e2e270794edf4592f86d3329dabf3c22149f766d1e9c96ba47e1d9a47401ca233c6e583e54e192882124ea3862723888095a1069c17f1c654899e350041229ad64e51e2f664a7ef88adf6bdeb3b711c039b765be78fe396282b66de23b27a4d7a26fd32ab9628be5d274e6f5ba122affbf87286bb31a4e668f1968ad4ebafb812ae0375d3f000eee07395312ff26e03fcf150ed74f0a27a2d8a45b98a4349f8867787b68f95d618c23779ec0e3684ea11dead3d59c06febd3ba248885f0a2f13</body>
</message>



*** User 2024-04-25 14:57:21.498 ***🔗
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-25 14:57:21.498 ***🔗
alice_too_big_stanza_is_rejected_13@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-04-25 14:57:21.500 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_28.html



=== Ended at 2024-04-25 14:57:21
=== successfully completed test case
=== === Returned value: true