=== 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,
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_address => "0",
ip_tuple => {0,0,0,0},
ip_version => 4,proto => tcp,max_stanza_size => 65536,
c2s_state_timeout => 5000,backwards_compatible_session => true,
max_connections => infinity,reuse_port => false,
connection_type => undefined,proxy_protocol => false}},
{watchdog,<0.1502.0>},
{escalus_overrides,
[{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
{start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
{preset,"odbc_mssql_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@17cbf61cf260.2024-04-22_14.32.24/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-22_14.32.26/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@17cbf61cf260.2024-04-22_14.32.24/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-22_14.32.26/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_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_sic => #{iqdisc => one_queue},
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,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
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,<<"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@17cbf61cf260.2024-04-22_14.32.24"
=== Started at 2024-04-22 14:32:26
*** User 2024-04-22 14:32:26.378 ***🔗
alicE_too_big_stanza_is_rejected_11@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-22 14:32:26.378 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='37eeeea051daa623' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:32:26.388 ***🔗
alicE_too_big_stanza_is_rejected_11@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-22 14:32:26.394 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzExAG1hdHlncnlzYQ==</auth>
*** User 2024-04-22 14:32:26.403 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 14:32:26.403 ***🔗
alicE_too_big_stanza_is_rejected_11@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-22 14:32:26.403 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='63a533bd4bf3b880' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_11@localhost'>
*** User 2024-04-22 14:32:26.403 ***🔗
alicE_too_big_stanza_is_rejected_11@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-22 14:32:26.403 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost out
<iq type='set' id='fd65b6e7200bf3fb4ed415918980ec91'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-04-22 14:32:26.404 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<iq id='fd65b6e7200bf3fb4ed415918980ec91' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource</jid>
</bind>
</iq>
*** User 2024-04-22 14:32:26.406 ***🔗
alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource'>
<body>28c020bbf79342839d671479c242d75076d7c23144f60506a7f365ecb0a9a8a513f6a482841a13378d66a1b0b5639239d646e43057c336306ea1156008e70efbbcc7795bfe262d0d2df681a4d19c7009286b912f846752d8cc5f4818b65f6c59cbf78a8c6fc7550b1152f44b4b636e810aae42e90d07fd0622f1564fe93062da9af0426b645033709b9b6a7c3e029036544a8c20b7ea6524f48993bfaf0fd321042a6a6356fecc7fc5166b4a36f846bfe76fc0beffa8d796ab542627d44536047805c3f73b9aa63b475e633b81a5a56fd52e4488cfa9658a0e16697f341ccd613920da8deebe5cdede20f26502df9703f239b6f94b132cfb5e54ea84a2cec6f216364b207bb4d4524df346bf6d11fd0525cc1faf79b51d5dc8c5d16bbc93a1c7042e7271677fd763c7e2545a040e0ead047d3e455cc9ffc91b6a6140814fd075bfc216cfdaf76e195e277ddc1ef5dad462ad7da77334241fccd9416f379c3e7aa485eeb78873f5d6f02c4c41281528515b15340c4d48154f06beb097732b12b3a10cfc9b4bfce347ab222f3c44a648e4362308932fa85b75cee4778e8e5d030e6834b5639bc929501d701fb281bfe113456feb483193a1ebfb20e1527c1469d4b2ecf37d5696361cc6d3fb7e259a85164f05b5f3d8ee13aac615ef5a706e4f79c3b7e033b61c04ef0f82066b68ba376a8929eb5ed10a7ea0186ff5643729323a303cc001aea06c2753435a8d9bec00c90e32ca2d66188398206321f189f31588c38575de819a1c1dbc8d5a429c46eb9420d9c462c335661d70d8f7c89157c6a3e1394e93a4cfb9893865fc31a8bf40bc483eb79fd5aad4e862c5e7304daecc133e7ab9305548d4f3bb48b460f8c84c85de97cdc77d2791d07da89267cfff8c2dde08bce9f422a6fc37682524333af38a40cc75ab5016dd420f29b038ea41d9efcce69865bf2c91cfc87f472db1dd4f1cb411e7473c231399631838ce80e3dfe31c0f8820a32ded38b72c02c5e639af73cca184fb7df0c2965f26dc61d463d25d2080a2cc3d475f5d96a3779b71e2be53dbc887bef72d05de652aa91bb416266cffb51830df8bcaf2fecd54207b4e8750576d22ad9947df6f14d89f024003a34e358e8307428babd375b74b9e90865c4d0c217168868b6d6aad5d5a10fbd9b268aa7429a3c6a6e72824db7cb9e3803e325c1afce152ae7ae565416911cd5011e99518bdcf7f5df92acc1c95b0768c820b354213b56222e2b29bf6da212031422030f67d200d91b0a0f1c9bb3a96ab0c5fd998117dbdadc23f870051aadd857cd9463e7b86b5a9a936459efcefe60870af92c1a410d00f7ae5a9d00e0a6a6c45525105347a5dfc5dcd381600715ad5a9e5331d858fd75817cfc5d69d7afecf611ff13ff58f3e6132064862895114538c336bcf8fd3502fbc18d147dacac5b0ac1c</body>
</message>
*** User 2024-04-22 14:32:26.406 ***🔗
alice_too_big_stanza_is_rejected_11@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-22 14:32:26.406 ***🔗
alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2024-04-22 14:32:26
=== successfully completed test case
=== === Returned value: true