=== 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",ip_version => 4,
ip_tuple => {0,0,0,0},
proto => tcp,
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"]},
max_connections => infinity,reuse_port => false,
backwards_compatible_session => true,shaper => c2s_shaper,
proxy_protocol => false,connection_type => undefined,
max_stanza_size => 65536,c2s_state_timeout => 5000}},
{watchdog,<0.1425.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@2fae5249a3b3.2024-04-16_10.56.49/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-16_10.56.50/mim_c2s_suite.too_big_stanza_is_rejected.1412.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@2fae5249a3b3.2024-04-16_10.56.49/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-16_10.56.50/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,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 =>
#{users_can_see_hidden_services => false,iqdisc => one_queue,
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,<<"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@2fae5249a3b3.2024-04-16_10.56.49"
=== Started at 2024-04-16 10:56:51
*** User 2024-04-16 10:56:52.316 ***🔗
alicE_too_big_stanza_is_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 2024-04-16 10:56:52.361 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bd7fb05e35ebcb40' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:56:52.398 ***🔗
alicE_too_big_stanza_is_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 2024-04-16 10:56:52.465 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzcAbWF0eWdyeXNh</auth>
*** User 2024-04-16 10:56:52.474 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:56:52.474 ***🔗
alicE_too_big_stanza_is_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 2024-04-16 10:56:52.476 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='90d889c5ed51df91' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_7@domain.example.com'>
*** User 2024-04-16 10:56:52.477 ***🔗
alicE_too_big_stanza_is_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 2024-04-16 10:56:52.477 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com out
<iq type='set' id='fb08e7abc70c7ba191b89ad4c5b3fd48'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-04-16 10:56:52.478 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<iq id='fb08e7abc70c7ba191b89ad4c5b3fd48' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource</jid>
</bind>
</iq>
*** User 2024-04-16 10:56:52.521 ***🔗
alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource'>
<body>08c4e72d90a206599e64b09d67c99ea2e5d9d25fc3915b1548f39e0632b457af031304838a8b5b60860902f7ba9fc4ef8006ac321a2c492758b0501fe932b09a7e0ace63a80b8bbd81ceea8799ba78601e34858d7d311287a90d7a0b774c2721bdf10d1853d51682f6e694b5a2ad30d21e1340270af855d3e300bfd0706e777f3e321945410ee4709698b441cb90ec9ab692b9d2cf420e4272c119c273721ed9baa2d4cbc88797c8f48c3b5f1ae8e14926cb26a7cc61eb13d499abbdbf29b7d648ec4a04fb2a8939a2c68a562333cd4fe4f73270896ae9a45b0414e13fce1084d8730e83fa2d5a14035f4524700e85a87a351d733ac11aac87d3df8ff01a41ceb7fb946411294c64282f1242cf1e071c51ca2b4dd3c3e3b47276bd1ae77f9f406f2ce36c255e27eeb3d8f28a13c0d72565e233484090897847cf23d255ed36c8835d4e1f83e1edcf46a9886fc6236e9e1d9526be7755ecf6f866296fd840e0ff476851fd50eccd8ef7f81e61a1357826906418de5465f619acc2fdaf7215e319383c97204471fbbe2e4eed0cae3b2e6acf894e63c854a1c1e4f632f2948deda75c15004f1387becae107e91e26d2f88ea87cfe8e860c74c022a6fc737614ce5535cd406fdb9b7f3cfdcb8e231a2fa6280f89ba7e05046c42bf6b81674266ca52cbadb35c4793e9c962475027de6ffdb7bdfc71204e1f915242abb2f9971024206df16cd25992b41281d70a2fd7559f2a8708064e826763197da39690dbb3362cf22f9961dcd38e6541d6d17ee682370c88f064bc6c0a9068dc000707c43f56105eb4e63c706058af6b3e86cf7da8da71c5f947a2ea5bda956808aa248de772c79806c35f6d8a96a5dfdae011f5b80b8b0be9e1c2b2fd531dbd8dca52696131c79684a9e4283575f78cefaa943568cc452771ad3c26869a2ac9a7d654729c442aa6a21f393d2c3515295f1b84642454ae0c455bd50e2c672f2794b4fcc655b44c2adf8c5bde42016e17d0992c5604ead7e7ccbd9e26c4895f6cc3602fd2b10cf0f125e864c3c274a10dd7fdd83de9e4f28ae4085456f4f2d14bdcbbc0cfe04cc36268e7fefd2e8e3ee650777a4200bf8ae527943f25d2e1be612978752db35d1244ef9ad3891c6518e195bfc23606a2ab2505d2ac721dd09a16be09e3f8b6207df023ebd607cf440e32dcc4ed6d016136de4245e5cf5c483d786a4ed65e966496c5b8722442539609485b198d91538bc7f45e7ab95ff97e5d983b40de9adf1a5bb075e5a3841f238c67c053e9b32168f14db8b9104958309a9df3f4c94aed44b9a483c1d68d13ee988d4958aacd114a3c868328844355fb2d5916e70844dec42596dc5beae9c3243088712cf43599c01c64d92d872fbcdd61b473dd94ee7c0bf3119b7dda3f7beacda17fd030587765d15b973897f6f4f3f4a181ea17b7f6f154</body>
</message>
*** User 2024-04-16 10:56:52.527 ***🔗
alice_too_big_stanza_is_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'>element too big</text>
</stream:error>
*** User 2024-04-16 10:56:52.527 ***🔗
alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource in
</stream:stream>
=== Ended at 2024-04-16 10:56:52
=== successfully completed test case
=== === Returned value: true