=== 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,
           ip_address => "0",proxy_protocol => false,
           tls =>
               #{module => fast_tls,mode => starttls,verify_mode => none,
                 ciphers => "TLSv1.2:TLSv1.3",
                 certfile => "priv/ssl/fake_server.pem",
                 dhfile => "priv/ssl/fake_dh_server.pem",
                 protocol_options =>
                     ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
           connection_type => undefined,max_stanza_size => 65536,
           shaper => c2s_shaper,proto => tcp,
           ip_tuple => {0,0,0,0},
           ip_version => 4,c2s_state_timeout => 5000,
           backwards_compatible_session => true,max_connections => infinity,
           reuse_port => false}},
     {watchdog,<0.1427.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@699c7e574a5d.2024-04-26_13.09.59/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-26_13.09.59/mim_c2s_suite.too_big_stanza_is_rejected.899.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@699c7e574a5d.2024-04-26_13.09.59/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-26_13.09.59/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => rdbms,iqdisc => parallel},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        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_amp => #{},mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        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@699c7e574a5d.2024-04-26_13.09.59"

=== Started at 2024-04-26 13:10:00


*** CT 2024-04-26 13:10:00.154 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_19.html

*** User 2024-04-26 13:10:00.278 ***🔗
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-04-26 13:10:00.285 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='71a38dde75df78ea' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-26 13:10:00.298 ***🔗
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-04-26 13:10:00.309 ***🔗
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-04-26 13:10:00.310 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-26 13:10:00.310 ***🔗
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-04-26 13:10:00.311 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='78ff909198163f48' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_7@domain.example.com'>

*** User 2024-04-26 13:10:00.311 ***🔗
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-04-26 13:10:00.311 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com out
<iq type='set' id='202ae4adf5a62168071ca91a794fa123'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-26 13:10:00.312 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<iq id='202ae4adf5a62168071ca91a794fa123' 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-04-26 13:10:00.322 ***🔗
alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource'>
	<body>1552e4ed893165eac441f5af6305387e9ad55f4a8cc7340eaf44f3680e1bf186e0820236faedb473ee774a8346c8753ffbee3ca95b56cd7f5a545366f897edfd2e2dfe3c2b589ea11a31d657471a772727b9fe4daf785cd614fc0ccbba151cac75e8d72db65b96416d4d99f7337fe9b70f93a7e54923b17fe6bba6ef0c6506811438025fe145cfbfced339f4fa40e094a68f0bce654d4380c6ddd37b9dfd2bb7a9b01e7c734371dd5326b49fe045e3359fd3af877e613c4146290ce155c7225a8ee98df7ca0804c61e2ddb2c9d611542f020dd77cf8d4139152378aa19788f04a549b4a8d7d433c87b59cf32906adde3f9d914f37632161bc2397e70d08efe8f85e33d19e50c828d3e8a8c60a5163094b12606e90c244ca2c75ceba4912a6e0e6460ddf9da0976758aeb82d3bfb3e201bd7677a89fc9dc31c23c9b7632e1d859db516adc1c9368e1618784dece576443ee80e22c7e3c0ff4730c34c3aae47ca8ffb02374b5d0862f8c1a3001cd526334a886caaa0dc28f36b57b01a343244390c9be6ba1835af75c71cf65bde71c80ac5b9d69bad8b17c68ed4791d8fa37d1aeb2d48ecf01d99763fb5a45750b0ccd443a4575ac1f70afd2e97f28c74db42e803b7f44197142cd6d1ed3cf0f95976e566a74b3abb8b7deaa7053fc2290aeb2eb496369aeb387667f6cc29d00d5198406689e4af5b31e1905fa5d2d9070103103e9d7d1100ab51c868e5fa37208474818316e6d5301ac26e0f01cb9176eac46b93220f02de48cc0a51f639ad5f5b8dd4dc854521bcca7312aea2111f56c16887a62c41f1bce8c120f746f31528c0c571b8679070ebb470c9a86722ec3bd3b7a6a546a0be6554bfb1c1055d64e6778e1214e6bb31abfd4abdf54e58052133ae8ec2a3383dfd3deb4eb4e490fe18e0faca38b7953619bc2abb410c9bd7db9a75ae6247377ec39d6dca0aef7c66fd568587361950a67846462a42ffed2cfee43169b8889b76604ac922e2291d2ee05f21b9d9175ae65a4436fb1a20b90510b5d173fc65b9221d497796f239b76fd17135c18680b889c76fe3e9503fc585bde715c0ee990038847002a93be7f5f84b259bfb1c73987a0cc519cd5d80d3a3974f72eb1aa91fd30cb790645cf8126dddeeefd79169e99d00fdbf7e3bf09458bc92c4a60e6713af0742df7673bad37f1dfa69f996db2d01096ec2b58ed0a4e2fffe222f50076889efead069b7b21b53320b39088ed9cf0f1e7d51fdd87bc30155ad8caf79b8775fc8ca5fe7103e81d4ed9ac5c9a9f668f08e9214e721371c673aa3d74a8e9d10fa7c60e74bc6be3d3cbe16b783f437bc49a3d0fc532a13d98fc98e10ab14c0954230810848a869e7bde221bac3309872ac661c1fc92ef952a3162bb99b48af37c7deecb796a13276e40f0cc00f6c10955618a40adf865e43b12d548c5b3</body>
</message>



*** User 2024-04-26 13:10:00.322 ***🔗
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-04-26 13:10:00.323 ***🔗
alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2024-04-26 13:10:00.324 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_25.html



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