=== 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,
                 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_address => "0",proto => tcp,ip_version => 4,
           ip_tuple => {0,0,0,0},
           max_stanza_size => 65536,c2s_state_timeout => 5000,
           backwards_compatible_session => true,max_connections => infinity,
           reuse_port => false,connection_type => undefined,
           proxy_protocol => false}},
     {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@a2fc54846062.2023-11-14_11.38.11/big_tests.tests.mim_c2s_SUITE.logs/run.2023-11-14_11.38.12/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@a2fc54846062.2023-11-14_11.38.11/big_tests.tests.mim_c2s_SUITE.logs/run.2023-11-14_11.38.12/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_amp => #{},
        mod_sic => #{iqdisc => one_queue},
        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_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_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@a2fc54846062.2023-11-14_11.38.11"

=== Started at 2023-11-14 11:38:12


*** CT 2023-11-14 11:38:12.860 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_27.html

*** User 2023-11-14 11:38:13.070 ***🔗
alicE_too_big_stanza_rejected_11@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-14 11:38:13.099 ***🔗
alicE_too_big_stanza_rejected_11@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7a1d51a29e77f1da' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-14 11:38:13.120 ***🔗
alicE_too_big_stanza_rejected_11@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-14 11:38:13.173 ***🔗
alicE_too_big_stanza_rejected_11@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX3JlamVjdGVkXzExAG1hdHlncnlzYQ==</auth>



*** User 2023-11-14 11:38:13.175 ***🔗
alicE_too_big_stanza_rejected_11@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-14 11:38:13.175 ***🔗
alicE_too_big_stanza_rejected_11@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-14 11:38:13.176 ***🔗
alicE_too_big_stanza_rejected_11@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='622be6bbb73808e9' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_rejected_11@domain.example.com'>

*** User 2023-11-14 11:38:13.176 ***🔗
alicE_too_big_stanza_rejected_11@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-14 11:38:13.316 ***🔗
alicE_too_big_stanza_rejected_11@domain.example.com out
<iq type='set' id='5c16532e455ced9fb589b476e97282bd'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2023-11-14 11:38:13.317 ***🔗
alicE_too_big_stanza_rejected_11@domain.example.com in
<iq id='5c16532e455ced9fb589b476e97282bd' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_rejected_11@domain.example.com/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2023-11-14 11:38:13.331 ***🔗
alice_too_big_stanza_rejected_11@domain.example.com/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_rejected_11@domain.example.com/escalus-default-resource'>
	<body>9e698f1531cfe459b52abd03ccdabc237979c50f2476e4b5dd77f63704e0ceec7be29fa798459c0cf59247d43bef4a95df1c4b7fde5c225ac6a7d7eba26bf8124bc34ded392f3fce56a6073b75217ae28f4190fa85db274db7583f2d8f3f274c077222b98cd925adab2cc90f4805dd0fa40a03630aa0d94f8135dffc1a3cf28a5d2c70f520f6192405e75671416f893d4e6d6655c44b0573f0261c8cc70b8e195052f8bc4088bd901baa77f85b932d39acbd09b5ce780c0a3e4172cca9a49171acc8fd4ce18f92f42fc0e3d538d15ad80b4e4eebe15b2af83ffdb731331406d9a2968e76597fbb591eda48c3913c800189f718e78a3da6f01f59d37b0ed1da2b7a0d6e55e5f614302113529941fce17afc0bf9bc4bc57b0c352b38ca68727c8e10c1523fbec6e9f8551a4eead41c5c4a6dda9d14deb3a7ba937fd44ce99b4ada9df6805c9edf2f0f8c9c3251f4a7ee33cdd2b1d6e659c88a5a477b98d780a2a2395f735927e50fbf9d493bc3c753c3118aa0fd4ddc135a9a29f9d775537cbdd41449e217648fc4dc2e9c1e86377cd90f7743e3e210f035a60165a2af337312d431f9d9b57a7a937354225ea205b0131e95c4e4c0553e8024b9f8137f0b95ad89db85468c6a7b91e4d9fceaf0b5904cbb0a7f11a0704822c10183501ec3dd252e78a0dd57dae5e206b844ea981bec1a170d5696e90db4b4088da6d4a5a0ad1876ab6af71de3c9873765c5cf0789f33bbf4328f8f5c63bfd28fbb1c89b2af6028399c7e1c1d805c6e03775d52487417f07fa71586c3d4838a62cddd061fe4307561c85f114278aff85313151e24880d20388ed68d67e29f4fe4d3b2ffa828829a7684f6bee5aacd161101a65197600bb3fd7c1556a1c6691352ad6308e0e652dc80cfc32eaccb2e62eaebcfe9cc0d37e22f66c1c8247ad826065022097e1da16dd546de2a2e312ae6f84a97a8e05504197ed032e565817868fa06cb3f93086741563d6d33c3348b3da72ef15076e5a5e8667949008330533de2bf816e1e78e8094f18ac7aaf251f2f636cd3a418de41f92397b4e18f340a1607d7aec2aafab523c09172ec3a331a15f2a97aa9cea4d9d261659fdadd23344b0f7d8cfbd06a3363200721d95b900b127c18a0fd7fb637871387f6c083c8b84f4f793a6fb6a74013a40803c43959078e604f3ae075f247681ec4597a7a200f7c0cfe9629c64bdeaef46ec25328750ace25bb43aac12a8f39396cad86037a0b27eb5b243536e1d55685fbfbaba611022d8c34cfa85e07aeeede02b90c27eb2183f9dc6ac8e7f28a38d673d235c49a869e713feda050e2a95133a452a54dab6c5e0c4be85f200677a11376ae9f7ddbfa3a1777cfb5933f43c37c77833eeb19b98300d63ecb046aa5e4dcb1c21e1fadf6583beb4812421a743936ea40662d79470affee0bc557cc5c668</body>
</message>



*** User 2023-11-14 11:38:13.332 ***🔗
alice_too_big_stanza_rejected_11@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-14 11:38:13.332 ***🔗
alice_too_big_stanza_rejected_11@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2023-11-14 11:38:13.334 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_27.html



=== Ended at 2023-11-14 11:38:13
=== successfully completed test case
=== === Returned value: true