=== 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,
           ip_tuple => {0,0,0,0},
           ip_address => "0",ip_version => 4,proto => tcp,
           shaper => c2s_shaper,
           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"},
           connection_type => undefined,max_stanza_size => 65536,
           backwards_compatible_session => true,c2s_state_timeout => 5000,
           proxy_protocol => false,max_connections => infinity,
           reuse_port => false}},
     {watchdog,<0.1432.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@5a8ab3541394.2024-04-24_07.56.39/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-24_07.56.39/mim_c2s_suite.too_big_stanza_is_rejected.258.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@5a8ab3541394.2024-04-24_07.56.39/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-24_07.56.39/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_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_sic => #{iqdisc => one_queue},
        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,<<"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@5a8ab3541394.2024-04-24_07.56.39"

=== Started at 2024-04-24 07:56:40


*** CT 2024-04-24 07:56:40.138 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_25.html

*** User 2024-04-24 07:56:40.237 ***🔗
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-04-24 07:56:40.238 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d4daa133d743ddff' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-24 07:56:40.253 ***🔗
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-04-24 07:56:40.259 ***🔗
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-04-24 07:56:40.260 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-24 07:56:40.260 ***🔗
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-04-24 07:56:40.261 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='65c5adbdef95a264' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_7@domain.example.com'>

*** User 2024-04-24 07:56:40.261 ***🔗
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-04-24 07:56:40.261 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com out
<iq type='set' id='3f461bc2bbbad51271885710638f0053'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-24 07:56:40.261 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<iq id='3f461bc2bbbad51271885710638f0053' 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-04-24 07:56:40.276 ***🔗
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>2c554063a90a6f5bb89b0b568e8f29014cfc727f7f28f9b31073f541a40683f86e65536686ee636fa04f06094b8a0dc2bcce8873a7681508295fb2d854803f3edfaed5da290a774438797c48f368540c8eabfdadd3e57ec9dd4461558f66d8b003945f577d7a49b85947bde914667544c8f3d4b771317c476e90da1c7cbf216b72e5aa93d810403b6345aa6b312d872090a61b6108b43fef46fb43a70636ece4e05c7b60a2cec9c554687d9f06ed4de30ed280507da50d23a717c0ee1a24f5ab5f6024900ab4f4dc8e3ecd2c6f35a3172ffb123a9a583540c24b900192deca8c2703f3eac53bf283860b73eefeb0f9b085e03649de7f0cc2e35f4989722879fecbd87eb45ca09ff6e4c6fb31c00c9cac7a267098fe4c7f391500649b1f7464166082df9944209c56ef8e734ebcd0f6c286354e971db7c1bbda191322c95a6677d23e0b2c09aef828f82266211177d5b5d2a8183e2ed786854ae17ef2d13058a5a172f853b896644b70deab371a6a475a06d35aa875b77b6321bc6b56c53b41d13fb70d26c07f26ba238434e94d659e72b8138ed6dbd9400864617b7473659f45fd60d00a8b9d93df0c1ad911d14f5fcc31723584127860ef0442137acafada2f61a608093809f808b666c7a2b59f1e5b4ca34913067b186cdb76e71ada221f144a78db9002acd74cf52adf56a113951a78d055f613b3ddd0ca173654f2155da6218b736906efc69c8ffafe890e4d88fc97f53f1a5dde81fe2c49d7720f50814f8f22f2a1b3a73af76c833d3375214dd2f843c16047bdb9b6deefaa228d6d07c3c5e88a7b2ed889f08ab02ab92e131b786fac2848ab67473df9f3bc66b0baf23424a52567fd72598d3871b1719de16eaff38ee62a4932d46d77901ce21243ef9be4f81e0e3bb6685a149eab8b7227f3f75a294f2b7f724883370076e6d4f57050aef76fd2d952b7873b2127dbdb896487df1d5c6c202ff86417627bfad44d6d959cb45b56563c88ba52cdc004e2452bcbabc16c0953e4c7ffbdf326dcca9bcd746ddf46631aa34c78ccd1003b4b1be8a705215f4f6b25d908822598b30dafd8c198c3e156a45b703fc55ebfc1264a96ae44624adcafb8a4784f5c8692c0b633e6222d27004ca0f679de5a05ea3f0840707ef22629aa67c24665602e2478bfd70d90188e73a3a0f23928a9b63eca49c4016ecd229bc2823c8e75cc452febcba23f75c42f41567008e8b83abf2efc9c33af1536a68d451e3b50673111a34cda349dffaf35f277dd6ea499bb3b1b79018cd36a8988f1b3a215c02180097b1b6d38279da320feded1a5778e19cce9458c9752c475d6a816d1a6ff81b539c8f031f9d6eeeca7239d256e45b1f3e4f8f670541273e0df5e1cbe0c9c4793ef13df954b60ab06ad837ad1e33e365f4fabde8c34b3704a9d7bf9a54bcc1a39ede7c5233c7b</body>
</message>



*** User 2024-04-24 07:56:40.276 ***🔗
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-04-24 07:56:40.276 ***🔗
alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2024-04-24 07:56:40.278 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_31.html



=== Ended at 2024-04-24 07:56:40
=== successfully completed test case
=== === Returned value: true