=== 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,
           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"]},
           backwards_compatible_session => true,shaper => c2s_shaper,
           max_stanza_size => 65536,c2s_state_timeout => 5000,ip_version => 4,
           ip_tuple => {0,0,0,0},
           max_connections => infinity,reuse_port => false,
           connection_type => undefined,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,"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@f463e50874ff.2024-04-16_11.59.24/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-16_11.59.24/mim_c2s_suite.too_big_stanza_is_rejected.1154.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@f463e50874ff.2024-04-16_11.59.24/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-16_11.59.24/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@f463e50874ff.2024-04-16_11.59.24"

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


*** CT 2024-04-16 11:59:25.122 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_19.html

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

*** User 2024-04-16 11:59:25.251 ***🔗
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:25.261 ***🔗
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:25.263 ***🔗
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:25.263 ***🔗
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:25.263 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9bfbb1778dc305df' 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:25.263 ***🔗
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:25.263 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com out
<iq type='set' id='80991a9b90aae373bba50a13f87ecf7e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-16 11:59:25.264 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<iq id='80991a9b90aae373bba50a13f87ecf7e' 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:25.270 ***🔗
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>6f1560e754fb77a37fa8d884440cc516b3b0c655a34161b8197bae5ae0db5a46a2e017e250326b4610ea867d7aa5215ed20a014ed33f6c7c3eea55d162c5fc8155695a03919249da2c36e52c27b20901ec35d854da95fac95439376d75aa7e073d32c5c29fa4d1e334f338ca9a8a7c94368473cb38b795cc3e44fca7c68eb87541cb968a71766b149915d6edd031d5e17852dc73109c6e67a0be153814e5d1e6011a739c408f5b509bd811bea65123d82bcd89853d77472a0e318d17060c2a69194969be21d58001b9803b9f12aae73a4f4f3d3c1b3edb1b526571bccb37885a680b9723dadf85b87e041c5db742efc12d36ad38368885e61a85f6289a6d9bb41d5eb0e908ffeebb91ccfa9248cddc0fc541f8b3333fa9cc783a02d8218fd1e96da673a37b1774de9720982f89414975effa3a28f7e54950e3b8cc5d16f712e3278f3c115765e36862498a1500c7aa96cb56a03d96053de2361e6af07c23baad52df8999af3756c62edbbb5ce6c02b2f381b244f0895481c59da5badc5ab3cbf1126038bd71fdfe79c22e57397b1e88f11e3eeba095c282ebddd2ea484dda9cf6bb057e6c5ad4a2914c0461607f3b6c7e2df9140f569421771a25fdf804283e62fb6e3dd640f2b05003a4464180cc54af4b9b5d42f7fc2936a665751f3a95030a8bf26e4f708a488dcb572f6028880b2f20cb8c8299afda403a081ead3d7b3d97042c934bf3a753f4890dbeab42fb1974ec2a9f18bcc77047490c46b834c65a44be66309226eaf235acdac031bc011834b7662016833d0be635edae312766dbf476f18dbab5d595ad050155f8f1509d9004ed5031a92fa6ff17342d5261acd348006c4623c1d0a3a0f5e9c88bcc9e3f871606dd56f6658ef30a3295585ff4bbb8c54bc7c025064836d6398ae067f5e5d98f5d8887e9e0f11f2eb57b720036c57fe9c5864865acb3ce36bce70b4d321f32e86408770f157098d3d54467c54d5f3f9143132719516e5136a7bd5a61359fa9fb5235f5e229c7542f638071fae9f41dc2ffef124c3a76bf337a9014eeee85a0f1999977ec5b1b5ef45afe0bb7ccf981fe6de4df72bd4329e83180f2d41433004844eae48c4e8cac04813f894b4baf6ffcf654ed9d36d1b3e1c8b0b93c41ec939e2df39455961df416d02cef9513383f1652895045b4dba00d8251772905601689f08f38f401fdcb107b2d774f942df369c404bee2582a9da14a5276884aadb39ace4c5e3ccb8d84cd8c97f0602ba9e3ff544db5a61897ebf9eb7e95e8141113f0e4c76e6cfdd3a0e05077cfaa636bf6556cdf3330bdba73cd234733ac2b8425cdf0b0a83c8429a46bed73ad9f7e6a1866da61f5d6c8333b1f2e6855e5d3a621809df825e325073f0373ea310d75e959c9b5a84d4eab451cde75aefd875f97a0f9c1122ace61a5664a3a2e8222901e5</body>
</message>



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



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