=== 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,
           shaper => c2s_shaper,max_stanza_size => 65536,
           c2s_state_timeout => 5000,backwards_compatible_session => true,
           proto => tcp,ip_address => "0",
           tls =>
               #{module => fast_tls,mode => starttls,
                 ciphers => "TLSv1.2:TLSv1.3",verify_mode => none,
                 certfile => "priv/ssl/fake_server.pem",
                 dhfile => "priv/ssl/fake_dh_server.pem",
                 protocol_options =>
                     ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
           ip_version => 4,
           ip_tuple => {0,0,0,0},
           connection_type => undefined,max_connections => infinity,
           reuse_port => false,proxy_protocol => false}},
     {watchdog,<0.1425.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
          {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@71655937ce6e.2024-04-16_11.59.01/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-16_11.59.02/mim_c2s_suite.too_big_stanza_is_rejected.259.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@71655937ce6e.2024-04-16_11.59.01/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-16_11.59.02/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,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,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_presence => #{},
        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_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{inactivity => 30,max_pause => 120,max_wait => infinity,
              server_acks => false,backend => mnesia},
        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@71655937ce6e.2024-04-16_11.59.01"

=== Started at 2024-04-16 11:59:02


*** User 2024-04-16 11:59:02.323 ***🔗
issue="ct_mongoose_log_hook created log file", ct_node=test@71655937ce6e, reader=<0.1459.0>, reader_node=test@71655937ce6e, writer=<0.1461.0>, out_file="/home/circleci/project/big_tests/ct_report/ct_run.test@71655937ce6e.2024-04-16_11.59.01/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-16_11.59.02/log_private/../../../mongooseim@localhost.log.html"
*** CT 2024-04-16 11:59:02.323 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_19.html

*** User 2024-04-16 11:59:02.425 ***🔗
alicE_too_big_stanza_is_rejected_6@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-16 11:59:02.443 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bd3167ee0f0cbd68' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-16 11:59:02.447 ***🔗
alicE_too_big_stanza_is_rejected_6@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-16 11:59:02.457 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzYAbWF0eWdyeXNh</auth>



*** User 2024-04-16 11:59:02.458 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 11:59:02.458 ***🔗
alicE_too_big_stanza_is_rejected_6@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-16 11:59:02.459 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='982c5f864a188800' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_6@domain.example.com'>

*** User 2024-04-16 11:59:02.459 ***🔗
alicE_too_big_stanza_is_rejected_6@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-16 11:59:02.459 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com out
<iq type='set' id='0cef3b0f49a560f73db64865cb93513b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-16 11:59:02.459 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<iq id='0cef3b0f49a560f73db64865cb93513b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_6@domain.example.com/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-04-16 11:59:02.464 ***🔗
alice_too_big_stanza_is_rejected_6@domain.example.com/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_6@domain.example.com/escalus-default-resource'>
	<body>17dd3d7e8eef052adb620b5b5742ffbbb0bb1ff34935ef6492dbd5bf1a7d81ee72449b170c1b3ca37fd4be3ad8a843b6d4dc6e334aa0564a91ce55b7c820a13ef109a77f0be2e429e60975e0e484fd2f5c1431e0961667357386054cd5d31b253ef64c978a48ecf5ebd5f02eb33a91e3227be99bb94709b17d050e1f91d70ccff1015d81cfbb5e7a0dac65194d194f4cb39b36b29ad9b69001655e8df40da9a74784dd1092e07497b9d5e91dd87c5238cf7299e684ac922e8a19070aeefb4713f9ffb0662b1f666cf790441de94ff77b1bdf55aea988bc52d3fd6e978758976b3c0d570992ec92af63d5a0e0f0de283d75d7b321566a04545e3b3967b383076d1f96e40f9aa6e253cbfa68b7fe3ebe0e22a8925c8c58fee4cb63d26215ea109aa0c08d746a1faeecb73b9107eec105a3cbcc37d6c8bb6e50d71258777386b038b727adadca0d6913d8af20801d099f4dba936ed0f131584407228431cc23f29d0065ecb7676b55383be538b8a88c3e91bfa51b6fdbcb60061a6cbd2c8ba1a93bff184262144861e74703da03d7241f08381e5aaf7bca22ab2c2ed4752acd04f72aeddf3223d3c208cc6e47690b0f8ef63016234da3ed3938620a450134868b321dad1a369fbd1bdbf36333c047a5a2bff01dc6bdc777d6441b56725e0026502fbde84ad23c08a147a8b217a934811b09289afe10f6591374a5a0c31c21f766c7a2bb36628962df48ac1c9f7706548efeb8a1f8dadc90e4a5e0926fd5b56548d07f246174f28f1c03879597d1fee9174c8caeed2ff99e7aab3d880aa594a83a6695cdc216d68e3c0805468344a3c3e2ca9463d5de2bfdedfbc738d2b1df0cb5aac92a736011287a09a1977f191c59d59a7fb6b0c6cc734a9cccf682ddf8fa4c4313bd81e8b1c6432822e75656e518bb03697d6ced19433ba324e42fb24a0155ae51e30eac975300e56d1efe1d5b941966726c54d970b48adb353671b774ccc82e4897478c64c346c6acda16a9691b403c6e235bf8b502140c59ccca60c59e6cf57947ebac4b2b0ff0b923526e9b3aca91f54bab376c27177d75327bb628340ad0fab92cc4152d0b46fb2e55376cd9e68a64060705e42c4a3e2827034d514bf31d2f69fd12dba144ce9ce9ee61e8f8d5074822a6fded43590bb90eaa935d9ae79d5fc607e220b3e32ca774ca149da92ca0aa29ba1b0cc0616a52db28d525bb158c6a705eb99d9c6d3f20bb7b51c79cd90e5f97334839b2698cb6d2c20a2dd590d6560e78e4edcba1a556013f61bfdcfcd8b4a126f04aa79b3810624cefaedf9d7ae18ab9da8d569261ec90978853f548ac983c0ef2196a6c0146fea8bd1906aafbdd9ff01e26dfdab5cd0016f3aa64cdf26157924b22922ddb1bf0fb5f5e01f44674965d1c5d5093d5838cb6b797d743a049e4eb2aa26977e7106c56de185797c3</body>
</message>



*** User 2024-04-16 11:59:02.464 ***🔗
alice_too_big_stanza_is_rejected_6@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-16 11:59:02.464 ***🔗
alice_too_big_stanza_is_rejected_6@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2024-04-16 11:59:02.465 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_25.html



=== Ended at 2024-04-16 11:59:02
=== successfully completed test case
=== === Returned value: true