=== Test case: mim_c2s_SUITE:too_big_stanza_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,
           tls =>
               #{module => fast_tls,mode => starttls,verify_mode => none,
                 certfile => "priv/ssl/fake_server.pem",
                 ciphers => "TLSv1.2:TLSv1.3",
                 dhfile => "priv/ssl/fake_dh_server.pem",
                 protocol_options =>
                     ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
           ip_address => "0",ip_version => 4,
           ip_tuple => {0,0,0,0},
           max_connections => infinity,reuse_port => false,
           connection_type => undefined,proto => tcp,proxy_protocol => false,
           max_stanza_size => 65536,c2s_state_timeout => 5000,
           backwards_compatible_session => true}},
     {watchdog,<0.1421.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.92493729>},
          {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@cdb4b709e1db.2023-11-16_09.06.27/big_tests.tests.mim_c2s_SUITE.logs/run.2023-11-16_09.06.28/mim_c2s_suite.too_big_stanza_rejected.386.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@cdb4b709e1db.2023-11-16_09.06.27/big_tests.tests.mim_c2s_SUITE.logs/run.2023-11-16_09.06.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@cdb4b709e1db.2023-11-16_09.06.27"

=== Started at 2023-11-16 09:06:28


*** CT 2023-11-16 09:06:28.526 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_21.html

*** User 2023-11-16 09:06:28.603 ***🔗
alicE_too_big_stanza_rejected_10@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 2023-11-16 09:06:28.620 ***🔗
alicE_too_big_stanza_rejected_10@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='06d52bd765d7a655' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-16 09:06:28.625 ***🔗
alicE_too_big_stanza_rejected_10@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 2023-11-16 09:06:28.636 ***🔗
alicE_too_big_stanza_rejected_10@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX3JlamVjdGVkXzEwAG1hdHlncnlzYQ==</auth>



*** User 2023-11-16 09:06:28.637 ***🔗
alicE_too_big_stanza_rejected_10@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-16 09:06:28.637 ***🔗
alicE_too_big_stanza_rejected_10@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 2023-11-16 09:06:28.637 ***🔗
alicE_too_big_stanza_rejected_10@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f8c8b21b811e9d93' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_rejected_10@domain.example.com'>

*** User 2023-11-16 09:06:28.638 ***🔗
alicE_too_big_stanza_rejected_10@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 2023-11-16 09:06:28.702 ***🔗
alicE_too_big_stanza_rejected_10@domain.example.com out
<iq type='set' id='cba9741e19addfe7f80d46798024d71b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2023-11-16 09:06:28.703 ***🔗
alicE_too_big_stanza_rejected_10@domain.example.com in
<iq id='cba9741e19addfe7f80d46798024d71b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_rejected_10@domain.example.com/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2023-11-16 09:06:28.710 ***🔗
alice_too_big_stanza_rejected_10@domain.example.com/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_rejected_10@domain.example.com/escalus-default-resource'>
	<body>6df1de99bf444fad7b232495540d2ddf0cf093f63b3e02650eef14b39aad9b7be9508478ca32647a7f01d0fef16723767d2e51c4fc194a19c74ee9ac3959b50e0d2bd3e5cd72835d1743aa0669c1328e9b0bd300c4dbd5b7d5aad1af37fd8429e26383bfcdacb8d4789ef43caf1efbd7367fac2235c6ebf14f5eaa8bc63a09e54ab4e80616c43473b2f4efe3da3d9d98199584df4797cb684ae65f01b4b7f70126057815ab6fc8b7ce48c0d467990f427c355d57eae1276dbc5a5af20bd1a9765d857ef88a488fb032a04bb950319c1e1929b52d65b0b7f3756dc29b12e59a9d38a0d5d400be266fd4896f8c4d6e44bc6c0138303602bbe6ba3dfbf0a60b2334f43697b55020b414b9c5a756483286124e5a5500b6309269d65deeb7dd5410d7a8973ed7a99265902a418a279d5add364ab81d7151fbad4ce0ab685d816efc8e3c56e42df2bd30bbe3510716ac7845a0bdee585f245ae389f1f39d6fcea1b26e65b52470d472ae0a11378f15e3ba55a7946396c82b5a3759094689965b22f62736cb4e0a9d5174cd7f36e82656b99cf41247dd4c61937833217a094f50b8d2d513f6efb19855563acde9fe6a45690f9eef72d5ca64f89565bdf1b50369bec0e4ff1b6f62a84e582f6c16a189fdb3139b2a892dd8309a6f76ba8161fceb7df469a0b19773996d5185c45ec3bbf6889c6b1c87786e4e8e63950593f719308ff1c1a2b1c17efa5ca991e016305b26a24f3fc914bc9b5a7ca2a8609c9c10c709bb23e4c15c1670ec31cce98cf930120d1d7176181f0e7a197b702b959c36af1798a98a559ecaba2ce89c5523d1e2981b6a111b6a5e2c1a29611b90ee78ae4c1c1ff95ad5fc1afb5355c4221b271a3bf8f7e8697d1e7c0f6fd9b84f3ddbdd82bd9f501cc0016ee5b1cbdbf798f3e242d054328b3b7531abbc7c2da3f8c3dd6469300636beeac5f854909d65be3353639b74488aa48843d2887d54367ed82e476ccfc249619866acf5504bd22b0362e57c9141be71f9e6b77ed8e814238208bb1d5ec50e6fae0de8db6e43e5fec360ff90fc8eaccade6d19b12c00b223e899d85cfb88e2a79ad756d4bb4a45027f1557a864fc79944130413f75a3e05e81ddd60364a9bad13480f8c208b9c31b321ae3ee62c052b471584f69cd8ee798f4bede9cfc5596462c23e28d95b40eadd742da55faaaec5f9c3bf92284f4687b26b6a8faf135d59a2c5f7f888f82d435cbe61e2e344eaa0cbb5795626d43a9d7c9cdac3caa39c21fac460909da5621875fea513311704eaf3ce701109691082a6606ade65ecb041e7b93bf6bc6725c728066e7d9b86652b89668b11d793f3e7ad61fab57740aed66ffb7fef20d41157212b1f4c20e66460df01bfa43fe297dd3c5a012507229a0aec1b1e4ca33c20739832ff9ec34575552ce6a73692cb73c65f92e186f55be</body>
</message>



*** User 2023-11-16 09:06:28.711 ***🔗
alice_too_big_stanza_rejected_10@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'>child element too big</text>
</stream:error>



*** User 2023-11-16 09:06:28.711 ***🔗
alice_too_big_stanza_rejected_10@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2023-11-16 09:06:28.713 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_27.html



=== Ended at 2023-11-16 09:06:28
=== successfully completed test case
=== === Returned value: true