=== 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"]},
           ip_address => "0",ip_version => 4,
           ip_tuple => {0,0,0,0},
           proto => tcp,backwards_compatible_session => true,
           shaper => c2s_shaper,proxy_protocol => false,
           connection_type => undefined,max_connections => infinity,
           reuse_port => false,max_stanza_size => 65536,
           c2s_state_timeout => 5000}},
     {watchdog,<0.1520.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@9c3798a642bf.2024-04-25_16.16.49/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-25_16.16.51/mim_c2s_suite.too_big_stanza_is_rejected.514.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@9c3798a642bf.2024-04-25_16.16.49/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-25_16.16.51/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => mnesia},
        mod_roster =>
            #{iqdisc => one_queue,backend => mnesia,versioning => false,
              store_current_id => false},
        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_amp => #{},
        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 =>
            #{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@9c3798a642bf.2024-04-25_16.16.49"

=== Started at 2024-04-25 16:16:51


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

*** User 2024-04-25 16:16:51.639 ***🔗
alicE_too_big_stanza_is_rejected_14@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-25 16:16:51.643 ***🔗
alicE_too_big_stanza_is_rejected_14@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c07b6c106b1b1d3d' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 16:16:51.649 ***🔗
alicE_too_big_stanza_is_rejected_14@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-25 16:16:51.654 ***🔗
alicE_too_big_stanza_is_rejected_14@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzE0AG1hdHlncnlzYQ==</auth>



*** User 2024-04-25 16:16:51.654 ***🔗
alicE_too_big_stanza_is_rejected_14@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 16:16:51.654 ***🔗
alicE_too_big_stanza_is_rejected_14@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-25 16:16:51.655 ***🔗
alicE_too_big_stanza_is_rejected_14@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1925bd2b24437c2b' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_14@localhost'>

*** User 2024-04-25 16:16:51.655 ***🔗
alicE_too_big_stanza_is_rejected_14@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-25 16:16:51.655 ***🔗
alicE_too_big_stanza_is_rejected_14@localhost out
<iq type='set' id='679ccbb973fb3f20fbb3031df6227c96'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-25 16:16:51.655 ***🔗
alicE_too_big_stanza_is_rejected_14@localhost in
<iq id='679ccbb973fb3f20fbb3031df6227c96' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_14@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-04-25 16:16:51.666 ***🔗
alice_too_big_stanza_is_rejected_14@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_14@localhost/escalus-default-resource'>
	<body>bbdef946fe5e2cbf36df58ac74da170826017a443541be10ed38d788f5ada6416bd48bdf569d46a4fe05198fd856d172f6db8dcd6e069390347121de100c7c86b94958be1e4b5fb39a7cee737f65743a996777e00c218be3935fc3a7fe1fe8a5b067d405be9a67f3ce79c0c3f37cea7d86bf168ed63d0ca5b3a97977bd1dd59a265e0cc6cc597bb72cc2a4acb2288021a0b2fc82cfae0e1228ba2fb3c0f7c6bcb888f2d56236468d6c71161674cf38734d418f4ffd636adbb0049943020a55a7976e913a61b5ce7353c6726b1efac03bada12cfa810227d62b6496babd12f62a78e4372920d579788542e1618799248139f0d1f43642dca03465f8a1e1107347ffa56b6d8b7b4ad4b64d83a1887292f3ab4b867a2b9386c978f9f713d7f71a4208eb068b12427416f64c06a76ce26cfb39d55ba0edaad8589535843c877569e8692f037669d2a7e2383bcca6298a0cc2a335f2a66efdc9f5a1eebc3dda7724080956cbf6d1c04048cd0e152be9c1f73093e021e069936741a0cdfaa7a4509dc4e368803ba8c2a5803a336eeb05060b431e30e7db6f3e00df070ab3624c311805440a035548998db5adb0ecb9f660f3554857e73d042183219feb95c2d66f87688f07cc1a8c7d89ed4e4a7ae7a76b26808d9107f1f7588d5308e5c5140b9c098e25587bf46dc3bb10153771ead995b9cb847a945462798a57f56dc5340595eec7f633be82aa34a18f68879aad618a5059159ac3261aa87504af0029d3c7f7ab9aaa44a73c242168532db3685be8df5358cd6bd3c66fe716b900685996ab0fed9baa3665301d95c1b3180bfd279afe9901059b21c28582f7e5707001191ad58b13e3aba742a3593dab663927801789b1d45eb3ec56b67f29e9a88aa133ab1673fb074770873803c4f594a30df5f218af512b1d4fcaf636aee7147fc0a62dfcda8e98d1a43fd75c28f4b24421b2dce34cbb54d59ea698d10f9cd955ec5b56574f7e78a07df39bba93455845d3f8f839c70a5c5988fe39e64ce4a716cb0117977fc72b9a05b85a77296c9933fb2516662c4a2c4aba4d45de1a896f0a7c30170f33beacc118cc77c478e253497b171071bf9ef0383b4105ec5c1befed5887f72a230ecbdf66507a93a22f5a05f7f846bbab4a2da80003685c6859d2dbd9e5cdfb5a74882b8b53001f152bcf3114e5f5e6ca527bb546f53831aa93ad907d03de6146bd08a7c41687d1114d4b96a5cce5a92c6788544e091ad61c2a5d35e1a9ce76a970323cafce33e0424c79967e9e84ed544b8854740038e148c1bcfc4ec52d6d3d94497e29ef650d7676c2d104b1bc78c320e9ee18a9ae8bcf16f41c509105f5eaa7ac371d29040e1df6332c3be9d9ba3878bc582808d4462b23d66db40068149f88bbdff676a30071f70e8a983a478e34fc9ca13a4e7e390a1335a015591390e973</body>
</message>



*** User 2024-04-25 16:16:51.666 ***🔗
alice_too_big_stanza_is_rejected_14@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-25 16:16:51.666 ***🔗
alice_too_big_stanza_is_rejected_14@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-04-25 16:16:51.669 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_27.html



=== Ended at 2024-04-25 16:16:51
=== successfully completed test case
=== === Returned value: true