=== 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_version => 4,
           ip_tuple => {0,0,0,0},
           max_connections => infinity,reuse_port => false,
           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,ip_address => "0",connection_type => undefined,
           max_stanza_size => 65536,shaper => c2s_shaper,
           backwards_compatible_session => true,c2s_state_timeout => 5000,
           proxy_protocol => false}},
     {watchdog,<0.1489.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@c63aed7f6ecc.2024-04-26_12.39.39/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-26_12.39.41/mim_c2s_suite.too_big_stanza_is_rejected.260.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@c63aed7f6ecc.2024-04-26_12.39.39/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-26_12.39.41/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 => 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@c63aed7f6ecc.2024-04-26_12.39.39"

=== Started at 2024-04-26 12:39:41


*** CT 2024-04-26 12:39:41.744 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_23.html

*** User 2024-04-26 12:39:41.963 ***🔗
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-26 12:39:41.966 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='86bb0c7500322bd0' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-26 12:39:41.982 ***🔗
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-26 12:39:42.001 ***🔗
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-26 12:39:42.003 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-26 12:39:42.003 ***🔗
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-26 12:39:42.004 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ee3dc2a82ed422bd' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_12@localhost'>

*** User 2024-04-26 12:39:42.004 ***🔗
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-26 12:39:42.004 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost out
<iq type='set' id='9a67f36d818ef73b731ea56e38a768e0'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-26 12:39:42.008 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<iq id='9a67f36d818ef73b731ea56e38a768e0' 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-26 12:39:42.029 ***🔗
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>642af5bf7abc440e1d6d1ea44767b030622bc4d80a5c97a1c5d80a02a6030a82fb48ec8fd530f48ecc96a7213383481b3e2ef59ec637c45eca9a30a86afb249a947f9ed3c235b781f98a3d6477fe3d6784de10e8187588ee34c28423c999aabce4bf453954a218452a4ef83593dbb317f9824ced3e36f79a31c36510df547fbd35a2ce28fbc69407d567cd7651e127e8bcfd4a90da257788e53713188bcc2914762c30f83f2b9f0ee745a854d13cd0407c33bfc86bb98cef2aacc6e7cef6264a7bc3a016f0a7ab6f376abfe469a22b2cc2c5773b7527f3ee2686ce3b110d62f97caf565583dab6808711b4c4b9cccfc9f14cdeb660f2aec51d1c30be11974f4f64ac6c5d7ee4935d88d4df9d4c5c6c768d3f72770d8f09aa64dbe4593055393e363479032c56852f503fdcc422f33023709d59a6faf79dd775507f0f854697cdeefa3a6016b3c098e9ad1bc0615349ec7362ad0013f56a4ce11549efc209f28a1ee19597620caaec101d32616acf64c363fc94edb696ab68acd9fe86ef2b1b8026c6f156b26f9fc20075c7e2b4775705b789fe4fca8cc3ad6d055cd1a3e2606639d8b07e8190b9dee2d56c2c8881fbf55fd64ef080c689fef1feb23bd06cd9407ec44872737cbc2a8e506ea53d580059416bc2958dc346bd746e826d81e8443c68c4e0f3a1f17d6321cf4e026415b76e12b904235287cd5606c93985d6e1edc860159f0ea9f29d181d82d5ae800948d30931d4a58771aa85862f9c5cd213df5f81318919a41ec3e18a308573af8e53977b3252f237e1a5900d2834f772814873283a106ae296b9871ddaf2853a5567d21b87e2a27c413d3f75b5f3986e448978457df0fbc5ec53c8023e1ed187fa8b543a4172e040bdbf7eb72f7273f231a645b5120a759a563f5980b1f5660c483e5c9ea45b6269e5c383feedbadbb7398c4baed27186467fa5fc54ae59fc21058cedbb43fe21e58df71bcd17e71789f19af690a9ec27c44a824bbd65aa70e04b1291e44230ddec4d6c26600f35f83ccc40446a6179ed91d45b19978b6865aa836ec4fc2c6f6d2ca9cd254e63e0f8089a89721d9d36443f37515630d4a10ed18d11908fa386ef7ce5c88a378716b2b30b365444ccf61d87f8acb3aca7efc5e90ab09a15fb2cdc0621412cef9f2fec5b222458ed5d4a58a533ad944b5636e3a22a1830693c5216c8ea78954ca632a5c4721af8355e4e7b0645ca14643705cf300a9d01e4e5949ad7696899edeff75b0c7e27b897094441b92bfa1c2f1eb795815e00a4cd4a4f4b36a72bd805567a7bf2e4097e0a6bb737baa29c6e004d264879e5d57f4594049c4b87005aa0a6d25537f55c01145153e44a44c566474f976b7b371530907aaa6bb9faa72e315d230e9550edef68001338b453b7056ca100844bb5d7b8a3a27bf16f012de5bc357c05c2cb8268</body>
</message>



*** User 2024-04-26 12:39:42.029 ***🔗
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-26 12:39:42.030 ***🔗
alice_too_big_stanza_is_rejected_12@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-04-26 12:39:42.032 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_29.html



=== Ended at 2024-04-26 12:39:42
=== successfully completed test case
=== === Returned value: true