=== 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"]},
           backwards_compatible_session => true,
           ip_tuple => {0,0,0,0},
           ip_address => "0",ip_version => 4,proto => tcp,
           proxy_protocol => false,shaper => c2s_shaper,
           max_stanza_size => 65536,c2s_state_timeout => 5000,
           max_connections => infinity,reuse_port => false,
           connection_type => undefined}},
     {watchdog,<0.1497.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@e830f4894539.2024-03-21_07.45.56/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-21_07.45.58/mim_c2s_suite.too_big_stanza_is_rejected.3.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@e830f4894539.2024-03-21_07.45.56/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-21_07.45.58/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">>,
                    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">>}],
                    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">>]}],
                    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,versioning => false,
              store_current_id => false,backend => mnesia},
        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,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              backend => mnesia,buffer_max => 100,ack_freq => 1,
              resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        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},
        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@e830f4894539.2024-03-21_07.45.56"

=== Started at 2024-03-21 07:45:59


*** CT 2024-03-21 07:45:59.129 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_24.html

*** User 2024-03-21 07:45:59.223 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:45:59.224 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='10ac91183895ee3e' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:45:59.236 ***🔗
alicE_too_big_stanza_is_rejected_12@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-03-21 07:45:59.241 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzEyAG1hdHlncnlzYQ==</auth>



*** User 2024-03-21 07:45:59.243 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:45:59.244 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:45:59.245 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='001c92938092a428' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_12@localhost'>

*** User 2024-03-21 07:45:59.245 ***🔗
alicE_too_big_stanza_is_rejected_12@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-03-21 07:45:59.245 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost out
<iq type='set' id='1185f0ea406d2e44cb6d34fc2e2203e1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-03-21 07:45:59.245 ***🔗
alicE_too_big_stanza_is_rejected_12@localhost in
<iq id='1185f0ea406d2e44cb6d34fc2e2203e1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_12@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-03-21 07:45:59.263 ***🔗
alice_too_big_stanza_is_rejected_12@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_12@localhost/escalus-default-resource'>
	<body>025662d83096efb42f32220b1563cd4496e4d015433c3641928508775985446ba1625d8b2aaa8251fcaaba9eb8ba923dc5dfe993270fc41611fd12b6f8b121109dc235c0257456dfd5f6406363f66edb56fba8588f9f3588a7ee18153b62dd9b16c197365ae1d93e477d9567d83cb7826981d4b46fa5e0cd3a47a0c0634b1410183fd8edc65fa7df91929469ad76fb58076f91d0f830f158a39cf325404527af8e5d92c33c6ffa4392a7af29e26733cfd4b67f458907e973b6c4f9e7f648a15a5ec93f7a4e3acabe257230c2ba296ea7b46a0aa0ba30e267ea5c7e803e71d68b29cd0d510f532d0237cf4c2e332e7a7bdfd90059f931c99e08cba12b7aca4d82f49af91a7c2a59d4bae7f9c4c726dc70c978ff30c24075800cc3cebf2fae41498e07be6944eb98454e8292304fa7caec94b4583cbbe16c3330e76e309c324088bc55df7d8519f96d22a32c8b939fa2abce94fb6f4e76c98235cdc9a1a65e58a9d0f341ff8d8ea859f012f58f9de851096ba05b054a94197bc19393ba52d41ab7c5ecdf4e3aeed8eb5b5686feac5e19bcf6c2af3a6af2874be0c8d792b1feb6bc6c721d64857c682f0403cd5b021e4e0fc3d8f646ccdef43edd7129343bac7f32a6c49ec12228054151007158aacb46ce578b86ae389eda7b7a60b284140b16de49b2fba2208a926aad83b3249f3598e8f031935681720699057de275582e6deb4610166af12c06a20aaaed547740809c5fd212b880c6d2cb33c62a9a8c3544a8236d32f1941ea61fdb5404dbfddc605920c85bc9e3e76e59ddbb7a41784ba480572a4c3aab40b9d6b3f7f963477a91ae79c33a61bfa49011eb087db9274267f554b4c52a0780e2d5ae807baa172d175bd96987dcb0c2df2d9dda8fb7e9566077b01df1aa6ec14aec1fc2269e764dfc089f622d856efcce1b8da5b64ef1d907423259dbff8be52edd81705109e3ecab96dad50ff2f274a0e4fb6f6ec68a979cc711e53bb6bb7f00a28b4d83261e0344083ebbc05aa39d1a5cad4a04a4f4271434d099de35b083df4169e5a5c25a3c1292a9492b798e06ca98c79537d7ab096561aa95c822951903fff721a94ca1a3684272f02609e2858cb1535d6de299e92dff4508397a61de4e4f7e0a6fd90aff8979b4c792c9670c697ca5219275275e3fcf0b1b6f511e26466d71985b228957e1c30d682ad301c6219820ec37b5ed29617c5b00e08679510b8e1a2bfff39e4930d289151cc096bb8da758956eb04a9920e7333eb39a1732358e44b5e4ff9c04fdd617c85becf96c1cee5fd1319b9a0bc94844fe5b98d65a8f99d2b97f09539c4f433b878c1de1745eebb3b305e79940f6b9fdc2a569cabc036a4adad0b5f8e68b10476e0796d68178ed2513fc0ba5058f387510d0e46a2a766e4d33596d5481560c4e08a2552827c6b134c18177937fff89</body>
</message>



*** User 2024-03-21 07:45:59.264 ***🔗
alice_too_big_stanza_is_rejected_12@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-03-21 07:45:59.264 ***🔗
alice_too_big_stanza_is_rejected_12@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-03-21 07:45:59.289 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_30.html



=== Ended at 2024-03-21 07:45:59
=== successfully completed test case
=== === Returned value: true