=== 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,
           proto => tcp,
           tls =>
               #{module => fast_tls,mode => starttls,
                 certfile => "priv/ssl/fake_server.pem",verify_mode => none,
                 ciphers => "TLSv1.2:TLSv1.3",
                 protocol_options =>
                     ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"],
                 dhfile => "priv/ssl/fake_dh_server.pem"},
           ip_address => "0",shaper => c2s_shaper,max_stanza_size => 65536,
           backwards_compatible_session => true,c2s_state_timeout => 5000,
           ip_tuple => {0,0,0,0},
           ip_version => 4,connection_type => undefined,
           proxy_protocol => false,max_connections => infinity,
           reuse_port => false}},
     {watchdog,<0.1497.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@17a96e781220.2024-03-21_22.20.25/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-21_22.20.27/mim_c2s_suite.too_big_stanza_is_rejected.132.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@17a96e781220.2024-03-21_22.20.25/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-21_22.20.27/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_amp => #{},
        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_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,buffer_max => 100,
              ack_freq => 1,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              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@17a96e781220.2024-03-21_22.20.25"

=== Started at 2024-03-21 22:20:27


*** CT 2024-03-21 22:20:27.620 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_24.html

*** User 2024-03-21 22:20:27.658 ***🔗
alicE_too_big_stanza_is_rejected_11@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-21 22:20:27.670 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='49e11fa02bd2f71b' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 22:20:27.698 ***🔗
alicE_too_big_stanza_is_rejected_11@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-21 22:20:27.706 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzExAG1hdHlncnlzYQ==</auth>



*** User 2024-03-21 22:20:27.707 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 22:20:27.707 ***🔗
alicE_too_big_stanza_is_rejected_11@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-21 22:20:27.707 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='638fbf27f13bcb34' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_11@localhost'>

*** User 2024-03-21 22:20:27.708 ***🔗
alicE_too_big_stanza_is_rejected_11@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-21 22:20:27.708 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost out
<iq type='set' id='927a1a6b463c511b282f7ac30eb69da6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-03-21 22:20:27.714 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<iq id='927a1a6b463c511b282f7ac30eb69da6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-03-21 22:20:27.721 ***🔗
alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource'>
	<body>2650703f14a7348e7ab6db4bf4ce57eaaca6192628b89dec5ae36506d884bd5c62509062d036ac9c49d003ed92b0e53d2d6084984aa24879c8fe5d4e7f40216b1a0a4a74356470d0f21e16ada12ee5456d2541560eb2fdb948b907c6810d0684fb04dbe2b2ba2a3b6d48864ab9fca74e60924671c76117617174e75b0afb7c63a36d8258cd22e5f76c06cc84ca1b8d9c233b4692f65992ea13bcbbf4e5d7c3082a91192fb20cb61babbf46f869fe4191e4dbdf2aa65e1466a377e9e5a7dca4819d42eca00a9944dd194c4975401bc4d2518dd9db9bca5131ffa1f3ff9a0be5dee42f180bcf2d17835281d77f53e08d5eef10c4344440d71fbac265f83f0bd167c9cfb6ac364b8c97bb3c9304169b681ef3f4a69a5e8ff41ca59758d4cbdfef3c5d86260456b709989d4c9b132eb3108e823583bf15357ab84afdfcff16c12af2639bb85cc1fd164dc102200b9f322793c9ead2a82d1866523c73006c8b03d2c17dabe082be2475cf50661cb864d65f0964dbe0c1e4bd14090ca8e1267c87d13daf03d829c70eca301896adaec86b06472226560a44b4a44f98041130df58917d22d2af5edf5659b08d1f02198667ed23802ae40c64cef9bb9ec4c3bb9ef625a0f2063b6178e4c2d84d5a925d7880c1600039db15a87180a83d25b6e2156a2fd92fd2e12379f1fdfd28aeeaf785cb063628f32a54754cabcb53e0e331ec8c718a90af1d7221e9df77a5d9841fe330058a380a818d4d68e206f956474c03d74a0ffd3dc75db5577273910ae6b4895fa917ad010c0c677e66ca04647c3ac4944ff7e464c7c9f6993452101658100aab09e44c6449233b2843c525e66df93f65683c99bfaa1b8da82973de3e116b5aaca53630d6586970596e2903eb650d8bbce8e1230a0e824f4bc799dab558d0df1ab101e0fede4ef44548afeb27ae07c88080d8b8934fb00e278db4f479873f7c3dbe2d78aea2636d9cb6dd600b8aa2fe5f205be720a4565a9115b0283e5c8a8fd0a12e2deb6c099a21c9e3ef16e9d021374b66307d674a9a761a0901d49f6af780371835f9a04bbe8b5a171d7e71e924ca88f44f975f6ec43efeee6d6e5c09f49b4e6044d4ef2bd86378529180b2b1e9260920fab4d13f2f26c237d9c57c9ca19a9f84105e30092b0ca431b732cadf4f71691db1843560ad4e231417c8bd51fcf36f3bf5c1d53bc2f26e93e91a27c7176a9c4ba2e78008b73544a1c3b5cb5eb449f3471bdcee8de28ed6d4e516462e33e2c299fb9d36e530d11102fcff7e160d9781fbe220772f490feab11ad4cb11617f64a379581a2fde7006c66a47a0a4c7854f2d3dd2a55cd7e89e66a4cb18e4b53efcd7548074da4f86e32a27f950fa0d21a03d5ae1b9c889f724ebca599013556eeca083526605aa4fdde137f9658eeb8e76f2248b5c761a57f393819a71f02f3891d1</body>
</message>



*** User 2024-03-21 22:20:27.721 ***🔗
alice_too_big_stanza_is_rejected_11@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-21 22:20:27.721 ***🔗
alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-03-21 22:20:27.723 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_30.html



=== Ended at 2024-03-21 22:20:27
=== successfully completed test case
=== === Returned value: true