=== 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_tuple => {0,0,0,0},
           ip_address => "0",ip_version => 4,proto => tcp,
           shaper => c2s_shaper,
           tls =>
               #{module => fast_tls,mode => starttls,
                 ciphers => "TLSv1.2:TLSv1.3",verify_mode => none,
                 certfile => "priv/ssl/fake_server.pem",
                 protocol_options =>
                     ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"],
                 dhfile => "priv/ssl/fake_dh_server.pem"},
           max_stanza_size => 65536,c2s_state_timeout => 5000,
           backwards_compatible_session => true,connection_type => undefined,
           proxy_protocol => false,max_connections => infinity,
           reuse_port => false}},
     {watchdog,<0.1485.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@d091d39a81d0.2024-03-08_08.59.35/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-08_08.59.37/mim_c2s_suite.too_big_stanza_is_rejected.515.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@d091d39a81d0.2024-03-08_08.59.35/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-08_08.59.37/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => rdbms,iqdisc => parallel},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        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@d091d39a81d0.2024-03-08_08.59.35"

=== Started at 2024-03-08 08:59:37


*** CT 2024-03-08 08:59:37.540 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_21.html

*** User 2024-03-08 08:59:37.684 ***🔗
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-03-08 08:59:37.684 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='88d0de87697a013b' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-08 08:59:37.702 ***🔗
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-03-08 08:59:37.712 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzEyAG1hdHlncnlzYQ==</auth>



*** User 2024-03-08 08:59:37.713 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-08 08:59:37.714 ***🔗
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-03-08 08:59:37.714 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='01fb9212f1d0c395' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_12@localhost'>

*** User 2024-03-08 08:59:37.714 ***🔗
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-03-08 08:59:37.714 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost out
<iq type='set' id='f07ded8881a34033ab38354d7e77b4c8'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-03-08 08:59:37.715 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<iq id='f07ded8881a34033ab38354d7e77b4c8' 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-03-08 08:59:37.740 ***🔗
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>9f6d7dd7ecd4c9d9b12fa8c1355ecb085cd27dca6e6f75dd94e18b7975d77b5214b85a0e2b33bf91c6630318004532bb410eaf9ffb8bb7d68a8065aaf7cca2579904bf8b3692cafe5acf6e36025cbb0979879c99e5129e68ead2e99c9de69783042b1e8c109fa54186a28274f68cc53fa9f7b6c215224cb1b5fe4389d4c35f3e460de45d195de2c192e2fbdfbd4d8c68d9beba298d654fcadd77fe8da5339598a1010067d8b1e28b57d9cee897d7a802037157934dda589b283cdea318f734aec60fd9c575186316339dc6dc2a7569ca53b830ed5e24f415d526520ea9d17a7becf74c370db600e7d532f97707df1f2ab7f9a9c7d4b4130cf350b4b2218b3102d0fb02d7386ecdcb3531a9a801d01f08259f14e0992ad2bfb4456dce1952510ac5884124595cd54fd3a97251710dcfc3e5fec4029574057e192916ead76c0b0c06ecf730c73449ce2e56fd0d43f591f2cfa43056af500a84413bd8fde23414f362251674f0b5655c988f7f202819269e0bfd7d90a932e40995baf372ba060ed35add3d08eec72c273af6674e4a269744d46076b530750904df8942455e466e5c63c7c6d429072535bf3acf577c8ae050da5a7a3bdfe7663179e7b8f780d65254b6f5728caf3ca01018a0c380113e0933c8820ece31af50e36a7a17aeab1d94a35e077ed4576d325f9867af9ba79774944e56c4677776c78fcf9c8c6cec3da85990762345424b15ae956047b6a4da17552131cfc80de03d5edc9be12d62b071993b1ac3b7806ecb2c186c9a56d37b8bb46bb001804aa5b5101980503b6f831f3a55d9a2af0a279e0c080a2a76f54caba04c2442b98413bff9193e0158c961e0ce820345bc348c713b8ce0a0ce73b4efd5848cb330b190c44f948a519edb356adbb4ef6e6ac181aefbaf8071b600fa46d6976453a19e33a0370c4d64abc5dbe6d210744f6454d0109224f45ed19e4713bf47790120aaadc1791d05ff7a842319598d30f88cce971c657d78cff48fcc75b02431f070bc7007e323570d3a516f44fc67de2486af9e5f731124d89a23d56dbe46212a1fd64a0b20943649a060bbcf819eeb29b7c06d6b98e1aa95ba59458261bb6e7d3ee91d2c5991bd104cfd86b00e1e90f2a8a91c0aecb14ca9c5282719903be26196751d2ca19e654b44319e2ffc4e38c8b74e65e99d9a3d5843cf482dca3f48b9807d7061ef57b01fc3fb4c036d87bad6a60514fcf477104442bafef300d93ef95d13e0eecbaf8124a5e3f928b4f7a21494b716076777e485dd96d7e7cf1a77bc49157c73a579c36be79da55c9b0f4417b8bbdd0f3d9d5dd1b6c2d40ec119a1ec051bf13d9b2eee57583dfd25df5311057a60ae68f8a81023880b9a6557ca8b340bb11fd43d860328837c5deec9898c7b33172b1adc6c18115cffe37912a03efd68524279e2b7225a731adde4f6</body>
</message>



*** User 2024-03-08 08:59:37.741 ***🔗
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-03-08 08:59:37.741 ***🔗
alice_too_big_stanza_is_rejected_12@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-03-08 08:59:37.743 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_27.html



=== Ended at 2024-03-08 08:59:37
=== successfully completed test case
=== === Returned value: true