=== 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,
proto => tcp,
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"},
backwards_compatible_session => true,ip_address => "0",
shaper => c2s_shaper,
ip_tuple => {0,0,0,0},
ip_version => 4,max_stanza_size => 65536,c2s_state_timeout => 5000,
connection_type => undefined,max_connections => infinity,
reuse_port => false,proxy_protocol => false}},
{watchdog,<0.1500.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@05491d0c2b35.2024-03-13_08.15.07/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-13_08.15.08/mim_c2s_suite.too_big_stanza_is_rejected.1155.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@05491d0c2b35.2024-03-13_08.15.07/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-13_08.15.08/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_presence => #{},
mod_disco =>
#{users_can_see_hidden_services => false,iqdisc => one_queue,
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,<<"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@05491d0c2b35.2024-03-13_08.15.07"
=== Started at 2024-03-13 08:15:09
*** User 2024-03-13 08:15:09.305 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-13 08:15:09.307 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ebab6ad000da8aa4' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-13 08:15:09.320 ***🔗
alicE_too_big_stanza_is_rejected_10@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-03-13 08:15:09.330 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzEwAG1hdHlncnlzYQ==</auth>
*** User 2024-03-13 08:15:09.332 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-13 08:15:09.332 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-13 08:15:09.332 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ac1cb2438388b283' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_10@localhost'>
*** User 2024-03-13 08:15:09.333 ***🔗
alicE_too_big_stanza_is_rejected_10@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-03-13 08:15:09.333 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost out
<iq type='set' id='cda7c3bbd54420b79e02b917b9c0ee79'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-03-13 08:15:09.333 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<iq id='cda7c3bbd54420b79e02b917b9c0ee79' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_too_big_stanza_is_rejected_10@localhost/escalus-default-resource</jid>
</bind>
</iq>
*** User 2024-03-13 08:15:09.344 ***🔗
alice_too_big_stanza_is_rejected_10@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_10@localhost/escalus-default-resource'>
<body>338a9f213620d0e822c7b1d3c0b296afa7de2988a13279375fb1a477f0c533dec840ec5497a2212da2852ae5f6add96692cfe3dfc285c3a9d65de245ac157508340afd102ca34cc985401cbc9b6212b702d33ed49ca4d59bf574901bcdf43dfd068cc458ca78f02ec876c4e86ae054b98df0f4c7fc7c10b73ff338e7561a28f7eff70b92b128b10407bcac46f576b1dc8888a3bb533d709c812eea7a834874e229364d559b33383942059e07d74364deba057d0405023ddc064651ccab878589ab01ba15f1e94e044a779cd48710e2f72f633521d576f6148bf15fee6a752ece53d0e24f9bfa92a90c103fc6feafa3a8b37ed853548708486ab8315475fcf9c607011ca386e4479b7ccab6dc7cbcdfd263e10b4cc136e55aaf5255c798ef63368a876b6f4f699546458757b8ce557d83c7413350385767d77254afa1a4098456de65161a1d7156a159375cb54d529d776e5df0f90a7dec09b76249449acdb9070e965437babde78058052dd65d1a70b7532d64c07223b4a46310193f06a0d5e85ba9d2dcb35bb0722b09938d9854abb408a5f4492fc7063aad47b9f6861bbe5307bb78b78eb988962d328d788317fc0f5b05ce9270a53c1d5cdcb30b4566e04d9f035c6b7a13a1721225fd939585a697b726d50a32cf2a5acc4bee38054ca336e8b4b90bdf9a0f6f59d027fcab83661263c536589ec8e3146978e5975d74d858f06e7ff2c32a80d1b69ee6a43efe2b2f85d9a745408fe38ea5f1e7da0afff2593d48af5efd2d4dfd2d8014dfe5ecebbb2cf891769af638824dcb7a08485494321bca2b4c25c328c6f284ca7aaa66103eb860db3eac30d9e24837495c89dcd08536ae2e1f52cd160deaef81ad90bc1e8dca57f15e067fba7d6f42c0e5dac1189137a23bcaf38ab472a05fad8b34abe8433367142c2190bbdbd11a8adbec7a3b9fb24116a1780bbe584aece04d87911ccd007f036d452b38e26cb3fd3e133e7b882041c6ca68377539435b419e2ef7e332fe2fb2f8d808af51833c769a3763f2d91bb09bb1f3192f816329e034da989b17892a5a10accf94923154eb598c3a71ce81ec4839f7ae0101f8107a8a9caa1bf2a6fda1baa37345e358b0b56f01491fd1f26e24a8108ae6c53f84f9d5f6c51540654cd4e3efc30e7b584c96b91e0f4a58afba241eefa8c51335e6c8d9917024a6bcd2036189d8402653975f0541f75aa2f0a3290d2235c85260e7014f616d7567ac8b49ba7dacb828a170e3505eeca1d94c9698f007888d1bca00236ca0c24ddd7f0629048144775e91ec89b1c051236cfa86751f56039a8b14a326d950c74d738fa1b04de17ab844b2f618e704a79078ea25b3f6ee473ff125cbe032c83762f271e84445b7f561e00c0e20b8c55b485d6c4a595d6bc59deccf03139802d453643c505214b16bc07a85b5fd8ec7ce6696</body>
</message>
*** User 2024-03-13 08:15:09.345 ***🔗
alice_too_big_stanza_is_rejected_10@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-03-13 08:15:09.345 ***🔗
alice_too_big_stanza_is_rejected_10@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2024-03-13 08:15:09
=== successfully completed test case
=== === Returned value: true