=== 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",verify_mode => none,
ciphers => "TLSv1.2:TLSv1.3",
protocol_options =>
["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"],
dhfile => "priv/ssl/fake_dh_server.pem"},
ip_address => "0",proto => tcp,
ip_tuple => {0,0,0,0},
ip_version => 4,max_stanza_size => 65536,c2s_state_timeout => 5000,
backwards_compatible_session => true,max_connections => infinity,
connection_type => undefined,proxy_protocol => false,
reuse_port => false}},
{watchdog,<0.1501.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@0bedb54988af.2024-04-17_15.41.47/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-17_15.41.48/mim_c2s_suite.too_big_stanza_is_rejected.770.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@0bedb54988af.2024-04-17_15.41.47/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-17_15.41.48/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 =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
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_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@0bedb54988af.2024-04-17_15.41.47"
=== Started at 2024-04-17 15:41:49
*** User 2024-04-17 15:41:49.215 ***🔗
alicE_too_big_stanza_is_rejected_13@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-17 15:41:49.215 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c87cadbf6de355a5' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-17 15:41:49.222 ***🔗
alicE_too_big_stanza_is_rejected_13@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-17 15:41:49.227 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzEzAG1hdHlncnlzYQ==</auth>
*** User 2024-04-17 15:41:49.228 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-17 15:41:49.228 ***🔗
alicE_too_big_stanza_is_rejected_13@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-17 15:41:49.228 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='43afa51a17c4e5d2' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_13@localhost'>
*** User 2024-04-17 15:41:49.228 ***🔗
alicE_too_big_stanza_is_rejected_13@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-17 15:41:49.228 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost out
<iq type='set' id='ece0886614bce538c5f61f9897a57036'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-04-17 15:41:49.229 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<iq id='ece0886614bce538c5f61f9897a57036' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_too_big_stanza_is_rejected_13@localhost/escalus-default-resource</jid>
</bind>
</iq>
*** User 2024-04-17 15:41:49.244 ***🔗
alice_too_big_stanza_is_rejected_13@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_13@localhost/escalus-default-resource'>
<body>d1b5c120a16c542405b43d944b49d5545ff646ad87ccdbf75c9d12c45070b216c60d9036b1f495e19133fa22595cfe05734ea175785e6dc3d498e375a296a2b8b10f5d07bd41f84e1a30ef7d2c416922ddb3fa25d71a272a59e87c01ea5332244c908ade0a5e223ce52fc8846cb66362e0e3cddc3eea90d41f38ee56dc7cf7eef4f3c122259dbac69ae21c399e64a083a98077c09295847f80d0b5a327bb4f77c20bf89a0731a3804f3edbe1eec6c9af23d2e5fb2dba9124267f188dfac81fba830fb4dce6c807644a2732b5b22d8174225bf5d7ada9420238bfc70d553a97d5b7a34bdc4412ea3c6054629612e6278e19f16e273d936f53d03094918d5bd6721816b23a17464278aef01598a9a80c5c261d6b4c741407b3fc3946aef970595934a125b928b67eef3b9a0c1f7e31717e2463235615e65771002a31e0c8f617dfbdfa4f58ea4258ba9dc58e47cb3157d31af5ab11c7afb5b4690042e249453c1532e36fcc462c97f638921c80d1ff02c68a6e53552db27e1778a4cbed4feaf192118b9f6a6ebb5bc832eb796fe35358e718014ac147d4d7140a25f419c2211f84c62ba081cd239d4e4f94bde41847581720f57c7c57519373331f03ac1a3a0a88dc862aaf9096deca1df704292ea069a29f3f3b2308ffc5eaf2ead1a964ca9386eb4212d7ef264e1750e28d64435b35a7c9e304884313205470a2fd2350e7d74c6776f7d6cb5174330921c611c313206a9221d0dd13622fda5827a366bf353c1b13ca80bbf78111166048736375b75bafc23c0a7659ee86938828f70ea6ed352cf59c52ebd72e4a760170c99e4b86d8326a7e053d76103f1e8fa51eb212da391a6800d5a7d623a65a32bb41384f8a93d52d1fd38701b647dc3de082e97f01256d90e85251fd180cd61cca33e5263a5fa5f392ba537021c5f2add41d5c232564615a190ae1777231dd9fa659c96e0921a69b690689945434c7ea7774cc6f787dd80bfbc75a1970c795e9279f00446d6d1133034740b2e1103b4d1d05c2cc19e0bb92f2ae0b49ffd00583c7a4d8c6eaa215b42741e229abcdba0b0140e070d75105a854f8f713c774cadde069af0ab516fecbec1638814a5e4ae31f84ad1c86e852858cdaaac8d11b2ff7444aa29bf6fdfa0bd2836ef93c0a5b784552a8319d39fcb20ede047e591cbcdb59c5d26702408f208ed59279aab17559bbb7f6e1397fcfa9091c7002177a6a46e77474d6867da390e541f133d6b1e04ad9d35f6d263bf018f3f8642ddbf25511fd96ec76fafd690066ca4bc8cf0ca108c17ff20f9e807098a74fb047484f457ba34d235ca2733b4d9023ff2c69a2462b6eaad0f2ca59a83fbbea957e4b566b10c019fc537b0d71a1afec5823d2e28a33dacc6ead6e2a4ef9ac962d325d99d1244486368973e19fa9fd94d7a6f8e979875567cc96bab605</body>
</message>
*** User 2024-04-17 15:41:49.245 ***🔗
alice_too_big_stanza_is_rejected_13@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-17 15:41:49.245 ***🔗
alice_too_big_stanza_is_rejected_13@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2024-04-17 15:41:49
=== successfully completed test case
=== === Returned value: true