=== 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,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",shaper => c2s_shaper,
           connection_type => undefined,proto => tcp,ip_version => 4,
           ip_tuple => {0,0,0,0},
           max_connections => infinity,reuse_port => false,
           max_stanza_size => 65536,c2s_state_timeout => 5000,
           backwards_compatible_session => true,proxy_protocol => false}},
     {watchdog,<0.1487.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
          {start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
     {preset,"pgsql_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@97931f009ece.2024-04-23_10.53.14/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-23_10.53.16/mim_c2s_suite.too_big_stanza_is_rejected.3.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@97931f009ece.2024-04-23_10.53.14/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-23_10.53.16/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_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_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@97931f009ece.2024-04-23_10.53.14"

=== Started at 2024-04-23 10:53:17


*** CT 2024-04-23 10:53:17.019 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_21.html

*** User 2024-04-23 10:53:17.122 ***🔗
alicE_too_big_stanza_is_rejected_10@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 10:53:17.137 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='52831d3df30b5519' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 10:53:17.141 ***🔗
alicE_too_big_stanza_is_rejected_10@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 10:53:17.158 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzEwAG1hdHlncnlzYQ==</auth>



*** User 2024-04-23 10:53:17.159 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 10:53:17.159 ***🔗
alicE_too_big_stanza_is_rejected_10@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 10:53:17.160 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fe00d902de72f6db' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_10@localhost'>

*** User 2024-04-23 10:53:17.160 ***🔗
alicE_too_big_stanza_is_rejected_10@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 10:53:17.160 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost out
<iq type='set' id='744ea5713c0001860935b7f3ee15783a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-23 10:53:17.161 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<iq id='744ea5713c0001860935b7f3ee15783a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_10@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-04-23 10:53:17.167 ***🔗
alice_too_big_stanza_is_rejected_10@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_10@localhost/escalus-default-resource'>
	<body>6dd586db1faced0e9c7ab8ccf505f67be851dd26ecdd20b073f193c5c75909a16e67016d527ad3c07e86cd7d1c6089571fc84caf108e96f45c7f907f7a26f6a369beb58a7ebba4241b01f5b6c68a4eca0c7dd14ea049a8accb050a2601673a8e1990e7c1d42cf872b3d94a64f6e5785a39534433e4e111c3e931136f74077a77038a28af32a4ee06f6d655f360ce611d687042d667bd76462f2f6fffbecb340c82d027a73b88578a8bd57a12dd8dd8e58e6700f7f5e5a76349664673f7455a1990b0f413b3c93b4bfcd80cd709039e8e20a177e218cfbb758365856bf08c394e2f50668b8304c8393934c679367507d4998bf1a6eb6218fa71e76c12a6473b8f4a899467e5c625637798a4069c9a5737b4f883ba512c1acb3e3e08578e42fae11026024afa00853a871a05f5db479b27b3a41f9f65db7d11d6cc60f0978f4f6a97d0c08c377078e8234095856ad1f5bbebfc67af98627d0c32e4b8e716141da5dc4d0ddb52041ccafcdae61f183b6274d0fe0bea549edfd8843368090dc05e764bdd84347fc21c80a3988703e837a52f488a6e99cb9e4411b470f3b3c9c06c8e874ea04d27844c9166935d326f54dd3e3b16a1cd2f797091633839ba3c4dfef483935191c79aa37fc594208008cf640b0758b80987075755f7eaf4b01dc1fe9c1b5efa4de92ed1d366d78a41647b8235634ca550da418b2f856376bff130df9ead53244e1dd40607c1f8644a25cf6080da8cd8392e548e7b00d77e2a9c78a090a27679d17273ab896c3fac529400600036c1a647250452297bfb56431dcd0977fc820e632f95f545f68d0724d406d1bd7aac5d2ad080af1c4e1b70c4b460e2b27f57db818df0e2ee0c527d33d1d252b6c9e44b82f211808b8c749034a884f9abfc7ceaee706bb7f28c9efec3b5a32f3059dc4dbc1ee70589709323fd59e895808131ec0c3c22953b9ef285250e94c7d594b28224478c20bf6c81be8a7c6ba96fa359d29be2332c166724221299c5db1bf8b8f6283bbce3376a79c5e9fc07c48d40d105e052900706b3fca6094e79d976d201e34ad860625469b634a536d8505a61aa0e50eef2119373f67af2323c8b9af41db2ca666c9cce718e9de9cc675460ef6192d76f7a14f4b88e320bf79e00908727e5611f3bd727bf96bbe5dd73122ba473d9e1e7ccc044431f7eb552ed4f667df4c289f988f7b197b3411b51e004f3b811cbb1aed6c5fc5ed030ec8d157da464403a590a364fb43cf38f0812d9a5d541b13a5f55f0c32e73a90378d533d7a6ae7fc7a5f453b93558d6e52e885747a05aa0eb21aa411542656d16e73fb21809a63c6593580e94e326e1d4a50daee08ed215de43df6bc983752a5c03f3559f705e467c89cf89f8baee27481a830b604489b7c3c2b4439688abafc49219821a408009eb888d22d030f52f2ad84a34511b</body>
</message>



*** User 2024-04-23 10:53:17.168 ***🔗
alice_too_big_stanza_is_rejected_10@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 10:53:17.168 ***🔗
alice_too_big_stanza_is_rejected_10@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-04-23 10:53:17.170 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_27.html



=== Ended at 2024-04-23 10:53:17
=== successfully completed test case
=== === Returned value: true