=== 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.1483.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@ce8571dc8546.2024-04-26_13.09.10/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-26_13.09.12/mim_c2s_suite.too_big_stanza_is_rejected.131.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@ce8571dc8546.2024-04-26_13.09.10/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-26_13.09.12/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@ce8571dc8546.2024-04-26_13.09.10"

=== Started at 2024-04-26 13:09:12


*** CT 2024-04-26 13:09:12.318 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_21.html

*** User 2024-04-26 13:09:12.382 ***🔗
alicE_too_big_stanza_is_rejected_7@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-26 13:09:12.397 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ccbfe0ffe92e3f9a' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-26 13:09:12.436 ***🔗
alicE_too_big_stanza_is_rejected_7@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-26 13:09:12.446 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzcAbWF0eWdyeXNh</auth>



*** User 2024-04-26 13:09:12.450 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-26 13:09:12.454 ***🔗
alicE_too_big_stanza_is_rejected_7@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-26 13:09:12.458 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='52782cd9ac1e80ab' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_7@localhost'>

*** User 2024-04-26 13:09:12.465 ***🔗
alicE_too_big_stanza_is_rejected_7@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-26 13:09:12.467 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost out
<iq type='set' id='383065b0dbb6bb2abed56ba38ab176ec'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-26 13:09:12.468 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<iq id='383065b0dbb6bb2abed56ba38ab176ec' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_7@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-04-26 13:09:12.468 ***🔗
alice_too_big_stanza_is_rejected_7@localhost/escalus-default-resource out
<message to='alice_too_big_stanza_is_rejected_7@localhost/escalus-default-resource' type='chat'>
	<body>6d6e3bd5a1cfad8e25ba038c9641ece339b1b0fcdb63c9e7e4c1138e13161502aea3e99c65c62b8b04db51a44ff67cafcc5c21b79159b4889e7c30844e5e954bf0c72501dd334df04ec2bd20609456435f72b1a6be95ed8195ef92b23caab092a2c2ff94f83968cac2c47e502dc0632b3d8957562ab0f11d8d35106736c80fec9afeff809317f3686903191cd12a390040acc479bf587b9b8358e1fbae699f42f8eb5389b16ee86b3a2baefc1731c75a54acb78db5249cbba22575571f7c2384c024f05ded11010fb5985e45abdb4cc864a37307a691bdd34ae4b6e4969dadf5d77d8066ed255396bb551c2c11caee10777732033cc683ad5bea56a0c7efbcf52424e86d3163329a08231a51957f4cab6dfd5c6364b6e06094abc9c38d56a355422b302d63f5265d4c9d60f25edee09f66ae3d0d8566de05232d8770c905c4505bb159a9a8729a6ac2278c165ab19c925885b1c2df28b7182c152e4d5488af4da60ccba6ca25a6b4a3d0760e4b91c27b7361c933e9ccbfa47e9d832bfae953098b51e5715fe9ac1f95c3f4add261a619acfd6041044463f0b794bdcc5bf007e7be5e648eeea219585847628bace703436b75ccac335bee959c3f1dcb0adc4002cdb29b18dae05c2197dce968f56187ca085e8162b9de01f75e01390a0984021a491efcdd3691af21c4a7a6264afda352365c3f49c37b533e121d8338d9d6a893778ed3df89fdf2b64fca9ad0c81ff99f627dbde4cb8d059805afd07511e87fe68c0be6921ece352743bbc22035fb9e9eba827d811555a38aec8c760b15e71538e952531e410b16a3bd8b1e9f00b59c3146b1e56c3be1ba5921de74932e63997f9227bc44ce20fcb3e171f2969147cf51460ce48d3aa71b67aafa7b22f298f74b46adac9fe68b4b12091fd9f06669930dc706e1a2db2d6da9deb15e3a31d656e821b1feb731cecf63dd2c4c2508f5dd0c92c3f209dece67cb414c53a165ac6ad0a6e7081b39e96055fefb9ad3bbfaa69a6d751f9c6f932a28335ca6a8546a9906c05880ee125e24e0de98d4aec69e765c7caa9bcbe57a232314ebbdca57baf4ceb8d381509b655f4482e393cb0a80d841e384603244480cf848c4852389680085022c6c3cd3fb9547e1d2577601957acd1cba6d17a648a22f48a9a0f9d2da71b1156aa12c065b31f7705ed1ee40df41142627a0676d89d92edb457d90d82823d03f394c9d2fe76dd50447f04cbf7a3826daf627dc5e78eedb0e2c5f5e325c60d7e252b3ae293cd832bc0febeadc183e3d972b9bd0fde3f2fb20be8d6be8572354d82668e934659e1431d2d33101cd8b495904dfce33f89e92c2f18e22779c55397b78cf6d44e7a30468901cfba69b157df12fecc8d115779156088b75acacb83e67ec1750722c3fd506203825cfe31bf53f507e2c20f5b7e9c4768ad636357382</body>
</message>



*** User 2024-04-26 13:09:12.469 ***🔗
alice_too_big_stanza_is_rejected_7@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-26 13:09:12.469 ***🔗
alice_too_big_stanza_is_rejected_7@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-04-26 13:09:12.473 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_27.html



=== Ended at 2024-04-26 13:09:12
=== successfully completed test case
=== === Returned value: true