=== 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,
ip_address => "0",
tls =>
#{module => fast_tls,mode => starttls,
ciphers => "TLSv1.2:TLSv1.3",verify_mode => none,
certfile => "priv/ssl/fake_server.pem",
dhfile => "priv/ssl/fake_dh_server.pem",
protocol_options =>
["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
ip_tuple => {0,0,0,0},
shaper => c2s_shaper,backwards_compatible_session => true,
proto => tcp,max_stanza_size => 65536,c2s_state_timeout => 5000,
connection_type => undefined,ip_version => 4,
max_connections => infinity,reuse_port => false,
proxy_protocol => false}},
{watchdog,<0.1485.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@549f635c4ac9.2024-03-11_11.28.53/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-11_11.28.55/mim_c2s_suite.too_big_stanza_is_rejected.258.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@549f635c4ac9.2024-03-11_11.28.53/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-11_11.28.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_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_amp => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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_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@549f635c4ac9.2024-03-11_11.28.53"
=== Started at 2024-03-11 11:28:55
*** User 2024-03-11 11:28:55.719 ***🔗
alicE_too_big_stanza_is_rejected_8@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-11 11:28:55.720 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c3e0d174349843a9' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 11:28:55.734 ***🔗
alicE_too_big_stanza_is_rejected_8@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-11 11:28:55.746 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzgAbWF0eWdyeXNh</auth>
*** User 2024-03-11 11:28:55.747 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 11:28:55.747 ***🔗
alicE_too_big_stanza_is_rejected_8@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-11 11:28:55.748 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b21498c423ce9478' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_8@localhost'>
*** User 2024-03-11 11:28:55.748 ***🔗
alicE_too_big_stanza_is_rejected_8@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-11 11:28:55.748 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost out
<iq type='set' id='7b4921a532ec3db42b68104bfcab6009'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-03-11 11:28:55.749 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<iq id='7b4921a532ec3db42b68104bfcab6009' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource</jid>
</bind>
</iq>
*** User 2024-03-11 11:28:55.770 ***🔗
alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource'>
<body>d339eb05397652a6d20e4915d2a40d20c1d531ad43069a70122faf98dda3bb1ddba538f493e68e5c145d7fbb947276d035deae8979980e82b4574e490b95fd5169c8dadb95798ef153335235b5d66ddc8f5bffdabe4170068094827b9be97cc2a7b475e1181666a9a3521233261b8769d4d316dccb87be3de31edb67eefad55fbdaf4901f1e50b883c8331317bcb0bd6a58f2041392c032a3afc20b9a4581b15c728ad336d04a580fac2236c4db8e067766908d881324fa8a0ad5d5ff781a06474fa4b1a876c0e68ddb1ccef20ca29a2a11e883697dd78f3aa9adf9a4f353cb096e368b28eb6a68c41f93db7d12bbc7c5ce1c4ad646e73e3ff26a5b814a51ef993ebb38a0a4a3c2cbb520fa4993822b26a89fc42409fdd1c565f198758e6ac96af5d4b3abda8cf71a3592b240cd8cf6effb102f50e764a14de1d072ca7a000cae89e318e1a2b52ab0b045105187bb6b6c6b43a6359d71cdb681bbdf3d9714cc541af8cb9e450d3da713b9fe782ef5edd341e5bef6526fbcefecd03dd15553b22e1b055bb57e03afe768ab02172e09138744424b652f1295c6b6d7818e86a55984ee700422750c4a2b4d76c516931643e6e6080b7b54d254c0a50cb1d4d6a64665f99c7eccd00ed2425a28bfe4079ed37fe55ea9e2d21ae9009f5cb808f6c41f72ddd4af8e56ea2e8e467023e0b76dfbc692c10375b04061e96356044433c20c98122fbc0c4c27b1d3066034d0eec0953ff285e583a18560a67545edef6f402ccbfa62777676b66498a370ebaed8b97ed5844436617283f17a44a450c218961350cc67c31ce856b434654c4aaf7979792f8bbb4a347da4083a0138992806872917d18e0bbbeaf9badd55ecb69cfbadb5b37fa9f9d19dada2ca8d744d9dfe9c157cc73590d2f846f34c453b017cfffe6d17b539089497a28e3e02e96882cfa4f305b768067e0bde82a2f23a73ed2d4246b6f4a82e2f3dc3e85305224234d3ca6aae1239a6d758692b61027ac6402dd7cc62ed3c5e07d5139758ca63b339de47a31b2d5e5f52d4812514ecd96ad8573b64912e4b74b6fa881e709be38e727c7a81708823db816d55b888f1b5b5348789c4d5e23e0367c7be18923a8d198a4cdaf03c8487b06b9bf823c82bba502de3a0fe330e4817a94ae9c76b038c6c1a7d5cfc3fbd31ae4404522f8c2d4087346eb459cf8125d94026801063d6d0065cea268b79b9550bc0bc976e9d4a6bb1babf28d5df658b2337c86284ae929ad6fb12f30a2a20d5dcbc54f08e27ac048b58ac8afe4190cdffe6f883570c3f80161cf8825a9c00aa45f8bb45e51fe7b39b5a7ae039df7f2b6a78e63f38c4b6ca58ba2145b76a36e55e160a05f8bced4a0baf35a941c93c9bea470336d9a08513aed60c122788de274411ae24a271cf654d2f62ccc28ab7474a489f36d27b12523db3d234bdc</body>
</message>
*** User 2024-03-11 11:28:55.770 ***🔗
alice_too_big_stanza_is_rejected_8@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-11 11:28:55.770 ***🔗
alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2024-03-11 11:28:55
=== successfully completed test case
=== === Returned value: true