=== 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",
                 dhfile => "priv/ssl/fake_dh_server.pem",
                 ciphers => "TLSv1.2:TLSv1.3",verify_mode => none,
                 protocol_options =>
                     ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
           shaper => c2s_shaper,proto => tcp,ip_address => "0",
           max_stanza_size => 65536,
           ip_tuple => {0,0,0,0},
           c2s_state_timeout => 5000,backwards_compatible_session => true,
           ip_version => 4,connection_type => undefined,
           max_connections => infinity,reuse_port => false,
           proxy_protocol => false}},
     {watchdog,<0.1533.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
          {start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
     {preset,"internal_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@8dadd8a9c704.2024-03-29_09.14.50/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-29_09.14.51/mim_c2s_suite.too_big_stanza_is_rejected.259.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@8dadd8a9c704.2024-03-29_09.14.50/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-29_09.14.51/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => mnesia,iqdisc => parallel},
        mod_roster =>
            #{backend => mnesia,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_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
              ack_freq => 1,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              resume_timeout => 600},
        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,<<"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@8dadd8a9c704.2024-03-29_09.14.50"

=== Started at 2024-03-29 09:14:52


*** CT 2024-03-29 09:14:52.191 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_27.html

*** User 2024-03-29 09:14:52.253 ***🔗
alicE_too_big_stanza_is_rejected_18@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-29 09:14:52.253 ***🔗
alicE_too_big_stanza_is_rejected_18@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3217f0fff631f649' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-29 09:14:52.258 ***🔗
alicE_too_big_stanza_is_rejected_18@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 2024-03-29 09:14:52.258 ***🔗
alicE_too_big_stanza_is_rejected_18@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzE4AG1hdHlncnlzYQ==</auth>



*** User 2024-03-29 09:14:52.258 ***🔗
alicE_too_big_stanza_is_rejected_18@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-29 09:14:52.258 ***🔗
alicE_too_big_stanza_is_rejected_18@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-29 09:14:52.259 ***🔗
alicE_too_big_stanza_is_rejected_18@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9c2afda60542ac61' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_18@localhost'>

*** User 2024-03-29 09:14:52.259 ***🔗
alicE_too_big_stanza_is_rejected_18@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-29 09:14:52.259 ***🔗
alicE_too_big_stanza_is_rejected_18@localhost out
<iq type='set' id='a29c6229c9432bffb780ae0cb93cb239'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-03-29 09:14:52.259 ***🔗
alicE_too_big_stanza_is_rejected_18@localhost in
<iq id='a29c6229c9432bffb780ae0cb93cb239' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_18@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-03-29 09:14:52.285 ***🔗
alice_too_big_stanza_is_rejected_18@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_18@localhost/escalus-default-resource'>
	<body>180fcad3740118a2fc3cc44c28926f4b610c410de532885af22bdb3da817b081cf62fec6a92355000b9f1042a4051b0c3a66a680cb22411901ca65bbafebef412c4a7a69d5ae37f1fa2233a63524197fe76e88e68011a45c3fef238aeb5cc1fb75ed300ed3e16ee3bfecd817aa6590a7e66b8fcf94bbb5bb55af7456a8d9b458df1208165ec84bf5052d05d5cf0173a35eb9249771c058813f400725adbf6b47fb4f5044dc7a45b9b3bff07a6cc13683589c9ceca01080523e1d769e6b58a9837ad1a954fe11df87da8fabd09dabafae327fdd8893dc75b154fa146d7397a6274c29849189a489ff2b1ee2080f6c87a3608c17d6015a31218c8dfe896bcf8e62b8384612e7c2f219a51a19d8b14677b7c3c77195a4bdfc8a08a00733577f56b1cc5670849e5b38908e7c64d4e04f6a18d37878145b46c8fcb308213a8633b0a6196b4060cf630a4d6207f5b98091ad372f374dc55fff011e8c2916595f8dc608c158fadd1e661d9ef85957f73c4b55d8d10f7132fb1b8f3d2eceb03dcfd0eb3b271834e6eeaff3e1f190d4d2459f770931d736cf09c3431ab4682c8fae3ae3196d6b601a6c71e5ca56f42d841bdb91c2b3665bca255aca9ddc54e1f0f9539a82ca9c221b901324ddfc0b5cedc76d24f1ff428e6d747c197de380c7b9d83766da71086cfdde7bc0cacc10ba54bfc34f2d8c38ecb078910ec2cdf48992ecb8cc7685de6e3696f85c54d6e04086eca969dcd444809c76b48f29dfd36f829466cc99985551a4b48faa4e1d0f36dcb5c95add494f636e4ef3ed84333223ae62551f985c1d4bb264241e28b8b90055381f2910ba737590b083a570515dbbd162fcbd826b3a5ae6c447e7a8eb1c22b8ff355ec5cf96dc2c562b3d876b03ff8131939fa4838cabac74fb7238f6dc91654e99c91b1bff35014e7556eb2b16520e93b90efb1e440f7cb61dec42ae8c8dc9bde6bbe02cd047f2cd4e376120834fe45d015c87f679f4d5d130e24e7dbc96d624bff5d1a8fafc22cfc2eb0c184022e62480dc169ab2c3001926b7257d17d557a527f5a32304b4cec720d7c7f598cd1066b785957c4e369b50d6f69258bac81377847b2e34db467ff23359aaba4b87d7af612e14ea081059898c46d5f81c59366196d24f0dde3d797aec56c773005050b42d85ced88635c1626ca81dab04d8ad74ba8962db66de71677db7e96beafb9a52f26830189c7a3b7b6e2373f359eb5db0d7e43485df7b000c25eed3d946542edeaee864c39436e7efbb6186b5114479c8aca7133173223df93bef8d56def66045c2ebecb372a2697c7765d51ad437453b4d8de0b791bae61576634e95b080cdd0ff39bd3057a71f5811391727c1d2d67e58be7ffcae272592d359ac01c6e9c2737099ab6404b2db3cd2486379a1ea130a74de317b9d0b573c67960de3db3b65ab992392</body>
</message>



*** User 2024-03-29 09:14:52.286 ***🔗
alice_too_big_stanza_is_rejected_18@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-29 09:14:52.286 ***🔗
alice_too_big_stanza_is_rejected_18@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-03-29 09:14:52.288 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_33.html



=== Ended at 2024-03-29 09:14:52
=== successfully completed test case
=== === Returned value: true