=== Test case: mim_c2s_SUITE:too_big_stanza_is_rejected/1 (click for source code)

=== Config value:

    [{c2s_listener,
         #{access => c2s,backlog => 1024,backwards_compatible_session => true,
           c2s_state_timeout => 5000,connection_type => undefined,
           hibernate_after => 0,ip_address => "0",
           ip_tuple => {0,0,0,0},
           ip_version => 4,max_connections => infinity,
           max_stanza_size => 65536,module => mongoose_c2s_listener,
           num_acceptors => 100,port => 5222,proto => tcp,
           proxy_protocol => false,reuse_port => false,shaper => c2s_shaper,
           tls =>
               #{certfile => "priv/ssl/fake_server.pem",
                 ciphers => "TLSv1.2:TLSv1.3",
                 dhfile => "priv/ssl/fake_dh_server.pem",mode => starttls,
                 module => fast_tls,
                 protocol_options =>
                     ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"],
                 verify_mode => none}}},
     {watchdog,<0.1496.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.67541742>},
          {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@b12e200c049c.2024-03-08_13.48.44/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-08_13.48.46/mim_c2s_suite.too_big_stanza_is_rejected.516.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@b12e200c049c.2024-03-08_13.48.44/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-08_13.48.46/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => #{},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{number_of_segments => 5,strategy => fifo,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_register =>
            #{access => register,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
              iqdisc => one_queue,password_strength => 0,
              registration_watchers => []},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,search => true}}},
     {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@b12e200c049c.2024-03-08_13.48.44"

=== Started at 2024-03-08 13:48:47


*** CT 2024-03-08 13:48:47.271 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_30.html

*** User 2024-03-08 13:48:47.486 ***🔗
alicE_too_big_stanza_is_rejected_8@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 13:48:47.499 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='be20034d21ad7804' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-08 13:48:47.522 ***🔗
alicE_too_big_stanza_is_rejected_8@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 13:48:47.593 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzgAbWF0eWdyeXNh</auth>



*** User 2024-03-08 13:48:47.614 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-08 13:48:47.614 ***🔗
alicE_too_big_stanza_is_rejected_8@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 13:48:47.629 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0c43152ab758c82d' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_8@localhost'>

*** User 2024-03-08 13:48:47.629 ***🔗
alicE_too_big_stanza_is_rejected_8@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 13:48:47.629 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost out
<iq type='set' id='217f8f688583568bcf2bdae25e06cf41'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-03-08 13:48:47.631 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<iq id='217f8f688583568bcf2bdae25e06cf41' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-03-08 13:48:47.642 ***🔗
alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource out
<message to='alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource' type='chat'>
	<body>83cc522b0320c5516a71d722802816257dd7bdb5b6429adbe5673225c980758c3f061a03770df2ab8bfd2acb1c28a8e9990fac6564c1f3133efef71e89c4b1d10f3579793c25b1de4ba4811f85e6e640e09e38557bc2acfc1ddf788e6f05e46dfd749a8208f86928c0eb9d697977aba85998125e2538d96500ad123de46c0e6e98ffc60d1a2b93bc7a0b349df478f2d69c5077c52259d3c205d3caab1e8fbf03a346babfd081e5b9237f30b2537db8f6874d0e43c8467175a228032f9fbdb68e0b9d8d0a4492d0c99d2f33ca059c96a797453bf76fe0e1641db8b7e402fa57918db61e8ec52b346d07d38c737bb182989c68751fa42d8585b16d192d0d507313ec3b0957ef6c163e2cc8a691ae1b2f55e660f3810f55086a400c2b608dd1821fd1164ad1a1f567662b4d37584bd75eddfa0cde9c9386545500d511d4f9d065d5342302d7f2762878f744d26757e0d5287c7c0291e7abf3cb47bb5fa205730ce1429a25e7e56a79393f1a9406941fb64f4a2b86977c558b9ce066ec91334e411f1de973115745fa4ae092532e35d3b853246e25c888d7851ce20fefa58290bb1afa2c7537e1644821fd242b3a12231a625edcece1128dbe3da0f01def31d000e2ccb8c3b1ffe7b555057e8ba52b600aa9994be683b88c1b3d2e3d1ed025e0c3b5d1bf5f275f3703e31026960130894b02ead7ef3358c5048ed2a69693e9a95402b39ec9874ae0aac661121d3fd425e1fe3469b9edab6aa7fee8bfac75f8e688d3343ab6f800be90cc1a360c899d9729c27dafb78218f1072361e896ba95b88777b0affe8f80d00e5c007adb39e390f607d4e61c9fd83cf4da92c7148b915b426a8879e2b5dc9cc2b86aa15a504372b250818a78a4dfcf087084492a4b479d864850eb00fd94823233d7b5819539906d0b634e416d783f05e28ef92d72ff344ce8a1f5ce2cb633279db29cd37866c3972f5fb7ccab24ab3c4ac3b127e0b3f4d2253aadcdd5ea3a0aca9da90ea78ca3dcce0804d0a2dd1c965ab5f4a119d980a7cc0e12c1c5924fc9d59f21eeeabdc573f3d572fb12fb4b61b68d3225010b66a7687dac0a8756e690690502dbe8be9cae526bd9688b0eaded611531ab0a3ca534ea5e09ae8605efbd64a41244d56d513ba999bf196007c87112b4a581558c31869d51dafb337a650c79b5bab5c9e5e243d30e8e4a8a3b2902b315be407db4d2b8f0c174df296ecbf76a6615a372e16f2802b786f513b5e73d5baefcac4903956090b489a0f4b78368491f6b37947c311d29b9a5a997cfdba49ef5e1d1a887e7ab8845dcaa084e007b46f20540c0c9efb8a3e0ea2f212e3220858b741b2811f5bcb51d5f1771d47cf322ed132a94e20bebe67adc95a200dd0c294a2c2ffae6ba4c9662af575cccd65156286ee86a06b3c5b2e739d159e8a1a098d4bf8a6efaa19a79</body>
</message>



*** User 2024-03-08 13:48:47.643 ***🔗
alice_too_big_stanza_is_rejected_8@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 13:48:47.643 ***🔗
alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-03-08 13:48:47.678 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_30.html



=== Ended at 2024-03-08 13:48:47
=== successfully completed test case
=== === Returned value: true