=== 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,max_stanza_size => 65536,
c2s_state_timeout => 5000,backwards_compatible_session => true,
proto => tcp,ip_address => "0",
ip_tuple => {0,0,0,0},
max_connections => infinity,
tls =>
#{module => fast_tls,mode => starttls,
certfile => "priv/ssl/fake_server.pem",
ciphers => "TLSv1.2:TLSv1.3",
dhfile => "priv/ssl/fake_dh_server.pem",verify_mode => none,
protocol_options =>
["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
ip_version => 4,reuse_port => false,proxy_protocol => false,
connection_type => undefined}},
{watchdog,<0.1487.0>},
{escalus_overrides,
[{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
{start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
{preset,"mysql_redis"},
{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@a91c848225da.2024-04-24_13.09.45/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-24_13.09.47/mim_c2s_suite.too_big_stanza_is_rejected.386.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@a91c848225da.2024-04-24_13.09.45/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-24_13.09.47/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{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,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
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@a91c848225da.2024-04-24_13.09.45"
=== Started at 2024-04-24 13:09:47
*** User 2024-04-24 13:09:47.611 ***🔗
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-24 13:09:47.612 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='33e2ee04dcb61ab7' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-24 13:09:47.629 ***🔗
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-24 13:09:47.637 ***🔗
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-24 13:09:47.638 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-24 13:09:47.638 ***🔗
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-24 13:09:47.639 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='17e2c3cf89324381' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_13@localhost'>
*** User 2024-04-24 13:09:47.639 ***🔗
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-24 13:09:47.639 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost out
<iq type='set' id='31d0eb6911ddf7c270c25fb74529c996'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-04-24 13:09:47.640 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<iq id='31d0eb6911ddf7c270c25fb74529c996' 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-24 13:09:47.652 ***🔗
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>25ef9e3b2c546a88f33a019def153457cced1c428893aa7f446e87f19359c11045db8d21f232f359d6cfbada232b87b5457ccb3d26bc34c806232570406ee952f0e0f6d7374deff17d0ad18c35635052b44675f8703bfe60598516dff00a0de3dde327afe9a5944102e5ab54bcc26a62e34dda7603387e79ab07cc59bd5b9798b17ef0ecb51b49f08c72fb4fdcfebe802166048ef5e5a5b930c04e07e354dfd744b63304941da071c905975a22898d29a060fda6b191b6f5282d29829052691a3446cf09ad20e858341d0780b6e43038c8ec742360de6af0c6a0a4ead0e9eb8963d2f50d6d3bf535ae2dd2e3d3c30801579893935a2fec0d32ab4c0e21007b7f10151718a2937c354b9c2d34ca82a107558d0fc6b807f039e1527cfac9ec47e8b79ead6f0fc0d2c9e69ea762538360d7c7c720d94284d83b8b7dda0eb33c20114f70a3ecf9f46b2449d469e0c5546336f80444b6a72786ee7bd355d842c981d3ad67018d840910e34b9f0671b5605e5c8235c9fe439f70fe5f3d9b2b9bcb0bfd06da0b7d5bb7fd6ea08c16d5668c2273dd34c70a73cbbd5623055650dc6ec08fc41fd5edaed3a441cd79cd8d3cc1e0c7f5e8874f9efe0746427867a06290870535431745f11797f0f5f6b9f03c321ca885c0f67a12b051a41b8141749ffb84bdb9d2eec60745b6ac5a55acad20979de11d7cbb9dab2293e93e5a2c997c0c855c36376ca46a58217174548fc9f228f634f0c8cb91a252035757e6046ccfcb409e5ab4e1069b36f994229b7ac2e6d413b5080e040f2c2d4756e7d035d01cedb98ee55ba13cbbf8a0d8a0b148ec0b5c8acfa2b6934520e622f9e36e2197136afc8459709c37a5a01b7f8a250af20c363942d3e15314b0653d94383dbab8448de9eac3791b45221bf29921afcb27ade3990e6e6753c0004f6908ad06af93857e6ddc743043967a2071c34f8269a3758914c25625d7c3f4454a36f4c69fc5b2df084f57f694843dc66f0e1d561ca730c30b824af9ad177db75499a15f68d1dedea76364c686f70dedff02689ae6426c57c9990564553479d13399c652fadd7fe6c51671335011cc8ad0f8357d10a7a30a4410af6a904ca8f84684bec01312a89044def1caac1ee36aee9d7ae15744275cbc34181b8805292da58ff6eee9e808bcb874dc473a3f4495e1d74e34db1ec14de386c476451037446b547c795632682529510620ac31b83e2a22f1696a9218337943e35f6680d09c25e8e1d1add2301564c8dc26620535b8d929720ad9d7a21f95812d3a010c26ac3af7f0f05bca095ae966ff677c2bd04c9968d35ffbe6196113919ecddec6a7c0c64e6b1308cc6a74bedc84aeb45a13a3d13eda4df08092d79bfa0df960aea224eccd767b20e032d1c07a09399f58bda41a5720658d5847b977229960dfc61ae5f553bdd45f5fe1a959ac</body>
</message>
*** User 2024-04-24 13:09:47.652 ***🔗
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-24 13:09:47.652 ***🔗
alice_too_big_stanza_is_rejected_13@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2024-04-24 13:09:47
=== successfully completed test case
=== === Returned value: true