=== 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",
                 protocol_options =>
                     ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"],
                 dhfile => "priv/ssl/fake_dh_server.pem"},
           backwards_compatible_session => true,proto => tcp,
           ip_address => "0",shaper => c2s_shaper,
           ip_tuple => {0,0,0,0},
           ip_version => 4,connection_type => undefined,
           max_stanza_size => 65536,c2s_state_timeout => 5000,
           max_connections => infinity,reuse_port => false,
           proxy_protocol => false}},
     {watchdog,<0.1500.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@fe43254ce537.2024-03-13_08.50.23/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-13_08.50.25/mim_c2s_suite.too_big_stanza_is_rejected.1026.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@fe43254ce537.2024-03-13_08.50.23/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-13_08.50.25/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => rdbms,iqdisc => parallel},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        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_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@fe43254ce537.2024-03-13_08.50.23"

=== Started at 2024-03-13 08:50:25


*** CT 2024-03-13 08:50:25.265 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_25.html

*** User 2024-03-13 08:50:25.341 ***🔗
alicE_too_big_stanza_is_rejected_8@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-13 08:50:25.352 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='102b4b1f3ecc7100' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-13 08:50:25.391 ***🔗
alicE_too_big_stanza_is_rejected_8@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-13 08:50:25.399 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzgAbWF0eWdyeXNh</auth>



*** User 2024-03-13 08:50:25.411 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-13 08:50:25.411 ***🔗
alicE_too_big_stanza_is_rejected_8@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-13 08:50:25.411 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9b9b6b058aef4c5d' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_8@localhost'>

*** User 2024-03-13 08:50:25.411 ***🔗
alicE_too_big_stanza_is_rejected_8@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-13 08:50:25.411 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost out
<iq type='set' id='df73d3c61ab9aada7f18923ba295e78c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-03-13 08:50:25.412 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<iq id='df73d3c61ab9aada7f18923ba295e78c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-03-13 08:50:25.423 ***🔗
alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource'>
	<body>30437e9144d62bf3a3b409ac156210b02a475f0ccd603279eb8897fb81c7a4e66d098c281a64b063f32ef3d6aac71e3c8f2a9b8d14c18d0d2b3c37a5d47710ebd223df230f41a9b617101657bc58ba1a8eac28e71be7e379c472e0d26f06073f7d9fc282f956632e94ecb0013646a018eecc34f930d4182a6f6dfc589fde6a52d29749d06837d39969e144cb18d004da62c863fba88707bb3de622047966ed6ba48069f0ba21634a121e13fce092c926b1bd4fe78e0bbba865fab258a379e3b0f83928c340db1c249f32fb34c374c477d8a92b5f523282d0807aeb0167a56e343b21f8f1f395c70648ad257d999bcef9283124081ed5e708e08345af07eb31411a49524349a31ce173c120ed3c1ba26b23b761d3886e2ecb19517d739f3d55be94d20d79f7ce2e601e89ebd5206ef71a42b62917e47ebd0b393d5566c12c392fb74678a10071043e61725021889adf81875a78a31f2c5403486cf67dcae15404197cd80580be4b12ae9ba81d071b41a5fa8bc6c12d4e30404082c964cfa4ae7bf9e659696173089953260012ddc35f88228a7717893bef472dbb9e6f4fd5da9dd2cfb9e41334551b825360347bfac112a83e133b2ea81e5e1728f7b81d73b058b6166e7f5859660d8e3e69da4e11b42b8ad279d21a946f4e33cabeb7fed5e9d9a32d0d76ff97b9db114f4733bf58fe480dd5c8e2e57dd8844803aed66982048d639064a7cffb753c0db4c138ccedcec42daef11d0ab69c5db0f2ec46921d4d6297f08d10cbf820f32b47f3eb50b49866028b4a553850fe19eb4d9e4bd15ed52c337d7b51fadd7bf4985d520369fcd941b9ea6049c2e2bbe4142ea88ba941c951b779a29ea256dd8c7244a0d4616c63fb7d95d7d4422f56ba2c35a1230073ef492167c39f5f9808420c247b550b3ffa3ef374342fd5610e3cede991eef8eb0bc8b0bcd07d95a19ea8ad44b3123736f42634481bd0b57e782c2bfbcbf85cdbac8031ba69e8552a32a1b1a3196432df7692b76210992dde3cc4efb7e147b74c84a9f496026d7da256edb78e4c02972e46754fd4cf04097bc748013cceb2c4e5660ebda74291b53f5cf1826512f05a4e88db8b82ea1f21e8fdd7c1c13e82b08d7f195a353905a188b46f86d01049186f009538d0c8fd0063b5f78dd821d3078e4490e61de1d8382bee56dcba76dbfdc18ce0f56b63f1636a4872514a3faf4fdc78a6352d5cc22e1c47f188d2c4521c5af0fdc2b7948fb040f526d67fcf1ed9891fa44464a592713a1216564212e091c75be4de0d583b7c868f2a209ed9696456f0aefc2fba5ae211e000ac82511bb2c398a2968da76d62a10aa9dc27f095bf12d32c97bfeda18f1db8d1f479d9202bf87a180bfc13750fcb5b9b203e5675b0f50d5d402239c8c0c1337a641e591db77de93baa64b56756172715486a8710312000ff</body>
</message>



*** User 2024-03-13 08:50:25.423 ***🔗
alice_too_big_stanza_is_rejected_8@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-13 08:50:25.423 ***🔗
alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-03-13 08:50:25.425 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_31.html



=== Ended at 2024-03-13 08:50:25
=== successfully completed test case
=== === Returned value: true