=== 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,
                 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"]},
           proto => tcp,ip_address => "0",
           backwards_compatible_session => true,ip_version => 4,
           ip_tuple => {0,0,0,0},
           shaper => c2s_shaper,max_stanza_size => 65536,
           c2s_state_timeout => 5000,max_connections => infinity,
           reuse_port => false,connection_type => undefined,
           proxy_protocol => false}},
     {watchdog,<0.1485.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
          {start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
     {preset,"odbc_mssql_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@fbe86e01725e.2024-04-16_12.56.25/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-16_12.56.26/mim_c2s_suite.too_big_stanza_is_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@fbe86e01725e.2024-04-16_12.56.25/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-16_12.56.26/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{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_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_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_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{inactivity => 30,max_pause => 120,max_wait => infinity,
              server_acks => false,backend => mnesia},
        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@fbe86e01725e.2024-04-16_12.56.25"

=== Started at 2024-04-16 12:56:27


*** CT 2024-04-16 12:56:27.122 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_21.html

*** User 2024-04-16 12:56:27.207 ***🔗
alicE_too_big_stanza_is_rejected_11@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-16 12:56:27.221 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ff449a5b846ac099' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 12:56:27.255 ***🔗
alicE_too_big_stanza_is_rejected_11@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-04-16 12:56:27.263 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzExAG1hdHlncnlzYQ==</auth>



*** User 2024-04-16 12:56:27.266 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 12:56:27.266 ***🔗
alicE_too_big_stanza_is_rejected_11@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-16 12:56:27.266 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='04493c20b1a71b1c' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_11@localhost'>

*** User 2024-04-16 12:56:27.266 ***🔗
alicE_too_big_stanza_is_rejected_11@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-16 12:56:27.266 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost out
<iq type='set' id='2729c1c5597eb33397a1008a3915f2b1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-16 12:56:27.267 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<iq id='2729c1c5597eb33397a1008a3915f2b1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-04-16 12:56:27.280 ***🔗
alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource'>
	<body>9475939d79de648e593888d9cbed2f1b9336f8c1e316a0619429344f590958e61bc6e9f0036b464021116909718e69e8556953361e293276626630363fa3e6bb3ffd4a5fecac9e44be57ac94f0e44a132ccef04a827b8d387cda6465e3135786823226b50131f71ee2de6b5678bd2fb2b58e4f2eb65ffbc17a90fa37b9b919d626a2ae02a32abd14dca49ba17177d38a1182425976df88c135cc71eef4848ebdfea8eb1ab1ec7ce14d72ff26dd9ed19c4f55c951161b9a347cc89c18c3137c90b2d773556e8c0d8f230b280ad682dea60ae597a4762ef69577a12e0aa91a53edeb9046f4298f65398557815b65070c00ffa2414701075ec57122f039e02c4180519e6f1ff844cce03e7e4086505e7fdee6b6d61a23b9c8a3d0c497138cebb127135d45f1f7c498d610d51f1413b3a0abf58982b3db42d854152ab6c6157e9500de7719d0a40d14e610f4512785b9011c6406d543605c1cd4b40b4d84d314f2664d01082b97a4e6cb98aad42e4bf2be0edf0759500a4d53208892f58bcf6dc849aa1c49821981c3b18a8f515a172d3c52134f0896d64f7a84a9cfa6687e158c90944597d225dcafe9c28426aa4f204bf729c925f2a20bf42a07802196f67bfdbbdc01359466defb86faffac4c9206b6c58d7bba3c5632c76aeea967f2e2289862d63944a0c73fea4d846e94c6fcb0ef8264631f01492a3b75ad62ef776b8a2b3e2817e0fc9041797d08fffa2bb84420c1ece057f10643c36205df6132b74aec1fa0c183810c2ccafd1627a4864c4d22ada7ad41641b430e782bc980ae4ad044652d70006a6c5f3e283d84d122020ac834095c1b65c243d88d91c17212d0117435a49e92835216ff5a0dc79fc9b018084736289d0cc482af556921796ecef20bcb544825d8f2dfe405463374672075ed6f6e28a0b17b735938315dd19fdeb46a8a3ba5096e23e5dd893ab818c2c53a5e2a49c16fe04cc0c1ff3dc4da747b9393cba101eded813ec5de4d590f6744791f01fa4c711e5e9949850345f5c427a06bcb11296cd2e8f6a98226e3759ca5fab7aa2e2e0d2ee078596e6fd3edf91aa3822cbd619795aa9f954bcdf9f99f1eb7dd5454013e1162c470a032ce3946a8c26b443bd4b3a730f0b9874174e5d8fdeea01be178d9bac02b5037a52b64c8bb110343527de35dae1b0e5d891ab2fb6be03a6adee9d94b5e6457c43b6b6d4fcffccd6693b4d66c18561b82b8bd9aac83934efb84ffe538748074a30808040e678f559efdd1bd0b116c8114835d5ca4c3dedd9f9380fcfff296091f2d461c6421a2f7c72ea59bd97086ceb355088feb17c2ca36a8bc4fbdd89c4d5cb4af23b10ffe8f39755f7a4e0d40e6090fa82067c04a9b53b57a841a43d22c1081fb3d17ca2ec427f42d516da6442ccef13929b446f15c3caec561e7bb3eec282a32a8f8027c5d9b</body>
</message>



*** User 2024-04-16 12:56:27.281 ***🔗
alice_too_big_stanza_is_rejected_11@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-16 12:56:27.281 ***🔗
alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-04-16 12:56:27.283 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_27.html



=== Ended at 2024-04-16 12:56:27
=== successfully completed test case
=== === Returned value: true