=== 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"]},
           shaper => c2s_shaper,ip_address => "0",
           ip_tuple => {0,0,0,0},
           ip_version => 4,proto => tcp,proxy_protocol => false,
           max_connections => infinity,reuse_port => false,
           max_stanza_size => 65536,c2s_state_timeout => 5000,
           backwards_compatible_session => true,connection_type => undefined}},
     {watchdog,<0.1518.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@6b87bb397ec6.2024-04-16_10.12.53/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-16_10.12.55/mim_c2s_suite.too_big_stanza_is_rejected.259.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@6b87bb397ec6.2024-04-16_10.12.53/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-16_10.12.55/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => mnesia,iqdisc => parallel},
        mod_roster =>
            #{backend => mnesia,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,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        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_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@6b87bb397ec6.2024-04-16_10.12.53"

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


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

*** User 2024-04-16 10:12:56.142 ***🔗
alicE_too_big_stanza_is_rejected_13@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 10:12:56.153 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a020d1ddf9334277' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 10:12:56.160 ***🔗
alicE_too_big_stanza_is_rejected_13@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 10:12:56.165 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzEzAG1hdHlncnlzYQ==</auth>



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



*** User 2024-04-16 10:12:56.165 ***🔗
alicE_too_big_stanza_is_rejected_13@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 10:12:56.166 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6de916cb2d2e9773' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_13@localhost'>

*** User 2024-04-16 10:12:56.166 ***🔗
alicE_too_big_stanza_is_rejected_13@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 10:12:56.166 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost out
<iq type='set' id='6e9632b33ebd825fa02155d9188a06d2'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-16 10:12:56.166 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<iq id='6e9632b33ebd825fa02155d9188a06d2' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_13@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-04-16 10:12:56.175 ***🔗
alice_too_big_stanza_is_rejected_13@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_13@localhost/escalus-default-resource'>
	<body>770f03f5373330d7ebbcb61ef9a56ca26627c8a1998141c9959dce2dc410cf4548ab71bc0d53465d59993fc52310c3dba27eb3e7fdc1736c75cd123e4b22df415f8aae47109fc9470ae99a1191c1a7ab5d1c8a79e642a7ca50883017661e1e5a1547d9b6ae58b699b5da69f54821846fcff88f84b46618186c889cf36e0e3e6e71746c02e959ba8931487f251046bf0532d914b396e7893ee515764b409af6d65fe94118bbb823879ad56bb24664f76cbb69b6b8552cd1dc6bf66facda126817664c01f50f4a82b22b1dfcca5dd0e8762d83595ce14f2f6c1c1960a0ce8c00de4720f4ae88f9e534f52bedfdfa9cca6660ca374d58085548c5bfd06e1d6741e27851a945488a66f0df12774b8b04e29362c13c713b11de373dab9c6a34437bb59128e807ffe28fbfa66a476e8440a0af0907af63421c822dfbef9948413450345666c937d4f46a0592443586ee32e00541039d2f6043718978e36ef8ead70c472814d3f7022960b87a0b22f36403b6957915edca1818a173dc0681fc79798d7700bc11280c670f91353a309b782be6b8c7118a7fdffa25b886c190f1545f8c4b161b4a66b10e9fee8b9ba7a8bdee721a04efd0b57dc912015fdd290e5164f741019cefb46be56964d89e3ebf83365d822e3c4427f7892a2e351dd6c4f192f01221ace81fe919e11aefb2861685748c7ee41e35f3815d5fbd949007b8b97cd1ce0d21a2a7c4d4d337154cbb4b491ac5dc45d936579d2975f07d8319c5ac5e33313f5c58b615ca610d32536b2cb6596e40484a1ac797cc51cf1e42532e3b0dc2772886b333c3785f3766d528f04674031372de8982cc70d3a3c8c091b1d50882f35b4a3419041749eecdf98c556117e2b2fa82fa126dbc0184058d02074aab84bdb44a43c29639ba28ca3442e471960f4788f1935ece9fd55e033abb3a7fc5e3bf208395a51686391f56eb377ed502f93de2fd7afc1cffd502ea4996775e0ce8272ce1bce2b07f90a615b6626e670e94eac9e8804652937f1fd7b2577262f1f299dc4122429538972c28117e26e4af650a907ee48f8a7b7a55af033e87cfb15c7bfa6b7035dea20942b4fbb338cbcbb4e6dd017e3427c431dbdc903ca5277651689ef98d16615b50ff55255828ed966d9d8460dff3315a32b0af3561c49e3a12965b92b6ef093cd0dcdbed01266b8a31d8ad72cd37f81c3e9c5d1a5a6fae4f24931e12530e4f1693c126b04ac41ebf7c36574f4c29de704c440bd649739882937fba00843cdb12864108e570f0180c797677567b9e3f149dc763300d122e7e98ad65fed9997b25535f8ddaf12ef45c6c3fb812b366cc28517f43e0ef6526124f20aeb82175ecf81b94f519d8c3561549ae56f5bc365bf6039ab93ae1d9e9b3caba9a550476f701e100c8ed442f76047252f577929ad8b577a2cc9a3d4b45bf27c6</body>
</message>



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



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