=== 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,ip_address => "0",
connection_type => undefined,max_stanza_size => 65536,
tls =>
#{module => fast_tls,mode => starttls,verify_mode => none,
certfile => "priv/ssl/fake_server.pem",
ciphers => "TLSv1.2:TLSv1.3",
dhfile => "priv/ssl/fake_dh_server.pem",
protocol_options =>
["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
ip_tuple => {0,0,0,0},
ip_version => 4,proto => tcp,c2s_state_timeout => 5000,
backwards_compatible_session => true,proxy_protocol => false,
max_connections => infinity,reuse_port => false}},
{watchdog,<0.1497.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@6ebac22519b0.2024-02-23_08.34.56/big_tests.tests.mim_c2s_SUITE.logs/run.2024-02-23_08.34.58/mim_c2s_suite.too_big_stanza_is_rejected.898.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@6ebac22519b0.2024-02-23_08.34.56/big_tests.tests.mim_c2s_SUITE.logs/run.2024-02-23_08.34.58/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">>}],
pool_tag => default,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 => []},
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_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,buffer_max => 100,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
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@6ebac22519b0.2024-02-23_08.34.56"
=== Started at 2024-02-23 08:34:58
*** User 2024-02-23 08:34:58.874 ***🔗
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-02-23 08:34:58.874 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cb8329ca7f9bbb4e' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-23 08:34:58.882 ***🔗
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>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-23 08:34:58.890 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzEzAG1hdHlncnlzYQ==</auth>
*** User 2024-02-23 08:34:58.892 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-23 08:34:58.892 ***🔗
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-02-23 08:34:58.892 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='72bfcffbff85d073' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_13@localhost'>
*** User 2024-02-23 08:34:58.892 ***🔗
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-02-23 08:34:58.892 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost out
<iq type='set' id='88eb31eafd26a6438d0f9965d175e1de'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-02-23 08:34:58.893 ***🔗
alicE_too_big_stanza_is_rejected_13@localhost in
<iq id='88eb31eafd26a6438d0f9965d175e1de' 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-02-23 08:34:58.903 ***🔗
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>2e1874127bd72ac48f085fb8d4835d07bf16be3ed3f38a135bf75840555d73dd034978dfcf3d5a3e63bc450e82dfe44e2d251752c1778b07f76c114d1974014cde58a8e91b6b29489d6bb999dd1a3740f339723470d1b5acc6a0fe316e0a133326773690e683c9498a2aa9c0b6fed6cc4998ef27769784ac6a694878426b20c6fd0fe9d02ac58796d499d1911096d661de5de2ab64800e5ae9f2bd26fa87b37b254664d11a33dbbb7d2be3809d67e1884e954307b8f438a84819eee231d8341e520be0e5b4940f170a14032d6b0ec4c13e2361a5ebfeb665838fe00ecc110fd6f1b7eadfd062e47941e71400c55249971719cea676274ea84ec3901ca1b34aeb0796683ed8b13029fd34cbf390769a6f2c9479e10a14d9bab934f26526b57372891a7244dacc20873f115692484dfed2e8f57e2969b2fbd5a333fce054573b9e85d1ddfa13a0ce02320fcc118043e4b7604c1db5eefd2884ffbd0493f05ca347d151c2a9846ff124150c30797792c98f9737eec3b658d7f9faef81ec041ac90dff554d26b00f1b4d0554e98c03b0982e0393e0a230ec90e4858203929608c762461f7ed8a8eb5f1b8cd141ca859780b297f77c6a2430dc63666be48e58997f282af82f9adb94ff2533be870ec339d72dab6afafd0dc57a6fd0cf2a7bb354e58e368785656a1c9f6ae63cb70ba40617ed81a73c97ee586dc558c8484e3bcad45cc85fad1cafdcafa540bca38a907cb06cba2996a15fdc2c8733aa2eaf0158b79bbae97823b8baf2b8e5a7388935a26ddd6ec610c4d6855b98cd88a27e64ae9796c13c5fb0e6d488ab2af5c0a155b8b123bb6fa8d824d1c6f25b9b5be7a46c34729eb52f7def6173985191cfe9c6da4141001a6a52b0be191787ce16443a450b9493266d2e829e7f9995c6299ce8ed282b6164f9029bd69baac658779dc6957bf04d4a000eb04a9f3ff66469c3be53e8e1e5507471eb16c4b0717253dc984cfb7173740eb4b828f9ce41e59a9bbe4402035288cab58d5217af7bee78b2ce0c6765a02c3f1fd1d77f150adfbf2bb47a1f4f8d52a4fddf82a4327bfcc7dd671a968263f13ee206fd2d6b1d94d7772f9ab05fdc39602eda143dddd2b99dab5f7ab7723c73c44523dd521ae0c443f4b7f1eecf1bb2b2d0e1c72fec17578e0536cd911dff622a28e7909c92904569222b66f5e68756118fd4cb1de81e1df716d3d1e65f495c642aaf43e2181e60c3b1ebb40d746427e16e9ef70ae957006b31377163fa989fcb6137ae1b729a266ddb8c92c8b3a754c7b034b13c963a1cd42e051c0f273f9d9a5be1a99e0b55dec62e573d50c574e24e29ced39e05e104086e7da65a656db5d53021c215d9c6556c699d148f7ddb692b9b731eb8b2155e9314e2eb4520b84ec80efdeecd5274130357b0d4af5ccedc0fbd374d694de23dddeaf55be447</body>
</message>
*** User 2024-02-23 08:34:58.903 ***🔗
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-02-23 08:34:58.903 ***🔗
alice_too_big_stanza_is_rejected_13@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2024-02-23 08:34:58
=== successfully completed test case
=== === Returned value: true