=== 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",
           ip_tuple => {0,0,0,0},
           ip_version => 4,proxy_protocol => false,shaper => c2s_shaper,
           tls =>
               #{module => fast_tls,mode => starttls,
                 certfile => "priv/ssl/fake_server.pem",
                 ciphers => "TLSv1.2:TLSv1.3",verify_mode => none,
                 dhfile => "priv/ssl/fake_dh_server.pem",
                 protocol_options =>
                     ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
           max_stanza_size => 65536,c2s_state_timeout => 5000,
           backwards_compatible_session => true,max_connections => infinity,
           reuse_port => false,connection_type => undefined}},
     {watchdog,<0.1488.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
          {start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
     {preset,"ldap_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@36479f279a1b.2024-04-12_09.30.15/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-12_09.30.16/mim_c2s_suite.too_big_stanza_is_rejected.2.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@36479f279a1b.2024-04-12_09.30.15/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-12_09.30.16/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,
              ldap =>
                  #{filter => <<"(objectClass=inetOrgPerson)">>,
                    base => <<"ou=Users,dc=esl,dc=com">>,
                    vcard_map =>
                        [{<<"NICKNAME">>,<<"%u">>,[]},
                         {<<"FN">>,<<"%s">>,[<<"displayName">>]},
                         {<<"FAMILY">>,<<"%s">>,[<<"sn">>]},
                         {<<"GIVEN">>,<<"%s">>,[<<"givenName">>]},
                         {<<"MIDDLE">>,<<"%s">>,[<<"initials">>]},
                         {<<"ORGNAME">>,<<"%s">>,[<<"o">>]},
                         {<<"ORGUNIT">>,<<"%s">>,[<<"ou">>]},
                         {<<"CTRY">>,<<"%s">>,[<<"c">>]},
                         {<<"LOCALITY">>,<<"%s">>,[<<"l">>]},
                         {<<"STREET">>,<<"%s">>,[<<"street">>]},
                         {<<"REGION">>,<<"%s">>,[<<"st">>]},
                         {<<"PCODE">>,<<"%s">>,[<<"postalCode">>]},
                         {<<"TITLE">>,<<"%s">>,[<<"title">>]},
                         {<<"URL">>,<<"%s">>,[<<"labeleduri">>]},
                         {<<"DESC">>,<<"%s">>,[<<"description">>]},
                         {<<"TEL">>,<<"%s">>,[<<"telephoneNumber">>]},
                         {<<"EMAIL">>,<<"%s">>,[<<"mail">>]},
                         {<<"BDAY">>,<<"%s">>,[<<"birthDay">>]},
                         {<<"ROLE">>,<<"%s">>,[<<"employeeType">>]},
                         {<<"PHOTO">>,<<"%s">>,[<<"jpegPhoto">>]}],
                    search_fields =>
                        [{<<"User">>,<<"%u">>},
                         {<<"Full Name">>,<<"displayName">>},
                         {<<"Given Name">>,<<"givenName">>},
                         {<<"Middle Name">>,<<"initials">>},
                         {<<"Family Name">>,<<"sn">>},
                         {<<"Nickname">>,<<"%u">>},
                         {<<"Birthday">>,<<"birthDay">>},
                         {<<"Country">>,<<"c">>},
                         {<<"City">>,<<"l">>},
                         {<<"Email">>,<<"mail">>},
                         {<<"Organization Name">>,<<"o">>},
                         {<<"Organization Unit">>,<<"ou">>}],
                    pool_tag => default,deref => never,
                    uids => [{<<"uid">>,<<"%u">>}],
                    search_reported =>
                        [{<<"Full Name">>,<<"FN">>},
                         {<<"Given Name">>,<<"FIRST">>},
                         {<<"Middle Name">>,<<"MIDDLE">>},
                         {<<"Family Name">>,<<"LAST">>},
                         {<<"Nickname">>,<<"NICK">>},
                         {<<"Birthday">>,<<"BDAY">>},
                         {<<"Country">>,<<"CTRY">>},
                         {<<"City">>,<<"LOCALITY">>},
                         {<<"Email">>,<<"EMAIL">>},
                         {<<"Organization Name">>,<<"ORGNAME">>},
                         {<<"Organization Unit">>,<<"ORGUNIT">>}],
                    search_operator => 'and',binary_search_fields => []},
              iqdisc => parallel,backend => ldap},
        mod_roster =>
            #{iqdisc => one_queue,backend => mnesia,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_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_carboncopy => #{iqdisc => no_queue},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false}}},
     {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@36479f279a1b.2024-04-12_09.30.15"

=== Started at 2024-04-12 09:30:16


*** CT 2024-04-12 09:30:16.969 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_24.html

*** User 2024-04-12 09:30:17.046 ***🔗
alicE_too_big_stanza_is_rejected_9@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-12 09:30:17.046 ***🔗
alicE_too_big_stanza_is_rejected_9@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f63b10d98ef639d6' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-12 09:30:17.055 ***🔗
alicE_too_big_stanza_is_rejected_9@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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-12 09:30:17.060 ***🔗
alicE_too_big_stanza_is_rejected_9@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzkAbWF0eWdyeXNh</auth>



*** User 2024-04-12 09:30:17.062 ***🔗
alicE_too_big_stanza_is_rejected_9@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-12 09:30:17.062 ***🔗
alicE_too_big_stanza_is_rejected_9@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-12 09:30:17.062 ***🔗
alicE_too_big_stanza_is_rejected_9@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e70c0ed0bab8662f' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_9@localhost'>

*** User 2024-04-12 09:30:17.062 ***🔗
alicE_too_big_stanza_is_rejected_9@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 2024-04-12 09:30:17.062 ***🔗
alicE_too_big_stanza_is_rejected_9@localhost out
<iq type='set' id='ef94d3a75635bca8c092f24b9049158c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-12 09:30:17.063 ***🔗
alicE_too_big_stanza_is_rejected_9@localhost in
<iq id='ef94d3a75635bca8c092f24b9049158c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_9@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-04-12 09:30:17.073 ***🔗
alice_too_big_stanza_is_rejected_9@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_9@localhost/escalus-default-resource'>
	<body>9e69a38f06d06a805471f454634351bc266a9e8d40ae219e740776b8d858fe2bf3d36060f9764ce10ca90f2545d5c6bd5e14a6c3a756b41a4276be01986477b3a199b3a99ed43eff3cc87bee6255b037437bb38b0508b66e92fe332e94e3b99fe96d18e56e96675b4f832b215a71688b051241aa6ccdd7908c82e9488aeb1cfb64d2341691eb9a7ad66df11b692108a8a202f3656dc0e484892c8b2c506612856ea5935ecb9d5e532d30fadf4b5ab40f19bf5ab8de18515e3c8e2ec1baa2c93a1fcff48132297f8d244a2a860a8e474bcac02ec418719af966d78c2c7d5487062305ca6eb6039eddf2a0d455f25a0135398d9a21a3b991104a665cf5c3946b4f017779503f1c69484588ffdf722facec711c6068766425748a03889cf259eb267fba0b32ddf63ddfe61bde3d0d5784e7d5fec7501608c965b94307fe92efd5faee93514fc678e6c31394995edbc828e0e878739d5a8882eb5e4d0d7e58be2482c19dc35f90edd10480c77ad263c23aa266ba753b89ba15d89cf9db54a5727af8b23738ee077df5d3a98fd3ab5e073dca9c6f08375a7e22a8ed6e93e7c532fae75a638a63fe2c0ccbeeb462b7eba815b04c5b3433ae266b7f6f3eeaa4cae32b1dea73c1b6a2eb92dfd972dc76e2b115883e611c3eedd66afcd28612f8393bdb2e2efb83608804e35c380aaeb7f8aed0b41eeb0c9dfba2ecfb578e2e86bda3169fa76cf458223db3a7d83435981f8869639399536ad8075d385c0087cd94b4798d158f763cbff1dad26de0beddc27a059559b9d8ee32732650a45603f3325b2f7b334adadb3f36ea382b21ef8220fe1be8637ac7cf8f6841511b507d8dccfd1d872f086c545573e626f42e60e224a9bcb791278cb5e6099fbb85a4e5b3ca19f1f08a73479b78f59c5207c01bc9ef628aa8ba87089505f53692a2d751a0fd2c013355149666d4b9a2ac3a03644af69139c75a21691fe35ce005cdeb40abd46964fbc063173efc481adaffa23f641cb736791162ccc27280cee3a340840e07974dcc85db5bc9f8f6ceb02471718bedd42b593622b9fe3a10fff3b4b86792ac781945db846defa57cde4c167faa61798b47b10cca5aaf63f4de99f8ef7332ee456aa7e5d37597e3c8109a92659a95f26c6ba7fb91ad90e2af4129a0c568914f621791a155359340e21caacd5b968013c8176436e947bf04e25badfc530e317ddb78974b0d3f83893bc397ff2a5f45648271f449bd6ff192cbafdb8ca6a9a9893bab94da7764c2717e93eb0463db976e75a86169c3fda8966249815121ea1ffb91e1127f19b5c7b44af446248c42f47616dd933e214ea43b837b3eda196a005d87dc2fca60b04cc0f6297a610ddfb47368e25d00958cb8d99dc919065b7744de5e921a545aba18361cd229f436df89fc8a23b27712c6b9b3072e83f1176ed47054a27a</body>
</message>



*** User 2024-04-12 09:30:17.073 ***🔗
alice_too_big_stanza_is_rejected_9@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'>element too big</text>
</stream:error>



*** User 2024-04-12 09:30:17.073 ***🔗
alice_too_big_stanza_is_rejected_9@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-04-12 09:30:17.074 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_30.html



=== Ended at 2024-04-12 09:30:17
=== successfully completed test case
=== === Returned value: true