=== 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,
certfile => "priv/ssl/fake_server.pem",
ciphers => "TLSv1.2:TLSv1.3",
dhfile => "priv/ssl/fake_dh_server.pem",verify_mode => none,
protocol_options =>
["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
ip_tuple => {0,0,0,0},
shaper => c2s_shaper,proto => tcp,ip_version => 4,
max_connections => infinity,reuse_port => false,
proxy_protocol => false,max_stanza_size => 65536,
c2s_state_timeout => 5000,backwards_compatible_session => true,
connection_type => undefined}},
{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,"ldap_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@fbd36bac9dd4.2024-04-23_12.28.05/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-23_12.28.07/mim_c2s_suite.too_big_stanza_is_rejected.259.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@fbd36bac9dd4.2024-04-23_12.28.05/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-23_12.28.07/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,
ldap =>
#{filter => <<"(objectClass=inetOrgPerson)">>,
base => <<"ou=Users,dc=esl,dc=com">>,
uids => [{<<"uid">>,<<"%u">>}],
search_fields =>
[{<<"User">>,<<"%u">>},
{<<"Full Name">>,<<"displayName">>},
{<<"Given Name">>,<<"givenName">>},
{<<"Middle Name">>,<<"initials">>},
{<<"Family Name">>,<<"sn">>},
{<<"Nickname">>,<<"%u">>},
{<<"Birthday">>,<<"birthDay">>},
{<<"Country">>,<<"c">>},
{<<"City">>,<<"l">>},
{<<"Email">>,<<"mail">>},
{<<"Organization Name">>,<<"o">>},
{<<"Organization Unit">>,<<"ou">>}],
deref => never,
vcard_map =>
[{<<"NICKNAME">>,<<"%u">>,[]},
{<<"FN">>,<<"%s">>,[<<"displayName">>]},
{<<"FAMILY">>,<<"%s">>,[<<"sn">>]},
{<<"GIVEN">>,<<"%s">>,[<<"givenName">>]},
{<<"MIDDLE">>,<<"%s">>,[<<"initials">>]},
{<<"ORGNAME">>,<<"%s">>,[<<"o">>]},
{<<"ORGUNIT">>,<<"%s">>,[<<"ou">>]},
{<<"CTRY">>,<<"%s">>,[<<"c">>]},
{<<"LOCALITY">>,<<"%s">>,[<<"l">>]},
{<<"STREET">>,<<"%s">>,[<<"street">>]},
{<<"REGION">>,<<"%s">>,[<<"st">>]},
{<<"PCODE">>,<<"%s">>,[<<"postalCode">>]},
{<<"TITLE">>,<<"%s">>,[<<"title">>]},
{<<"URL">>,<<"%s">>,[<<"labeleduri">>]},
{<<"DESC">>,<<"%s">>,[<<"description">>]},
{<<"TEL">>,<<"%s">>,[<<"telephoneNumber">>]},
{<<"EMAIL">>,<<"%s">>,[<<"mail">>]},
{<<"BDAY">>,<<"%s">>,[<<"birthDay">>]},
{<<"ROLE">>,<<"%s">>,[<<"employeeType">>]},
{<<"PHOTO">>,<<"%s">>,[<<"jpegPhoto">>]}],
search_reported =>
[{<<"Full Name">>,<<"FN">>},
{<<"Given Name">>,<<"FIRST">>},
{<<"Middle Name">>,<<"MIDDLE">>},
{<<"Family Name">>,<<"LAST">>},
{<<"Nickname">>,<<"NICK">>},
{<<"Birthday">>,<<"BDAY">>},
{<<"Country">>,<<"CTRY">>},
{<<"City">>,<<"LOCALITY">>},
{<<"Email">>,<<"EMAIL">>},
{<<"Organization Name">>,<<"ORGNAME">>},
{<<"Organization Unit">>,<<"ORGUNIT">>}],
search_operator => 'and',binary_search_fields => [],
pool_tag => default},
backend => ldap,iqdisc => parallel},
mod_roster =>
#{backend => mnesia,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_amp => #{},
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_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@fbd36bac9dd4.2024-04-23_12.28.05"
=== Started at 2024-04-23 12:28:07
*** User 2024-04-23 12:28:07.335 ***🔗
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-04-23 12:28:07.335 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='606dcfc49f3c5db9' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 12:28:07.345 ***🔗
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>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-23 12:28:07.349 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzEwAG1hdHlncnlzYQ==</auth>
*** User 2024-04-23 12:28:07.350 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 12:28:07.350 ***🔗
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-04-23 12:28:07.350 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5c8d1e1eabf45850' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_10@localhost'>
*** User 2024-04-23 12:28:07.351 ***🔗
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-04-23 12:28:07.351 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost out
<iq type='set' id='ca2c7203995a8f6ff72f50bcb80aa66e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-04-23 12:28:07.351 ***🔗
alicE_too_big_stanza_is_rejected_10@localhost in
<iq id='ca2c7203995a8f6ff72f50bcb80aa66e' 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-04-23 12:28:07.364 ***🔗
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>c4c5c1a743f41a6f3b8a1abde39a85794f5ab0fd79d74989cb70e0fb07d1f8b441b618ee95a8531a52731259ad77f0e5f95d47fdd713536ae46a1407c5655f203d16eae31ab5ce843d819125ca98b1abe4060fd8230a6be40627a567286cb125b6ad17ad61e09b6df5946a9caf3d564b3a2e7bb90128676fc3717f998830adb687fa804dc7fbc866cea8716d82f3c149bc6b375abe81064543df978bb8b4232f68eed94b0e1bc02a67a0abe80cfc90f1736351598072fc57f01eafdd1fa492f26455c39b9a77db57a678982fa909478dace208a5d3e8b1edd2f4c4b10bb88eab51b32a7a15b81d2baf3d3eebe1577e704c0f68a1cc59271ecdc9e6f009529d0dfc9c469c78868caf838980eb07c964c35dc434fc43b49882c10bcb37163f63b28834c533384848501fd7aef6226d7469a38052dc3ae0ca40ba503a1c39e64cfd78d7b134efb2b7519ab435f43c90df2ac0691b48bf0336438bd6ec04e7d84d9f7caa809f62867c1f8088bd583bf23243e0c31f789279d3d45bb38d79a8abd885f226ad2f99be6952a4e67d8cff1cdb2e8ab61f1c41db8bb985425ee2ae1702143f401f1e519d4aef6473498f6186a8f549be849e9fd53018e44d4d42ffb8124475e8175e32876b42efcdbc5950cc041f3bae73927cc43be64d23da56eb5fec02bc50d0640c6edd4f92f33570fd3835d1d12c6727903ee5d2b6cd88fee8943331e16d25d35d7431a5d6f57066706af3c80bb5e8598f46143c230a4aaec50f30593599322977b7c846c7db499daea0dcfe9ca11b6af130a13e05a0b7b45b0e439916fa098aa9819fd8aed22aefb325e3a47ed891204578305cea59ac56949af2ebcbaab86353b7304a6c86d8d0cca19932c2a0412855328c30c20d5a2144c1d9be2f68c7634d06c1d83e9e36c2a54a09365bc0a718cc5716bc51ab1e80403d499dcaaae3f253da251e4ed9fb05a9171fdb3b39c4d14012a513e6bbfea7f26234ab07c2dc58b3b4cd7292e8ad4606700cbdf74791b3e746a6a7828bab279d8bab18cb5954a35307258b04f1e77b4b4e4f2429991c4a0ab740b3a79d67b51aaa46e06f9cc2c5bf9e430af84818f9bd91be9ca1a4a2844a5010a9d31b580a7ebaff722d43b37ef01b41c4465b2a9ff34021baba6b899e276df0b7aa3cd2eb06bfa2b4010cc5211d732de76a4d4957b1e7db1696f4e0ca9ad6c7b2b70c2b371c4ac3ac4084a6baf822f5ab3c276712798db28a1d2fbf6279f5f7e47645c9f3c5d66b31e940cde001cb35ab6ea47c9a79302b36ebab25c3b6896c0474d219824fa08a929440c73149d0fdaf09064311ce48d116f70d7712efc76f61a3ab4675a9b60d7cf213fa463823db70e5abb814a95df822c6a29b0f24eca85b3829e3358713beb03433c093ff1280dabab541ba2c22e7e2b727a1f7afccbda45562598684f8edf3</body>
</message>
*** User 2024-04-23 12:28:07.364 ***🔗
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-04-23 12:28:07.364 ***🔗
alice_too_big_stanza_is_rejected_10@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2024-04-23 12:28:07
=== successfully completed test case
=== === Returned value: true