=== 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",
           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_version => 4,shaper => c2s_shaper,max_connections => infinity,
           reuse_port => false,connection_type => undefined,
           max_stanza_size => 65536,proxy_protocol => false,
           c2s_state_timeout => 5000}},
     {watchdog,<0.1427.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
          {start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
     {preset,"mysql_redis"},
     {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@8a480c91a890.2024-04-12_13.25.32/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-12_13.25.32/mim_c2s_suite.too_big_stanza_is_rejected.387.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@8a480c91a890.2024-04-12_13.25.32/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-12_13.25.32/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_sic => #{iqdisc => one_queue},
        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_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        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_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,<<"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@8a480c91a890.2024-04-12_13.25.32"

=== Started at 2024-04-12 13:25:33


*** User 2024-04-12 13:25:33.151 ***🔗
issue="ct_mongoose_log_hook created log file", ct_node=test@8a480c91a890, reader=<0.1459.0>, reader_node=test@8a480c91a890, writer=<0.1462.0>, out_file="/home/circleci/project/big_tests/ct_report/ct_run.test@8a480c91a890.2024-04-12_13.25.32/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-12_13.25.32/log_private/../../../mongooseim@localhost.log.html"
*** CT 2024-04-12 13:25:33.151 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_19.html

*** User 2024-04-12 13:25:33.352 ***🔗
alicE_too_big_stanza_is_rejected_6@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 2024-04-12 13:25:33.360 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2234415077ef2d80' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-12 13:25:33.366 ***🔗
alicE_too_big_stanza_is_rejected_6@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 2024-04-12 13:25:33.376 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzYAbWF0eWdyeXNh</auth>



*** User 2024-04-12 13:25:33.377 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-12 13:25:33.377 ***🔗
alicE_too_big_stanza_is_rejected_6@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 2024-04-12 13:25:33.377 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ef1724486d6927e2' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_6@domain.example.com'>

*** User 2024-04-12 13:25:33.378 ***🔗
alicE_too_big_stanza_is_rejected_6@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 2024-04-12 13:25:33.378 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com out
<iq type='set' id='1fd9cbd4083c4029687bdd3937bdc993'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-12 13:25:33.378 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<iq id='1fd9cbd4083c4029687bdd3937bdc993' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_6@domain.example.com/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-04-12 13:25:33.384 ***🔗
alice_too_big_stanza_is_rejected_6@domain.example.com/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_6@domain.example.com/escalus-default-resource'>
	<body>efefcec242f3591579706ccb2f486b49d955f1460769b30f6cd7bda942472452e48b2fae96a8cc80c292676358e7a801c55f3d047f0993f76e9b49a6ef42e498ce665a2f35211b2e6ab5e792b5bf9ae6c45180ed4201d4800dab163c7da234c44daee72070621c38652e868a0504c626bf25aa8b9e77f7a282001e1b1e976f7d327af0eee9109412d591701534aa6981a7d7336c27e4cbcb1217e168796b5f28a547527b164d4d0b13417831224e2d8de61048104e6ba80c0c01069eb3572990a052b92cef665dcf8e89d2d2403418ca720b685446f518246448ca77188b8264b314bdcd13357ebde01e1abed1c7e7286398ac366374d5b5e5181448a5b9b81b17ed4c39e5dd5bba17e122ff55a4a275fe6174ffc43758da02ade56f0247bd61be4c492fcd884131e1ea64b1d37d2800c7e3990efc77c051b29fe47f671c4020e3ca717981937922d97f91c3e860c3da7899b6ecf21bf472b1902f95d50ac386d1b4d7b2f0c881a9b742534ada34c31ca86f9e81ca6e23f33b569d78235958cf6fe18381fdd3263df6e7229da17c43b39312217abc1da94e4e69826beec295dce5ac41bd9881cc05b6f26e6247e948ecb962d9ebfdcad604e7a6bc4f3de2031bd0622456dfbdb984dfb9a66b19096c4bdf33ebc1f163b9d89aa0afa759fd90c50b9145467149c4cca6d18142554eb509cfd46cbbe0a12339d3db4f2d7345618e088282f6991a9d26a6055d14443a3fcf9f65e0befe10fa15d2a8bc3518a38fbea7ea70159439bdcb4f0775680664e566dc6ff935f782561f9f26f1ae56ca4762305d809ec0b74e25dc34919a21fe3cfda60362321b3ba65185dffc41714570e639eb5d53fe2ab2ce98045cee34774ce847bf92f877137455e0db11258a86a70f311562c0782f8bef0d94000709e56bec27f58c1933cdeb5db243947faafcd2252b947c322882d59c7063b43fd956ef4367898d219345ecf8567117384dbec3ac5202f954a710a8fb6124fe863929518fd1fa2bc3ffdfe26317e4c5a7375f4ef77013ef509bf8d813433a8ef981d0ef32f242e9be00fe3ceea982b8329465e4ffe7b1b53bbeed933168c75a0b6f8317b856a105a711fda987412be1bbd38c51a5eba88eb00e28e47407747f5ac4cc554dfa2182fb3ea11ed81d3e1918e9887f7f85bb8cc5ba8922dcb1e640608750fabfbc56f756151a0b349b996a53e1714b08f7f848e9212d2105881a26fa62d561d5cab4fb4c27d72770fbb3e57fead2cb85121ab4e82292adb14216d61c31269a26f94bc0c698b8c623f31bc77ac2afcd9ef51b999a0ce684802ea81735048f4b2e920a3d03fa2ab8cc998b903c7268f2c5e7c2009e7921c0c5b0e063e0610a288d7ae743475a7723116b7ff4be44c4aaa4d75148d36fe5bd6dc01141cede9524a7c531d3837f4124bef8e258312b9d7535</body>
</message>



*** User 2024-04-12 13:25:33.385 ***🔗
alice_too_big_stanza_is_rejected_6@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'>element too big</text>
</stream:error>



*** User 2024-04-12 13:25:33.385 ***🔗
alice_too_big_stanza_is_rejected_6@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2024-04-12 13:25:33.386 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_25.html



=== Ended at 2024-04-12 13:25:33
=== successfully completed test case
=== === Returned value: true