=== 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"]},
           shaper => c2s_shaper,
           ip_tuple => {0,0,0,0},
           ip_version => 4,proto => tcp,max_stanza_size => 65536,
           c2s_state_timeout => 5000,backwards_compatible_session => true,
           connection_type => undefined,max_connections => infinity,
           reuse_port => false}},
     {watchdog,<0.1487.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
          {start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
     {preset,"pgsql_cets"},
     {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@fe524ba9ae35.2024-03-11_09.05.30/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-11_09.05.32/mim_c2s_suite.too_big_stanza_is_rejected.644.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@fe524ba9ae35.2024-03-11_09.05.30/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-11_09.05.32/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{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_amp => #{},
        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_sic => #{iqdisc => one_queue},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => cets,
              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 => cets,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@fe524ba9ae35.2024-03-11_09.05.30"

=== Started at 2024-03-11 09:05:32


*** CT 2024-03-11 09:05:32.720 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_23.html

*** User 2024-03-11 09:05:32.821 ***🔗
alicE_too_big_stanza_is_rejected_10@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-11 09:05:32.821 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='53013baca681b1e4' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 09:05:32.831 ***🔗
alicE_too_big_stanza_is_rejected_10@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-11 09:05:32.831 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzEwAG1hdHlncnlzYQ==</auth>



*** User 2024-03-11 09:05:32.832 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 09:05:32.832 ***🔗
alicE_too_big_stanza_is_rejected_10@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-11 09:05:32.833 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3f23a400842c9f6b' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_10@localhost'>

*** User 2024-03-11 09:05:32.833 ***🔗
alicE_too_big_stanza_is_rejected_10@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-11 09:05:32.833 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost out
<iq type='set' id='ebc8fe979f228a2e8f7297d489876045'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-03-11 09:05:32.834 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<iq id='ebc8fe979f228a2e8f7297d489876045' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_10@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-03-11 09:05:32.848 ***🔗
alice_too_big_stanza_is_rejected_10@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_10@localhost/escalus-default-resource'>
	<body>ccab0d5bcf470c7198fe9a743f51a02c0ca79747c3e0a742f68a4586e322166f865d768c7dfc6155eb688d3bca058bc8c5407b66fd78956ccc83e1c628d5de7945f2d8bf270054f8fc127857bfb1710cc1a1233d3e09133798aeabee98d371f4bc50a376da3b332a88abd23c6f0d18d4c9332cf940a901e2d46ae914993be20bedcfff103d17043e72a71950a5d1158f262081bcb1fca4f5b8eaa70521a13dbcc337f4db1e09ee41ff84d51b7df573b3f4e81be6776d48938ea35e74b82c95dd63f56ec1b13d497bad6b8c00e693695e1ecac7e6f42bc277fcbff57b2510bea9c1798737441d5c003679a630d42ff63bcc14635b749a76deaf3bc02431d091f0bfbbebdc81bd3918c35a8cc79c6cc47ba50be9bad7e72f58fcac2857d96099a1f24d5f6f33864f4fa14c70a8bce8834b8a278f7f63c24c601b5415f8cf54bfb4a1a698f85ba480ea17863b41b369d38ebc52895afcd3ac25c8d3a1243f13b3735cafdeba44937a69442286d35d119fcdea00cd97222bda381c38814d7276c60f7351b851732ef0fc8d1f83ee8687ac08817d4c1a7064926b902d9009ab068ac98c5eead7c67fd95ebfcdf9cd1ad2c38248797de512ab2444c18a431fef9d010a4b84856a27797c3519e1d957f6a63659d45c90c82385e8b087c1067b0ea8d39f7c4b04fabeb722cdfb1c3aaef8a55a71b89b86929e85b224a9fb9b20df7fdcf8ea2eca3a2fa9a9ef4913dd840a5dfb2c3ee2cafdd7700d955fb13689bd29508360205812285e426fe8e33998ddb1cf429b677898dec0bb71c8e8cda56ad10f4c9ee575eaf35a0ddd9be7dbba904b817217505cf435939ef81e85ce26d5b267fde069bb34327f3f08fc3810b804b7f8b3db9d5fe6a46ec0077c5da6b68ad471939c74e1ae763bda831250d336f43fffd283b003a661d89652b35e7e126f52577c4c4b9b82aa34d03df2e8a5cbbfbae15c7aae05cbc8b28b4eaf0e260c034b80176911f2c103982866afcfa864eb37a65f6215eaf42c520774665ec9b9082aaf3d5b3f7e2950fe46fa1fc8c7d4e99936e2b4ca71d3c6d70ad4e2509c48c7c33fc1b0b05b506e35096dd29ebb0e1b7be900329a8f56cc4152fb6fbd8b671a59957c6d38dbe4afa4d8f1dcfa7f6884d5370a95802ec4a6d0c5c077c9c1908e500e0b02e2110e3672f1c9e759b661d51a7761d7ae7d6fd0b417a7f3fb1fb13ef874db5fdee34179066541c4e70a64cbff484d3ad1a8cb6c4c435f3ad3f6ed803df643cee709f9d900c0478c209290af96ad3cfae38ed9195d31f8bdecf19b4d80b8d95c134aa5234b2bb0d50db779ab6d6f8bea82b5e6bb2375804c84026c39e71bf272b9f175814cac20ddc52541310b9c81d15e1def0c2a8f72e8ffa09111adada46064b08c5a7ca37da3d3173b0566af860a9b900f183cc8a3773f48cdcc142176</body>
</message>



*** User 2024-03-11 09:05:32.848 ***🔗
alice_too_big_stanza_is_rejected_10@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-11 09:05:32.849 ***🔗
alice_too_big_stanza_is_rejected_10@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-03-11 09:05:32.850 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_29.html



=== Ended at 2024-03-11 09:05:32
=== successfully completed test case
=== === Returned value: true