=== 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,
           shaper => c2s_shaper,proto => tcp,ip_version => 4,
           ip_tuple => {0,0,0,0},
           max_connections => infinity,reuse_port => false,ip_address => "0",
           tls =>
               #{module => fast_tls,mode => starttls,verify_mode => none,
                 certfile => "priv/ssl/fake_server.pem",
                 ciphers => "TLSv1.2:TLSv1.3",
                 dhfile => "priv/ssl/fake_dh_server.pem",
                 protocol_options =>
                     ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
           proxy_protocol => false,max_stanza_size => 65536,
           c2s_state_timeout => 5000,backwards_compatible_session => true,
           connection_type => undefined}},
     {watchdog,<0.1434.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@5f60ef475eab.2024-02-23_17.31.31/big_tests.tests.mim_c2s_SUITE.logs/run.2024-02-23_17.31.31/mim_c2s_suite.too_big_stanza_is_rejected.1282.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@5f60ef475eab.2024-02-23_17.31.31/big_tests.tests.mim_c2s_SUITE.logs/run.2024-02-23_17.31.31/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{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_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_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,buffer_max => 100,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              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,<<"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@5f60ef475eab.2024-02-23_17.31.31"

=== Started at 2024-02-23 17:31:32


*** CT 2024-02-23 17:31:32.323 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_23.html

*** User 2024-02-23 17:31:32.425 ***🔗
alicE_too_big_stanza_is_rejected_7@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-02-23 17:31:32.437 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c302b435e5f48584' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-23 17:31:32.440 ***🔗
alicE_too_big_stanza_is_rejected_7@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-02-23 17:31:32.447 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzcAbWF0eWdyeXNh</auth>



*** User 2024-02-23 17:31:32.450 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-23 17:31:32.450 ***🔗
alicE_too_big_stanza_is_rejected_7@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-02-23 17:31:32.450 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='19613ef15a89380a' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_7@domain.example.com'>

*** User 2024-02-23 17:31:32.450 ***🔗
alicE_too_big_stanza_is_rejected_7@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-02-23 17:31:32.450 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com out
<iq type='set' id='2ade67547730aba4934a99ec70a146bf'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-02-23 17:31:32.450 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<iq id='2ade67547730aba4934a99ec70a146bf' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-02-23 17:31:32.458 ***🔗
alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource'>
	<body>3deb1f54518f0e0d6340202ba62e8788bbfa767fe5f0d5782985dea5a1977712051a0a4982c00c2f22267fe43888de1128af64ddbcf65eb85f1bb63e7bec00f421f5a479d830a5ff6c757b736ea5eece0907da82ad19f152475d7f05fff5c16686796bc0cc402218e9cdfe6f86ad633dd36a5f5fa993d975e0f7fe7ee9dc81c8780fcd49dfffd44c9ee47ae8fa43addfc3b4e52912c832658400a56721010e9433756cdc3b9532a0c1d30aac11277d906e3861fe68568600659c48e592d2c120b89b2ac871cee59d0828919a520209fb42e947c42b9d96e1c9b11bc577bf201446404e80457017dd6409c541794d278d0713d0ff08acbe5db464d3a1e452e0971073e679c2b5ed495e6a973d8088ce3d81e768a718b5fbefcb265243473da0fdbd896c7f03a7894dc13c3342767caffbc5ae2fa291692a2b18cd9e373362d6866541bfbda00df79bc6da50788d5d3b5c555d78411fda7089dd0d1bc37cf5df299b3db5bf51484d8c3cd30821028a7cea23e0b397348347315acc464ad97df66ad959afd1a18ed7f8763b09fef38d6d7a31dc5a4f06ff142565f8bee968946d038dd958fdc3b765362a0a146dc556f17c29aecde4e6aa0a9e1d6d1ebf439e4ae9fe88e31aa3ba1c3fd28695522058c6ffc3396f982d57a663a8c261f1e712c35455f9723fa56e759e483c4ae0a887a1ac5219e937d4578e2a46c241c25cbf226a9bd0627b068f468932e3fcd5bf637a65593ca3b99e5925e8f136ccef95b75b13e147a2124072f087e883940ad5ee07fa01c5859018873ffbdbd3c8546cb5a75efed3b35f9db6874fc8b0b3e28bdbf87560dc9084222c8e68ba4e5f14668d790ddeb206021965a0892dbc13cde2589b7ad847c7717b3bd652e05b3e1fad5d0864d13e1d491997ebe69d2d3f9918790e0aebced04133e27bec30552f5e2b978d49a26f68dc7e3e3f6a10efead6f65a383fde1fe864da0f1ad3275e8cdf531514272963e876fd231b9dd85811ce450d42ed8c61f34c2fb56667286d7cc19ca9884fb13bf7404af724a12104ee94c0768c3ecd3e4d1fe2c9279a7340f73fb7b4bd8aa6afaee576982c3b7f73ee79fc8dff4a44176cb2b01af797ccab84f44718dba5db42d574ef3e795cbc699d121570117369fd791463414d7c0b397584a3f90077a13fd459673fa424108b0fbe423745b3a090b35ac853f2814a524f29ac44d7d31c140c76dd8265ba8e1fa529237d9a107a27a620671b538ea6172680dc74458da3562df491f4736100a56f2db82ae79cb8f39f64731592912c425a424f4341f5d19c32ea272c9711da44d11e26cb8c5a59d2e3da758d94db27989b892de8942d033ae202e68d575b16c16df1d5e38c05e7b86fb913df6dd5c19c0135c2165d7c0e66f5192b580bf363d7545c61c1c2db1e89994d1ffbae0441a514e15cd26cfe</body>
</message>



*** User 2024-02-23 17:31:32.458 ***🔗
alice_too_big_stanza_is_rejected_7@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-02-23 17:31:32.458 ***🔗
alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2024-02-23 17:31:32.460 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_29.html



=== Ended at 2024-02-23 17:31:32
=== successfully completed test case
=== === Returned value: true