=== 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",proxy_protocol => false,proto => tcp,
           connection_type => undefined,max_stanza_size => 65536,
           backwards_compatible_session => true,c2s_state_timeout => 5000,
           ip_tuple => {0,0,0,0},
           ip_version => 4,max_connections => infinity,reuse_port => false}},
     {watchdog,<0.1483.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.92493729>},
          {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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.mim_c2s_SUITE.logs/run.2023-11-17_15.10.16/mim_c2s_suite.too_big_stanza_rejected.898.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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.mim_c2s_SUITE.logs/run.2023-11-17_15.10.16/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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        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@1c2ae12cdb1a.2023-11-17_15.10.15"

=== Started at 2023-11-17 15:10:17


*** CT 2023-11-17 15:10:17.189 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_23.html

*** User 2023-11-17 15:10:17.251 ***🔗
alicE_too_big_stanza_rejected_11@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:10:17.262 ***🔗
alicE_too_big_stanza_rejected_11@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4b9f7cdb29ffa315' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-17 15:10:17.265 ***🔗
alicE_too_big_stanza_rejected_11@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 2023-11-17 15:10:17.272 ***🔗
alicE_too_big_stanza_rejected_11@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX3JlamVjdGVkXzExAG1hdHlncnlzYQ==</auth>



*** User 2023-11-17 15:10:17.273 ***🔗
alicE_too_big_stanza_rejected_11@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-17 15:10:17.273 ***🔗
alicE_too_big_stanza_rejected_11@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:10:17.273 ***🔗
alicE_too_big_stanza_rejected_11@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ef6cb6dc22a8aca4' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_rejected_11@localhost'>

*** User 2023-11-17 15:10:17.273 ***🔗
alicE_too_big_stanza_rejected_11@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 2023-11-17 15:10:17.328 ***🔗
alicE_too_big_stanza_rejected_11@localhost out
<iq type='set' id='b1e6ece138e6ec9d6c0f596b927f8adc'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2023-11-17 15:10:17.329 ***🔗
alicE_too_big_stanza_rejected_11@localhost in
<iq id='b1e6ece138e6ec9d6c0f596b927f8adc' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_rejected_11@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2023-11-17 15:10:17.335 ***🔗
alice_too_big_stanza_rejected_11@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_rejected_11@localhost/escalus-default-resource'>
	<body>da6df6df1c7298d80542c533eb978caa23341a38c4eae42584ebd183b14d4a9da9025d043bf2be90de47d8248ce16d3915b963da137417c149eec272c9b6cd21f53ddc36ec1a9a8d2d7abc63ac1c9155244f0fc8851a3a074d3be0d3c8685cdc7393e6466ce45f378d15b6dd5a74e647443b8c98f2812098b9e649b7c37c4eb5e19e979b5aa2ed69165c4db2242ab99892c34ec3f0e89104aca4ce18901f70cef4b64f93ed7478dddca2d932cf13c0100e6c86d640a3fe4dad0aad3c4c1957eeca7cee40edd6d6fbb17a1423698ec524e09daa5879e2e3958505dd5bc4c5f8234590b6aed5a4b7ce4b4d4de50f7b6b02d98ab34915fce0059ccf2653d33ed93705987d9447b929eb3953f367570b0e89b620a64bd473befbe93e7401a3c2ea85525274b63f71e93f0ba193ae930750b3875a1146fddb4de37c5cf615f0b0237193128d75680e50e8b756ced29448c373d9dff669f515faf87182fcdcdf98d8cd56e9c9f84eafb70f691a847b1390e51e69189de91676c46d7ba460cdf559a33a8b0df3d901b283afd87933d688b23a6e773ed17fca84ad43cdb0830f18b863e58237633a609b55825e5464d8c1539fddbbda0e9ed7362cc85537f02f8b0143119503509af22208a15afb30d848c799f6059cd2b349edcc2280f5ca6b186b8e44d887c27fe516f9f7c7bce15dbd47ae26e96d4678e3553f6cda9471a749cfd95febd0b228c60ce96c103ee98ee3234f837058ad2b09ee5fa75bcd69029ca05537ecdefb22c49ec126984738a2ff8db0eaa6688ca651ba5c2d094503b90badfdc36d5ba12317e50336437c5b03cc737eccd4b6a41045ea0eec700a0844809b5ef4c29c99837dd27cce0398509676a85108cdb0e7538b69d9d0076d4415f42b243a5ed7115d7e666f295410d7fda39a310143b3cfd06103faf03b92755ad8086b9a9b2d54160125390d9034873b0c4d1e6f6c80b62ea24325b3711e6b442dc3f871cd2339a7399ed3f6c3496b7e93dcb59450171fb024790299a63463b7039b480d8d5709e2832c93bee2f85de966648973848c8e0984630c64242da0be6f67f1a84482a8d699083ca55e7eb862e32747d32b9b67585b8a51894cf45e1a4ffd6a1523d6f917672f965fbd92ec148104bfdec665cf3d2dc4428ce21f91affa4a3e6d8f40a6a6a61c147d47a734c506185e720e432d8dbec2da24d5096a9643ebfd362f52009309375162fdda3c2335e4e3a0d6d38cc3456d679cff387202d0de335015b1406d8611701288ea9e97f23173f97c53e57409ac2a38496ded02465fbd6cdaff9837b82c60d223dd6fa20cac5cb6148405f495829f8b9ea956acdae7d80d51c2ff8a89582673efc33dbbb7b1ebd1580f0db495b71d6dea053b60b4852d91a4c83cc15edadb38a1a2efaa6b2100e3fa408d4f01d52804f263f2c2207f4453</body>
</message>



*** User 2023-11-17 15:10:17.336 ***🔗
alice_too_big_stanza_rejected_11@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'>child element too big</text>
</stream:error>



*** User 2023-11-17 15:10:17.336 ***🔗
alice_too_big_stanza_rejected_11@localhost/escalus-default-resource in
</stream:stream>
*** CT 2023-11-17 15:10:17.338 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_29.html



=== Ended at 2023-11-17 15:10:17
=== successfully completed test case
=== === Returned value: true