=== Test case: mim_c2s_SUITE:too_big_stanza_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.1417.0>},
{escalus_overrides,
[{initial_activity,#Fun<mim_c2s_SUITE.0.115367038>},
{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@a557e8d70b1c.2023-11-17_15.09.37/big_tests.tests.mim_c2s_SUITE.logs/run.2023-11-17_15.09.37/mim_c2s_suite.too_big_stanza_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@a557e8d70b1c.2023-11-17_15.09.37/big_tests.tests.mim_c2s_SUITE.logs/run.2023-11-17_15.09.37/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{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,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>},
{connection_steps,
[start_stream,stream_features,maybe_use_ssl,authenticate,
bind]}]},
{alice_bis,
[{username,<<"alicE">>},
{server,<<"domain.example.org">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,
[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>},
{connection_steps,
[start_stream,stream_features,maybe_use_ssl,authenticate,
bind]}]},
{carol,
[{username,<<"carol">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"jinglebells">>},
{transport,escalus_bosh},
{path,<<"/http-bind">>},
{port,5280}]},
{geralt_s,
[{username,<<"geralt_s">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"witcher_s">>},
{transport,escalus_ws},
{ssl,true},
{port,5285},
{wspath,<<"/ws-xmpp">>},
{ssl_opts,[{verify,verify_none}]}]},
{carol_s,
[{username,<<"carol_s">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"jinglebells_s">>},
{transport,escalus_bosh},
{ssl,true},
{path,<<"/http-bind">>},
{port,5285},
{ssl_opts,[{verify,verify_none}]}]},
{kate,
[{username,<<"kate">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrowe;p">>}]},
{mike,
[{username,<<"mike">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"nicniema">>}]},
{geralt,
[{username,<<"geralt">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"witcher">>},
{transport,escalus_ws},
{port,5280},
{wspath,<<"/ws-xmpp">>}]},
{admin,
[{username,<<"admin">>},
{server,<<"localhost">>},
{password,<<"bruce_almighty">>}]},
{secure_joe,
[{username,<<"secure_joe">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"break_me">>},
{starttls,required}]},
{clusterguy,
[{username,<<"clusterguy">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"distributionftw">>},
{port,5232}]},
{clusterbuddy,
[{username,<<"clusterbuddy">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"wasssssssup">>},
{port,5232}]},
{alice3,
[{username,<<"alice">>},
{server,<<"example.com">>},
{host,<<"localhost">>},
{password,<<"makota2">>}]},
{bob3,
[{username,<<"bob">>},
{server,<<"example.org">>},
{host,<<"localhost">>},
{password,<<"makota3">>},
{port,5232}]},
{john,
[{username,<<"john">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"cosontuma">>}]},
{neustradamus,
[{username,<<"neustradamus">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"scramshaplus">>},
{starttls,required},
{tls_module,fast_tls}]},
{hacker,
[{username,<<"hacker">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"bringdowntheserver">>},
{port,5223}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a557e8d70b1c.2023-11-17_15.09.37"
=== Started at 2023-11-17 15:09:38
*** User 2023-11-17 15:09:38.259 ***🔗
alicE_too_big_stanza_rejected_7@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:09:38.262 ***🔗
alicE_too_big_stanza_rejected_7@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dfd4c4562ea3c8b8' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:09:38.265 ***🔗
alicE_too_big_stanza_rejected_7@domain.example.com 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 2023-11-17 15:09:38.272 ***🔗
alicE_too_big_stanza_rejected_7@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX3JlamVjdGVkXzcAbWF0eWdyeXNh</auth>
*** User 2023-11-17 15:09:38.274 ***🔗
alicE_too_big_stanza_rejected_7@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:09:38.277 ***🔗
alicE_too_big_stanza_rejected_7@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:09:38.280 ***🔗
alicE_too_big_stanza_rejected_7@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='60d82726abb2003c' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_rejected_7@domain.example.com'>
*** User 2023-11-17 15:09:38.281 ***🔗
alicE_too_big_stanza_rejected_7@domain.example.com 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 2023-11-17 15:09:38.340 ***🔗
alicE_too_big_stanza_rejected_7@domain.example.com out
<iq type='set' id='8a1220fd5b48668e547088a6809c0f1c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2023-11-17 15:09:38.345 ***🔗
alicE_too_big_stanza_rejected_7@domain.example.com in
<iq id='8a1220fd5b48668e547088a6809c0f1c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_too_big_stanza_rejected_7@domain.example.com/escalus-default-resource</jid>
</bind>
</iq>
*** User 2023-11-17 15:09:38.346 ***🔗
alice_too_big_stanza_rejected_7@domain.example.com/escalus-default-resource out
<message to='alice_too_big_stanza_rejected_7@domain.example.com/escalus-default-resource' type='chat'>
<body>ba0cd7d91957104693a04340ed22eeb25de3e80919f62a7b04c09b97afd8266a741838cb7a0c8c85b7f8431c5a3c882f0f56b77e89642576ad771197325c7a407d1dfc6bee62f2e6e53a4f5294bdc821002003864a05bf1e745deeddc6ce58901ff24de1a2c6a94fecde293f9385931131f4f29da160e3c82d9e8a830a7f8661e7c9a77d92f3b75860e9a45eee06aa28a34610edfd8faea64b0eed614c437982a771f4d184697a5bb318be51fd00542639da3d4d5436579eb1fae0dea60fee7ae0ce57e6f7cdfcc0dbf97145c3fc0dfb10dbc0a4e67850b417102ef2d18b1f63ecbf3cc1ec9c8d887fe363e803c853b8d197d80f661eebc21c8c952687d1968829ca6bed82296c14ef0e77d0664bdfe9725b1c95e32b5cef87558559a6f9c43d3b7524a159edd942e02e76de58f77e1743de95c040f1a0ab33d2e9b7673dde86007933cd8fee3ad9a60da93299bb4319c9e112d173ada053b78bd51f445f1be637c89c34c33e3ed9232e364e99608a5f967fc0e5cd168d74279c97fed2e9a24afa127729ac16f6844c05a42a8b255e5ea74961a56a2946793ecd5ba29ace0094b35b4557fb785d5d6a9bc630f3608ca6eacb90344b387fadfecce6b5bb1c95421a2979eb072ccd4a34013e90cad0176e0c1949a080bff131e2e98b890304ad995444bcaf28eea7e6de8733b56f2b73db2aedabba4177f4b7a3d518e6359c2f6af8d04f98bf484a503eddb1016613659ddcad64f78ed99f89f6032dc882195109aa3cb02bd1a659dfa738392b0f6210e62315bf79f647e4f2c4f4e85a542d05ce857872e29d9d7aeba74b4c72a8f04ca2a73729e95c4646db8c2038e4e10c831da814998e0b9c78aa16fd8adc1484c9e6a50555728a8053a327096ff6b6ca288bfe4a4de835eacb71199b25dc70d2c5afb32f94cbc732f010c83864456635f125c46310b278754b9a877a7b02ffb76579e5bda8c44c826a2b1fc7d24a4fefd3b4beb9121a2ef3305011fa3c6fe9f141b760eade45dca096eab23b4215b34427ae7cb869441a161f35abc8e643579b6a42b215a9922da7dbf124b98e25452ff7375619ba00a19365453a91a53d802f940e3c909fc1ec6cd37a4750f19a91bfbdaf4c27a61fa6907825ec101e2a0177464f3b68ae57f50b25c1f51414d221d7e3b1d9cc7a00e733ad38956e9ae74ea88eb1f2ad3aacd85ab053bcf9ce6e4909c6a63d9a259970a6219f9dc89e69d75db2e1c6de45a3bb9bd9b2ca7f1fdca6f83c583dc582a24803eae6f3e51818b4973dc9c7f632ead9bcaea14697d03b0dd45f62645c35c15db012249daa36cc6507a238feb97c6bd35dbea5932122215cd0c837721ac657a7e5689f874bc94c5c7c5f1b58380b31cba3d486610ccc9c890f1080e13f4ab87e27fe755e50b3d197fea8483ce94ad0e4ed6301117dd1ecd1598e39</body>
</message>
*** User 2023-11-17 15:09:38.346 ***🔗
alice_too_big_stanza_rejected_7@domain.example.com/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'>child element too big</text>
</stream:error>
*** User 2023-11-17 15:09:38.346 ***🔗
alice_too_big_stanza_rejected_7@domain.example.com/escalus-default-resource in
</stream:stream>
=== Ended at 2023-11-17 15:09:38
=== successfully completed test case
=== === Returned value: true