=== Test case: mim_c2s_SUITE:too_big_stanza_is_rejected/1 (click for source code)
=== Config value:
[{c2s_listener,
#{access => c2s,backlog => 1024,backwards_compatible_session => true,
c2s_state_timeout => 5000,connection_type => undefined,
hibernate_after => 0,ip_address => "0",
ip_tuple => {0,0,0,0},
ip_version => 4,max_connections => infinity,
max_stanza_size => 65536,module => mongoose_c2s_listener,
num_acceptors => 100,port => 5222,proto => tcp,
proxy_protocol => false,reuse_port => false,shaper => c2s_shaper,
tls =>
#{certfile => "priv/ssl/fake_server.pem",
ciphers => "TLSv1.2:TLSv1.3",
dhfile => "priv/ssl/fake_dh_server.pem",mode => starttls,
module => fast_tls,
protocol_options =>
["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"],
verify_mode => none}}},
{watchdog,<0.1498.0>},
{escalus_overrides,
[{initial_activity,#Fun<mim_c2s_SUITE.0.67541742>},
{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@230e13636cf2.2024-04-23_06.26.02/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-23_06.26.04/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@230e13636cf2.2024-04-23_06.26.02/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-23_06.26.04/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => #{},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_register =>
#{access => register,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}},
{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@230e13636cf2.2024-04-23_06.26.02"
=== Started at 2024-04-23 06:26:04
*** User 2024-04-23 06:26:04.815 ***🔗
alicE_too_big_stanza_is_rejected_7@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-23 06:26:04.828 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6db02643bb44fdf9' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 06:26:04.833 ***🔗
alicE_too_big_stanza_is_rejected_7@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-23 06:26:04.843 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzcAbWF0eWdyeXNh</auth>
*** User 2024-04-23 06:26:04.848 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 06:26:04.848 ***🔗
alicE_too_big_stanza_is_rejected_7@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-23 06:26:04.848 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='99dfc0604a80ef57' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_7@localhost'>
*** User 2024-04-23 06:26:04.848 ***🔗
alicE_too_big_stanza_is_rejected_7@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-23 06:26:04.852 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost out
<iq type='set' id='7405b792eb97fcc6dcf64b7ddfb8eee8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-04-23 06:26:04.852 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<iq id='7405b792eb97fcc6dcf64b7ddfb8eee8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_too_big_stanza_is_rejected_7@localhost/escalus-default-resource</jid>
</bind>
</iq>
*** User 2024-04-23 06:26:04.855 ***🔗
alice_too_big_stanza_is_rejected_7@localhost/escalus-default-resource out
<message to='alice_too_big_stanza_is_rejected_7@localhost/escalus-default-resource' type='chat'>
<body>1b6c3e8cef07969135ed84afe3c29d93cab7c89aafc5366dfbaf8d9c8a0b1cab5e8bcb3bfea74c7e7cab3370e4cace01deec21d2f3a51ff10a2ed97de14f8d1ecd476e4e0bf0985638c5ae7d7c4512f44a1264ef1881d902ffb14a4b831db1ae35753572a14e883a7577828bbe9b6dee90315584b3ee7a1cc04b115226608c3628d4e1fa8e48f979e45635e4d29e06302db63bf48ca7110780e8e51f44d4093607ee55eb8786be50e1f1c010277fef8186c118d3e91d331afff58aa104ec2f687a5ee4da56a839ce329cadfa2117b699bdd6867064cdc8d22a6ab363113eaa292054fbe60424db9a50ff3ac9f93ae5d3ab6a853ba9e9c74ad8a95b5720459dbb88c9102faef1c981188cf0714d0c1a68d1b7c4bc9022cfcb67464495058ca24ac90de321a9c33eef81b10ec45c3c6a5cd9381be008dc029b0fb8798578b9f93c3fc8e3bb5a03c1b8120145a5d7959f73728a801a46a927e25d522d204118a345895e80f0c0b395c6bf232bd9837939a3e7f2334efca445aca245797d36e80d4d21bf335f45409b10f4b05497f2ec3794f5965f3ac71d218de5751c574a8d2415a0311d4c13db9e2e993de8e556c425c34a1bf69aaf3ab12eaa4051b0a7063ed1fea0509fb17eb03937d0f5be757529308f90f3a8223376387ad4cc588c603b67cb86723cb21efed63682b071e5ee6138832b87000637d4647080fde8ad36d8ff55c8b2a59af3ecff6cc7825f38d0a6f3aff9cb590dc1ea6dc33e55033da52e47b57f0788907e393935df980a98c91507db901187d23e3a0b861c38bc339d39f9adce7361947e2ee0e54f65da19e7f14fa74d151b713934d4532c8b081a5ef1ce8a8f5a9704c4c2c5b6bd51adda979d574186dfc92ae00d89d6763e4337ffbec7d4edd578dc1ae3c6091173d798cca35bef403068ca8060267208170f2df02c123af434a30a921d9efc8ca1ef370786f22a4941aff15ce341c89e2c4db2512f3a44db1225d450973c1b7e1ac6746cfed3a407db4816dda5c198b46aa3704231c353bd09e96dc675959604b5a5e3b94a75d9e8f64fae703c912c36b6a5ea3e5e9c53526ad17ce9823fb3976709051c0d53e420938b75dc2b44be343c83c3165c746986c90f9ce077c74b1da54b8114cef273ce3b3e6c28f025af3b5c56a4863519cf649b3a20b97bb9a56e1bf141ff93d37dbf1702389221a5f889a8a4d0c07e817d122105579dd7ee87f7448fd02c95b286212c45ec9fa69a0d8a5a653ca5e3cc07517b57e30485cbc236578eb95e60e1852bcb70d38b55f2310a551c452792ee829db39bdfc68bd68b067021a709ee07f71131aba54d94f60d932a09863b052329a6f49e802e4672b8959d9fcc3dd2ffe695178199c971bf6d09b509cd918e489d375fc860d7bd17b93948fc2d4c7345a92d1bafc347793fbcf1d9cb6549d9f9</body>
</message>
*** User 2024-04-23 06:26:04.855 ***🔗
alice_too_big_stanza_is_rejected_7@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-23 06:26:04.858 ***🔗
alice_too_big_stanza_is_rejected_7@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2024-04-23 06:26:04
=== successfully completed test case
=== === Returned value: true