=== 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,
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"]},
proto => tcp,ip_address => "0",ip_version => 4,
ip_tuple => {0,0,0,0},
max_connections => infinity,reuse_port => false,
connection_type => undefined,max_stanza_size => 65536,
shaper => c2s_shaper,backwards_compatible_session => true,
c2s_state_timeout => 5000,proxy_protocol => false}},
{watchdog,<0.1487.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@77b2c96015af.2024-04-26_12.39.16/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-26_12.39.18/mim_c2s_suite.too_big_stanza_is_rejected.4.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@77b2c96015af.2024-04-26_12.39.16/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-26_12.39.18/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">>,deref => never,
pool_tag => default,
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">>}],
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">>]}],
uids => [{<<"uid">>,<<"%u">>}],
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 => []},
iqdisc => parallel,backend => ldap},
mod_roster =>
#{iqdisc => one_queue,backend => mnesia,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,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_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@77b2c96015af.2024-04-26_12.39.16"
=== Started at 2024-04-26 12:39:18
*** User 2024-04-26 12:39:18.467 ***🔗
alicE_too_big_stanza_is_rejected_11@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-26 12:39:18.478 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='35a696eb0458b4de' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-26 12:39:18.522 ***🔗
alicE_too_big_stanza_is_rejected_11@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-26 12:39:18.536 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzExAG1hdHlncnlzYQ==</auth>
*** User 2024-04-26 12:39:18.538 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 12:39:18.538 ***🔗
alicE_too_big_stanza_is_rejected_11@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-26 12:39:18.538 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cb850697abbd675d' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_11@localhost'>
*** User 2024-04-26 12:39:18.539 ***🔗
alicE_too_big_stanza_is_rejected_11@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-26 12:39:18.539 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost out
<iq type='set' id='e263ae9fb8b19fe0b846a15917e81a69'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-04-26 12:39:18.539 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<iq id='e263ae9fb8b19fe0b846a15917e81a69' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource</jid>
</bind>
</iq>
*** User 2024-04-26 12:39:18.550 ***🔗
alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource'>
<body>40f9b64a90ef5179c570658797f840f0581fe597941709c0e6206d2a9ee03f08eee0dfb5e245763813dd8a50fcf5540e82de93dc0e95178bcbd600e98cc1c2de3d1b6e3282d41bc58815c743918a4d0864821fa4b528291d53c8e8447a5daacf1b2ee26cb207f33188496787cfdb99048dcaebf63b4c652bb1df7384c698b5c9a9eec3191798fc0c678eacc38e0c38b1bc5a8145a157623b9f20cef51ded4d6e9e6df3b8667fe5c827b315a1e32b8accbbe20d3f47314010dbadf2d7d5fb932ef1c1cefcbbf61ed46ac1917a8fa1915741a41a958f1b957b22904c8aef52ee805fcbc1ea2778c452c66dbd94948b1893d30a3b550f095ca78f0e9fa68f1cfd7962c400f3d6d3f7034b9d9437191fd19749ff0315b67c34767c916082f0f8d758ffa4a3d906a6638513866341b37c5c974f78262520acb2811a26572ccb6f67b6020e0d9ed409af606376e5bda1720be58c220d95a1c1a9e8460cfb350c2d9a5ce3c26ed3dc217a1378ed9df87cb369c1f4504c6a476975691cff8ac9cc79cb6f7833c2c87a497f2341662bd6e994d4d7f979529aca2ad3c7196fd82b5ebb34e58111247fe537649d38419d6df3b017f425fc7c11ad0afbea77998424a498874b5fb3f1eb96ba6db75ebb4b805d541cd9ea157c2a276ebdca4b762c1ab8dc4ef3880afa07864acc5dabeeed3d983624cb335a0f84666a8f8276d27290a50075569d4e6048825c62ab502fd099e6ab91bb3c4e0a80e887db9fda055952f0bd4bf25897599e750ffc4f483cdf20f585bcf277108c1a817748e144765caef25c5bf84c37a60ad38cbe29410685790d50b516d006fd954c7524a1031d95c042c284456fcb9143790f822a836d49a09f2befae9546de5e9a1922c188cff9c46082a09dbdec13b62ba73981bcd9bdf8580396d46044c5cce05f31a5fdceaa4f5029f6f25f9d33bcd1b1ce120aef36f56205a70995618480af9a5ef9e6c958aaaab8d6af8271450f309eee7de32c637b2aea8ba1b242be4627a87e133c5873b8a1af978f5a261930f48223fd61b320ac4fb13c4344a42bb850164579f67bf535c4394cf654630658ea3cd785e709f10d918e3061315c5028ed62875b11d3294803a9079ad7cbbf67d032f0e18b9146b59e29fbd14dd84d50798f4a7d2cb432675bac57dfd2585e7e42284d2f347ca2ab89bf2347fbb6e4b914f55bd02522b76b6771b2a4431c05be9893805f75359ea8d8bca2d05e16ef2d77444627cdfb02e03c243b03824bbded895470e450d48b1c16e6a232e3774bd5dc846484302de3de999c2c0ca036218c0f659f494d001662fac727b8904101211f7939f0ae91adef58b91d90a83c95ae6e49dc80e5eea90a0a297f91c5c48ec7cf85ac4e2aff3545e4b0dbe809236120918d7827e7a00c3800fab035c0ea33aa976fde688640c9f0db628b16</body>
</message>
*** User 2024-04-26 12:39:18.551 ***🔗
alice_too_big_stanza_is_rejected_11@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-26 12:39:18.551 ***🔗
alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2024-04-26 12:39:18
=== successfully completed test case
=== === Returned value: true