=== 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,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"]},
           ip_address => "0",proxy_protocol => false,shaper => c2s_shaper,
           ip_tuple => {0,0,0,0},
           ip_version => 4,proto => tcp,max_stanza_size => 65536,
           backwards_compatible_session => true,c2s_state_timeout => 5000,
           max_connections => infinity,reuse_port => false,
           connection_type => undefined}},
     {watchdog,<0.1425.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
          {start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
     {preset,"pgsql_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@528a5a4ce401.2024-04-09_11.36.09/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-09_11.36.10/mim_c2s_suite.too_big_stanza_is_rejected.515.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@528a5a4ce401.2024-04-09_11.36.09/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-09_11.36.10/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{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_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_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,<<"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@528a5a4ce401.2024-04-09_11.36.09"

=== Started at 2024-04-09 11:36:10


*** User 2024-04-09 11:36:10.378 ***🔗
issue="ct_mongoose_log_hook created log file", ct_node=test@528a5a4ce401, reader=<0.1460.0>, reader_node=test@528a5a4ce401, writer=<0.1462.0>, out_file="/home/circleci/project/big_tests/ct_report/ct_run.test@528a5a4ce401.2024-04-09_11.36.09/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-09_11.36.10/log_private/../../../mongooseim@localhost.log.html"
*** CT 2024-04-09 11:36:10.379 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_20.html

*** User 2024-04-09 11:36:10.497 ***🔗
alicE_too_big_stanza_is_rejected_9@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-04-09 11:36:10.513 ***🔗
alicE_too_big_stanza_is_rejected_9@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2e3ac4390a9afb4a' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-09 11:36:10.520 ***🔗
alicE_too_big_stanza_is_rejected_9@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-04-09 11:36:10.542 ***🔗
alicE_too_big_stanza_is_rejected_9@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzkAbWF0eWdyeXNh</auth>



*** User 2024-04-09 11:36:10.544 ***🔗
alicE_too_big_stanza_is_rejected_9@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-09 11:36:10.544 ***🔗
alicE_too_big_stanza_is_rejected_9@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-04-09 11:36:10.546 ***🔗
alicE_too_big_stanza_is_rejected_9@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='06327567e75777eb' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_9@domain.example.com'>

*** User 2024-04-09 11:36:10.546 ***🔗
alicE_too_big_stanza_is_rejected_9@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-04-09 11:36:10.546 ***🔗
alicE_too_big_stanza_is_rejected_9@domain.example.com out
<iq type='set' id='3def2a80eb47ef0ef5a012ddbf31e8d4'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-09 11:36:10.547 ***🔗
alicE_too_big_stanza_is_rejected_9@domain.example.com in
<iq id='3def2a80eb47ef0ef5a012ddbf31e8d4' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_9@domain.example.com/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-04-09 11:36:10.571 ***🔗
alice_too_big_stanza_is_rejected_9@domain.example.com/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_9@domain.example.com/escalus-default-resource'>
	<body>dff132c25af718794d785d4c709e5f56692c6a2fdacb22a5d7f085fc33fe20e230a7db2542e6a13b198ddefb9b110d8fa0ad36f142d8dbe6f12d12f37b7be08ec7af23727c4eb5d0f0ff8d867f6d8dbead985e147d90d45091d935d1436f29d86863c33c43a9890bc2ae3e2476a73b560e2ca6c93fc71ef5b235ead9c760d22b3f7a368632fd2cedb7d3f8641847f474bdb208319f836c1677ff91fab968a7dc519e249222e49001f010490c34c393b828d59836f3d4a3484c6d75d1d5ef59807261f77783748fda0fd34cd3d2bd00eecad7a88c8c62972c5f684ed90a565815d386d8e2d99890c58567989b65d0a07b5bddb52263c6ee97e153b77a0870b53d4e6db065bde40b1b7da98060f3c1d3c514578a181fc8ba87d2b8baee2f251c0a3703f44a904252a5fc5b28939f867b1c118c7714fe40135ff22298af518a556fd62df402981b42b375d022ac675a43cbee354f7f429700cbb295bfb45a34fdb759664dc534b5c4ff2f36e0c87fc4cbdb7f1e6311d5fe8c48d5266cae0f3cb4437e9aab7e6a3a96730fddf60598bdd1d840a4a202cbecf94b5982eb41da93e8cd22171ee8ac02533a51fa218ed8741de311222e8af3dbb5877e2b45ea796ee55dcd228fdaa6dce12217f0947e479858db8550884d53571ce583e4cb2886b61d3b1c0d1fa14309cea1cbb5c0ea3988aa7a495ef08e67853981b62b1ca024d3dc46e74773322d290f3cca15a54dc21bcaf7bf30094821b14e18a2de95883b041c3ea5317c47886ea7dae0363d86f05636a273fe247dbc930d5008e926d4098124287446625571d65e84af7733217b9c3c397396dc67b2c79a2c7c987db55f43ccf609300385bb2ff0573ac43ec7a40abb3db2623f9b346f6f3b364c1aef7ad3b08d68aab23264b867a84d17f6b0378eb93162d5b1ef1cea3b548340369d9c51fb34fb318745f5e251916898d113d57fefda2f122945f7177b09a418f20555ba696896b72cbd61ce921dc761b7d54cebb27c441bdd9aa451aa6d175bfe7ffb1f6e5a8938c435e9c19b65245f232dfea1ada8d57aaba462b8de0ce79786c84040724ce0a9e1481ebbc110606da5b70bc712fc9cce83a815d638792241e29f21b93da9ec4a70dccf13a86f9cd0ddd797f2f98676c59ff24ffe241577b420a6f86fbe6e4b2f4cc24bf584b24c504f25f7151ee224620c44890a8222e20bf70feedf21a23365b6f312b7e840ef10b2ef68bebd2464a94583c4e7818a1fb1b4b4c83f0fa57260d002910ade85aa789263cd2f20368f1e3ac9672c7f97ee8908963e149f247fff33ece5a8077ef2e439a736baf1abeefaa1fe6af162df5c139eb9cb67cde30ee2a85c1ad7fec24f20e5eba675e38b3cb9922256ad73cd876d9876a81ca2e5da394a46a57bfe02235a8be0cd499b7fef0619a7790dec1bdf67566810f9b36c</body>
</message>



*** User 2024-04-09 11:36:10.572 ***🔗
alice_too_big_stanza_is_rejected_9@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-04-09 11:36:10.572 ***🔗
alice_too_big_stanza_is_rejected_9@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2024-04-09 11:36:10.575 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_26.html



=== Ended at 2024-04-09 11:36:10
=== successfully completed test case
=== === Returned value: true