=== 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,
                 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"]},
           ip_address => "0",proxy_protocol => false,ip_version => 4,
           ip_tuple => {0,0,0,0},
           max_connections => infinity,reuse_port => false,proto => tcp,
           max_stanza_size => 65536,c2s_state_timeout => 5000,
           backwards_compatible_session => true,connection_type => undefined}},
     {watchdog,<0.1425.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
          {start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
     {preset,"mysql_redis"},
     {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@3d87ff50478a.2024-04-15_16.45.55/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-15_16.45.55/mim_c2s_suite.too_big_stanza_is_rejected.643.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@3d87ff50478a.2024-04-15_16.45.55/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-15_16.45.55/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{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_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        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,<<"domain.example.com">>},
               {host,<<"localhost">>},
               {password,<<"matygrysa">>},
               {connection_steps,
                   [start_stream,stream_features,maybe_use_ssl,authenticate,
                    bind]}]},
          {alice_bis,
              [{username,<<"alicE">>},
               {server,<<"domain.example.org">>},
               {host,<<"localhost">>},
               {password,<<"matygrysa">>}]},
          {bob,
              [{username,<<"bOb">>},
               {server,<<"domain.example.com">>},
               {host,<<"localhost">>},
               {password,<<"makrolika">>},
               {connection_steps,
                   [start_stream,stream_features,maybe_use_ssl,authenticate,
                    bind]}]},
          {carol,
              [{username,<<"carol">>},
               {server,<<"domain.example.com">>},
               {host,<<"localhost">>},
               {password,<<"jinglebells">>},
               {transport,escalus_bosh},
               {path,<<"/http-bind">>},
               {port,5280}]},
          {geralt_s,
              [{username,<<"geralt_s">>},
               {server,<<"domain.example.com">>},
               {host,<<"localhost">>},
               {password,<<"witcher_s">>},
               {transport,escalus_ws},
               {ssl,true},
               {port,5285},
               {wspath,<<"/ws-xmpp">>},
               {ssl_opts,[{verify,verify_none}]}]},
          {carol_s,
              [{username,<<"carol_s">>},
               {server,<<"domain.example.com">>},
               {host,<<"localhost">>},
               {password,<<"jinglebells_s">>},
               {transport,escalus_bosh},
               {ssl,true},
               {path,<<"/http-bind">>},
               {port,5285},
               {ssl_opts,[{verify,verify_none}]}]},
          {kate,
              [{username,<<"kate">>},
               {server,<<"domain.example.com">>},
               {host,<<"localhost">>},
               {password,<<"makrowe;p">>}]},
          {mike,
              [{username,<<"mike">>},
               {server,<<"domain.example.com">>},
               {host,<<"localhost">>},
               {password,<<"nicniema">>}]},
          {geralt,
              [{username,<<"geralt">>},
               {server,<<"domain.example.com">>},
               {host,<<"localhost">>},
               {password,<<"witcher">>},
               {transport,escalus_ws},
               {port,5280},
               {wspath,<<"/ws-xmpp">>}]},
          {admin,
              [{username,<<"admin">>},
               {server,<<"localhost">>},
               {password,<<"bruce_almighty">>}]},
          {secure_joe,
              [{username,<<"secure_joe">>},
               {server,<<"domain.example.com">>},
               {host,<<"localhost">>},
               {password,<<"break_me">>},
               {starttls,required}]},
          {clusterguy,
              [{username,<<"clusterguy">>},
               {server,<<"domain.example.com">>},
               {host,<<"localhost">>},
               {password,<<"distributionftw">>},
               {port,5232}]},
          {clusterbuddy,
              [{username,<<"clusterbuddy">>},
               {server,<<"domain.example.com">>},
               {host,<<"localhost">>},
               {password,<<"wasssssssup">>},
               {port,5232}]},
          {alice3,
              [{username,<<"alice">>},
               {server,<<"example.com">>},
               {host,<<"localhost">>},
               {password,<<"makota2">>}]},
          {bob3,
              [{username,<<"bob">>},
               {server,<<"example.org">>},
               {host,<<"localhost">>},
               {password,<<"makota3">>},
               {port,5232}]},
          {john,
              [{username,<<"john">>},
               {server,<<"domain.example.com">>},
               {host,<<"localhost">>},
               {password,<<"cosontuma">>}]},
          {neustradamus,
              [{username,<<"neustradamus">>},
               {server,<<"domain.example.com">>},
               {host,<<"localhost">>},
               {password,<<"scramshaplus">>},
               {starttls,required},
               {tls_module,fast_tls}]},
          {hacker,
              [{username,<<"hacker">>},
               {server,<<"domain.example.com">>},
               {host,<<"localhost">>},
               {password,<<"bringdowntheserver">>},
               {port,5223}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@3d87ff50478a.2024-04-15_16.45.55"

=== Started at 2024-04-15 16:45:56


*** CT 2024-04-15 16:45:56.272 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_20.html

*** User 2024-04-15 16:45:56.409 ***🔗
alicE_too_big_stanza_is_rejected_10@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-15 16:45:56.419 ***🔗
alicE_too_big_stanza_is_rejected_10@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='be821e9fdc310077' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-15 16:45:56.425 ***🔗
alicE_too_big_stanza_is_rejected_10@domain.example.com 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-15 16:45:56.439 ***🔗
alicE_too_big_stanza_is_rejected_10@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzEwAG1hdHlncnlzYQ==</auth>



*** User 2024-04-15 16:45:56.448 ***🔗
alicE_too_big_stanza_is_rejected_10@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-15 16:45:56.448 ***🔗
alicE_too_big_stanza_is_rejected_10@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-15 16:45:56.448 ***🔗
alicE_too_big_stanza_is_rejected_10@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ee9330081ace9dcb' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_10@domain.example.com'>

*** User 2024-04-15 16:45:56.449 ***🔗
alicE_too_big_stanza_is_rejected_10@domain.example.com 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-15 16:45:56.449 ***🔗
alicE_too_big_stanza_is_rejected_10@domain.example.com out
<iq type='set' id='ed58281b6992859fbc21b35cea9910de'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-15 16:45:56.449 ***🔗
alicE_too_big_stanza_is_rejected_10@domain.example.com in
<iq id='ed58281b6992859fbc21b35cea9910de' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_10@domain.example.com/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-04-15 16:45:56.450 ***🔗
alice_too_big_stanza_is_rejected_10@domain.example.com/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_10@domain.example.com/escalus-default-resource'>
	<body>5778682da2aab528253b9280889e8831102325efcdf0f11f722b58e63729e9ee9c12dd7969d3f223896b923720cc990be93f253fed6fcd8685f1370e516397a598756c0bc0a458a08c937c7c4071352cb922a03e5573ce08ea08c9d10b9f128fc57fc5ff6773a0c0ad4d970883a21acc5c06dd4f25103a6035ba4e997511a8e686c44a03e6e710d44c811f3768ff5193026d3b851d5e0fbc4a28d4a70266d89e251566e0d90e73a0c95ca5646b6d4a165a9b156ac1cf48d9ecf388ae79e44868cdbe30b3c8a654d27d1fcf2a3c69c6c0bc6f3f13198eb6ff7260a6e9eb4644a057c1886bc1a86f058ce3ed310d6472bd9037e3ffe094d4454736f2977975f88c67f7cb1353e748ae0a059e850304e372789a05836add7078352d91176039c6efcb0ebb3456ea0a169b64505d02b5ed05917bc51962e73e1697c26e0ee0f13ec17e4150aa76d6627b3f32dfdc9c23244230e3e7ce819c53eecce36ecaa8885a675468765167b08d9abf378ee152a69071c81c52e5686ed33040b478dfaa4923c9f9cae9ec4b59d182d2c62f9d3207e569a07a23259f88d19c414ff88c726ebc8d40c5b082204c324fce0748b02d5f9f978f33de788e899d83c18d70b5ccde8ee17a4646d60189ec148dc75bf8f6e4c7dbb2e83b87d0d66c612e6f2442eff1c683cfff54ccef2cf08a6fae15b5a584406785baef6dfa13e33035e753f46229f5b403b8b20900322cc4ce0a9bc52af2bc1be79f47addde5e1fd7329f4e26973659f9a8e4c863f8cc4596b9eb6655894a2758c2c13d372cd0412fe2b2ba0ae23f348d45174520b80ef11af90d9a8a0ccedb32e977ff882300fbcd6bfd56079f084c8aee5e41dbea5fef5f94fbb11d8530e703a1d99b74114d57e861490b71fd9633336cb3df4b5b185e69902a04321366de6747784c1c12af1ed76d9bd8ddf7bd693c027624393aa4548252a55392a7e611f5036990f9ddb463e85e72d8cb2066208699f963e459ccf52e97ba9276436d0e6b86d96ec5cef35af953fb0d3b3a0c5ede1cca977422e9fa81619d7a2e7a154e7de2424ffbe5ea2c51b53514c834480881d7ccfc07e9f1c918f86499ddbd125513ed4e2814b018540cb9325c4f5cafe168fbcdb6491b8987f028090b4520def69a3dcb58244ce137a4a1b6dac6e10a61d8be02ae7034ea70b4937213c0841b7708a61a4bdce269752c17ddb5723c0bbffba43bffbd34386298da00b91e3931746370fa74faa80adc173f4f3dc729de9dcecb3883157ff23a01e80a83de2925ab422ac39c88db703e609f6acd365ce2f7cd27d43095fa6e935c7d58266b9c0ba4dcb73ef50f26f89e69445c33145662daa59a974e880318a7c455ab21fb27fabb8381a6cf714a97eede3ec3a2535fcc36cd48383967f003b530c9d5884a171b8214a1822c67c4a6f10ff644c825bd180d2</body>
</message>



*** User 2024-04-15 16:45:56.451 ***🔗
alice_too_big_stanza_is_rejected_10@domain.example.com/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-15 16:45:56.451 ***🔗
alice_too_big_stanza_is_rejected_10@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2024-04-15 16:45:56.452 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_26.html



=== Ended at 2024-04-15 16:45:56
=== successfully completed test case
=== === Returned value: true