=== 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,
tls =>
#{module => fast_tls,mode => starttls,verify_mode => none,
certfile => "priv/ssl/fake_server.pem",
ciphers => "TLSv1.2:TLSv1.3",
dhfile => "priv/ssl/fake_dh_server.pem",
protocol_options =>
["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
shaper => c2s_shaper,ip_address => "0",
connection_type => undefined,ip_version => 4,
ip_tuple => {0,0,0,0},
proto => tcp,backwards_compatible_session => true,
max_connections => infinity,reuse_port => false,
max_stanza_size => 65536,c2s_state_timeout => 5000,
proxy_protocol => false}},
{watchdog,<0.1497.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@c566e7588063.2024-02-23_15.58.53/big_tests.tests.mim_c2s_SUITE.logs/run.2024-02-23_15.58.55/mim_c2s_suite.too_big_stanza_is_rejected.515.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@c566e7588063.2024-02-23_15.58.53/big_tests.tests.mim_c2s_SUITE.logs/run.2024-02-23_15.58.55/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{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_amp => #{},
mod_sic => #{iqdisc => one_queue},
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_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_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@c566e7588063.2024-02-23_15.58.53"
=== Started at 2024-02-23 15:58:55
*** User 2024-02-23 15:58:56.073 ***🔗
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-02-23 15:58:56.074 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e955e6d9acb5c492' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-23 15:58:56.088 ***🔗
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-02-23 15:58:56.098 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzEwAG1hdHlncnlzYQ==</auth>
*** User 2024-02-23 15:58:56.100 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-23 15:58:56.100 ***🔗
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-02-23 15:58:56.100 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='87403304e963f62f' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_10@localhost'>
*** User 2024-02-23 15:58:56.100 ***🔗
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-02-23 15:58:56.101 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost out
<iq type='set' id='6afa5f53255bef7eaa4389401e13ce24'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-02-23 15:58:56.101 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<iq id='6afa5f53255bef7eaa4389401e13ce24' 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-02-23 15:58:56.118 ***🔗
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>9b5452c85378e7383e768a14d951ea4810ccf38965271e81c5f46ab25758769ed4f1866cbf9e2621bf98cf1b712699527912a160239dbd89c67489db532f5edcf88126c6195cea3dbde36263936489fa42ff3a138a5d739c841c2445cdca9ce92711a4f9021c64da0384af8d11d6e705bfd6d70ad6506a40f5e6ed02d88f7a422a87831f51f17577bedf5bd21108e20d1191220924517e9000f3b62cd4aed7abff3c6608224679bafb864d003e0ee18d18a56d8b78aeb8e319d174df7eca2fa5eceff645b7722872e629d9dfab30f2ea3485019f49216dc3a708c99185a8069ebdc6694d038f68c6f27d7d6475a61c7c3a0aae0c11f8e4ef31128e5ddc38707461330a8caeb110fb8f9510db6e9e99cb07c0d63f389b1cb51a52df78cd24640a63a1c5f08adcc3878256e550f9c6c4595041745d3fa0478f1230cc4ca2b186b2425332379b27594fc0a228c000c50e2454ad624dd4694f3f819311d483d41b4d1d9376c6dd7a5d3f2e501670d950775a0c144c917b0d46dc7fddaf2aa5baa532bee78b4d7777c115be42792f1e8b008aee94aaee1458b9bae0b3499a845ffd4e7a71c55f85ca1c8673481985970f0c1f565267712b59b433e537a7904426bcb6bed1e0ee95491b23d2f10315912e788146ab329b41b73493f20dbc86be418ca5ac8a307016fa63a2f5fdaa3878367bac6fb1390015a9e9df13834eb72405231fb755c92502333691d811c2c35fc8d5df5010ee53ff8f40ce447b41eea4244d4fbf4461033c022e9618e28ec8d2ca09268204f514121d8ad24d66501fb2bc2fbdda1d43ea456bd9b0df717c0dff704c517f4ae080e12a439390ae3b31762bf2b44f09440f236a8fc401af2d112fc5ceb86dadb67a51f9758f6483f32fbc95e8894f4ec5e96aa64ede513e41fa442244c4bd98cae14316342375106f96d70931c848047623ef3bfe8edad69f81ebf8661c9dfb3cf168eb26eb39f4b8db27c1bd9c2f51f7c722153ffcc720084abec23753977c3f0d48c00c6274c4960475c2cb40bd8c9d03daa4e0732f1ed13edb39c5b6cfb0a48a9df12339711d5c93719c939770ce4afc878a24fcc3074be21e504fe6e37021619a790aabe97ee465dd95535880aa3442fae66adb9e06cc3b4e1cd8f8100f9aecd5f751ae59e7b41b9183fc3f38d82f26f8df682b54966782e77a4fededdd7ae63801c5b9c9b6c49d4a9e31ba7fdca07cc1dc9ccfc0453faef8d18b37102de5c04f4185d800414bbdb91238352ce8ca7f3cdfdc159263e4bc3b4961a24cce0a7a0ed0a840d9151c7c84f0f999e894b53d45c3ea010c3aa33c6b1e3d0e122a601ae2f06f2ad49af5309bd3f3d4a6941515203128bf32f24c8a72c5f6c1e6dc9f160076c4f18e2d7180fcfd42f8eee4b38236ecd6e838eb4ab740f2e2f133df27822815b459d1d6aad9280e09d5</body>
</message>
*** User 2024-02-23 15:58:56.119 ***🔗
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-02-23 15:58:56.119 ***🔗
alice_too_big_stanza_is_rejected_10@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2024-02-23 15:58:56
=== successfully completed test case
=== === Returned value: true