=== 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.1421.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@a458c4eb991a.2024-03-07_11.00.02/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-07_11.00.02/mim_c2s_suite.too_big_stanza_is_rejected.258.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@a458c4eb991a.2024-03-07_11.00.02/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-07_11.00.02/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{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,<<"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@a458c4eb991a.2024-03-07_11.00.02"

=== Started at 2024-03-07 11:00:02


*** CT 2024-03-07 11:00:03.017 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_19.html

*** User 2024-03-07 11:00:03.168 ***🔗
alicE_too_big_stanza_is_rejected_7@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-03-07 11:00:03.187 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='42ce50c41c32531b' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-03-07 11:00:03.194 ***🔗
alicE_too_big_stanza_is_rejected_7@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-03-07 11:00:03.211 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzcAbWF0eWdyeXNh</auth>



*** User 2024-03-07 11:00:03.214 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-07 11:00:03.214 ***🔗
alicE_too_big_stanza_is_rejected_7@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-03-07 11:00:03.218 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='534cddbd04d3255a' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_7@domain.example.com'>

*** User 2024-03-07 11:00:03.218 ***🔗
alicE_too_big_stanza_is_rejected_7@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-03-07 11:00:03.218 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com out
<iq type='set' id='8b6798226fe39ea9298f702238f8acfe'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-03-07 11:00:03.223 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<iq id='8b6798226fe39ea9298f702238f8acfe' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-03-07 11:00:03.226 ***🔗
alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource out
<message to='alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource' type='chat'>
	<body>ca5f170c18c78d2212d96d49154c04b7907d6e533b8e24d0f711d05d37c814401b01986e8599e9e1299f4f1097f9831dfd948d0b4fa9a49026fd352331881058b006e28749df5506c8fea04bcd0ec312529232d0b365448ef196d14645a67050fc300fc3063fff27ae9e9300e0fd0eb7c49a9e2ce4885f8f8eafb950ed53070875a24ce16421db655768a0fcd14bcd903204798d00b6ba35914645bfe00c29bc51785655401328ed7045053e20f1481d52ab0e80a4975c25c02965960339e4ca38d6a3a3bc4ab0742f5b0ffabf70ef42d30e138f746983056f6a72ea598e7606e31a5f1fe38766b098e4eff5d298b0a4d62027a0bec724aad90b36c5b5d76f8e2da5b561b30f0c52f0028c05dd02ee96300b6496177504ac66b0ff8fa582c49f466178e6561890d79ae8fba59cd9c9fa22e5020f8f452cad2041139334ae6af0bcee162a8b8d5fb7bd98a93fabb0d7281245e9914a270ab058e5bfed6933c8dbc347e190b31db481adfd7269db1a4fe78cb4022fafe623517c9c39a7f8b7227e2ba38e76eebfad0435f8063d1af7b851d73992aa1cfd876cd68b238f333396638c3b5caa415b7b40df5c8108bf4a480bedbf11cb7e06af8e2a9a5d1cb3afaaacfb3908d708cd97b3feb8404677b1ae12e43b1b05edca3ba7517ce6eb0d7bfdfb537cd162f58d37de82c7dbe31ddf831fdb469d2cc5da3f0e6e114b30d8d899d3e7b737ce6545441ac128097560a32d13f7fdeb438be797988aeda4fff2c5729a54a19b5e0d53845b0f7a87f1067303e368a479a85227e86e8028e38c621462673d6df98d81a034e3f2e265a72a7cc00d57e5f48f56e4300eccc1c13c4c333a21fc7ca6240fbafb69e6b48885c6fe7512882ee2eef726e34f2410e224208859ca5185ac64bce318709b77f4806b2e2f05668ef4ca56c86c39b72fe494dbdd1b99cb46129929080bf0665aa58a61acf6fb7e087598713549b6ccbf28a132e937c684dfffc3d98d2c09aa522e9f5396238147bb5855b446f496fd0aee6e7ac2e5bcbb460df8d016852b56dd564ebb4d48cc1199020e89c292522ba045c48d92669d1f34df0d062703b4d76334e695357388e56c3df1afadf6af71e2cc644f848a3d0b904e8bbabeaf32afe9a4d98311f7b9ecd6006181c34a366cda7dc749e9fc791bee75e488cad846df11fc1062268aaa1c92decea5dece874598f5472f3e27c2242b7bb9c4719140a85359d25d989c931befed6a2d551131ebc24b43a084ffe2f444365500c264541d6b44d5efd29c56ece8848b981b572554b01a83faf22efc327f377202dab72715864f50075f249347094841c508d73df92ae04da7da3b5ece6ce4daeb141c339f24c10e19530df5eb28541a1eb1ddbcf1a14dbd632966f985870ca22087f61adce4a6057be940902fb8ae3c3dbdf7cfdd2af246ead28d73</body>
</message>



*** User 2024-03-07 11:00:03.227 ***🔗
alice_too_big_stanza_is_rejected_7@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-03-07 11:00:03.227 ***🔗
alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2024-03-07 11:00:03.232 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_25.html



=== Ended at 2024-03-07 11:00:03
=== successfully completed test case
=== === Returned value: true