=== 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,
           tls =>
               #{module => fast_tls,mode => starttls,
                 certfile => "priv/ssl/fake_server.pem",
                 ciphers => "TLSv1.2:TLSv1.3",
                 dhfile => "priv/ssl/fake_dh_server.pem",verify_mode => none,
                 protocol_options =>
                     ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
           ip_address => "0",ip_version => 4,
           ip_tuple => {0,0,0,0},
           proto => tcp,proxy_protocol => false,shaper => c2s_shaper,
           max_stanza_size => 65536,backwards_compatible_session => true,
           c2s_state_timeout => 5000,max_connections => infinity,
           reuse_port => false,connection_type => undefined}},
     {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,"odbc_mssql_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@c558b6ad2bd8.2024-02-26_15.40.27/big_tests.tests.mim_c2s_SUITE.logs/run.2024-02-26_15.40.28/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@c558b6ad2bd8.2024-02-26_15.40.27/big_tests.tests.mim_c2s_SUITE.logs/run.2024-02-26_15.40.28/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_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_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@c558b6ad2bd8.2024-02-26_15.40.27"

=== Started at 2024-02-26 15:40:28


*** CT 2024-02-26 15:40:28.345 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_19.html

*** User 2024-02-26 15:40:28.466 ***🔗
alicE_too_big_stanza_is_rejected_8@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-02-26 15:40:28.482 ***🔗
alicE_too_big_stanza_is_rejected_8@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f2073b832be966da' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-26 15:40:28.485 ***🔗
alicE_too_big_stanza_is_rejected_8@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-02-26 15:40:28.496 ***🔗
alicE_too_big_stanza_is_rejected_8@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzgAbWF0eWdyeXNh</auth>



*** User 2024-02-26 15:40:28.498 ***🔗
alicE_too_big_stanza_is_rejected_8@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-26 15:40:28.498 ***🔗
alicE_too_big_stanza_is_rejected_8@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-02-26 15:40:28.498 ***🔗
alicE_too_big_stanza_is_rejected_8@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bb835df7ab0dcafe' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_8@domain.example.com'>

*** User 2024-02-26 15:40:28.498 ***🔗
alicE_too_big_stanza_is_rejected_8@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-02-26 15:40:28.498 ***🔗
alicE_too_big_stanza_is_rejected_8@domain.example.com out
<iq type='set' id='204e218582d5eca15106a098ebe20b4f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-02-26 15:40:28.499 ***🔗
alicE_too_big_stanza_is_rejected_8@domain.example.com in
<iq id='204e218582d5eca15106a098ebe20b4f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_8@domain.example.com/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-02-26 15:40:28.510 ***🔗
alice_too_big_stanza_is_rejected_8@domain.example.com/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_8@domain.example.com/escalus-default-resource'>
	<body>f84747b72155a4be7862d14120399bea128e80548a325f4e4e16e8c3e6a57d9f8282336609e3a2898d64a5d16a6a10de3d6c8dd9d38d52930178c6d4b12413afce65679196092aac7ec7587676061b6f25aff48ca2e1cf47be03bf304fa99ed02c928decb159f155d33f5c41698944ca48105ffcf22e9339ab56d5620fd0c5a913b2537a6b04756a61524f968cf249c8aadfdbb17aab93136531edf93a0bd61ea67cd364877272d01043fe859490b1e2c12dc74d310e25104aa77310f031ae91b354237439fc61ddcefe9d1511c11bfe4546b766d532f1330949cfaf2dfc3c3aab424449f9ae7dd387890143f1105b55186ae90680af1d58dab9ea0d3462ef9d9d90d83d4083a650cdb35ef94fbd6c55f5cf8df2031a02354b2d51186ede85646a590ec666f8c868b5f782dd4037aca3bc581738a863a2b3539c22eb33146f2d85c875b1e1f763940c73bfd03abb7f4c345ace3507c0cf6e4aeae72c639698f9a0c8bfebf8b68f105fbb2bd7ae92e1f2dfedac9c39c76844c27c199dd285aadf1eba83a8b6c8ffb25b12cb27bb8bd534b7ef71fc847443146277fe6b8ef70c5fbf95472cbe5f411872f84d7b50def3767accf3d334cb357cda68e40efb083e9c60b7baa9e6d94e0a2ef5910f6c5b186a326c5120ae85d5385321ba4b531544027f11bec75865ec57a3e7e3b3a12b77662d7f05b501d8b1d210045d226ad3eb073ed2cf4f5287752ad5a9a7176c71d91f74e928ad693eeed6d772b9f42b598cbe2e48b0b43682cafc580ba71a9e25da95acda288c40d171fad17778cec003e5be6f3f57bf127565a0c10596a79fd2975f3e8d19d00d91821ac39b5196406a5b700fdb0449a12b419d78597ec5950e03b75c5fc2c43e7f22b6b51c106300f565886cee845c57583181b211f2dbd943453e261b3ba970c555a28c9f61a6191e6a839a633ea05a2a3c55757039cbd79408c274468d256c13c56cab07a5da3395d24e6d8cb1e322bb8c87970a632db63c7d16fadf0a1d450e6f40b867fe7a6a74e14d283d6a135427a87245aafd11bb545d1035d056eae4b47f001bc0b2ba75702a73ad3bca9fdf58f88950e55591a59ecd4bd69a7f2fe830d9a479d5fc3c58e69207bacc341440462aa6456378c8f7457fd4a93fc05b1b179eb6c7a40d8f95a863857f78e5a6ac740be0ee4c1a4157f920286740f0e144e3a2334967e29109dfdf3df31eba474ff20f51307726ac0a53ca6ac7f1c27716d891fdfda7a59dfd701e05230a78513f46caa7b159599c476463426245c3edaa62346e51276c03cafa0880e59090edc0f1dc8fe3bbd474ebfca14be4abbb6cbb848e54d6449c475670e0ecd6a19af92d1404612297d59a7bfd9bfc3dc9f65e1ba47eed32f7510027536c45fdcd0f5ea22113bf2b7212d6f0cb104138ecb20ffb96d17b591a28c2ccec0fbe</body>
</message>



*** User 2024-02-26 15:40:28.510 ***🔗
alice_too_big_stanza_is_rejected_8@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-02-26 15:40:28.511 ***🔗
alice_too_big_stanza_is_rejected_8@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2024-02-26 15:40:28.519 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_25.html



=== Ended at 2024-02-26 15:40:28
=== successfully completed test case
=== === Returned value: true