=== Test case: mim_c2s_SUITE:too_big_stanza_is_rejected/1 (click for source code)
=== Config value:
[{c2s_listener,
#{access => c2s,backlog => 1024,backwards_compatible_session => true,
c2s_state_timeout => 5000,connection_type => undefined,
hibernate_after => 0,ip_address => "0",
ip_tuple => {0,0,0,0},
ip_version => 4,max_connections => infinity,
max_stanza_size => 65536,module => mongoose_c2s_listener,
num_acceptors => 100,port => 5222,proto => tcp,
proxy_protocol => false,reuse_port => false,shaper => c2s_shaper,
tls =>
#{certfile => "priv/ssl/fake_server.pem",
ciphers => "TLSv1.2:TLSv1.3",
dhfile => "priv/ssl/fake_dh_server.pem",mode => starttls,
module => fast_tls,
protocol_options =>
["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"],
verify_mode => none}}},
{watchdog,<0.1483.0>},
{escalus_overrides,
[{initial_activity,#Fun<mim_c2s_SUITE.0.67541742>},
{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@9d11dc49e72b.2024-04-23_11.31.35/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-23_11.31.37/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@9d11dc49e72b.2024-04-23_11.31.35/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-23_11.31.37/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => #{},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_register =>
#{access => register,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}},
{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@9d11dc49e72b.2024-04-23_11.31.35"
=== Started at 2024-04-23 11:31:37
*** User 2024-04-23 11:31:37.712 ***🔗
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-23 11:31:37.729 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='22199a2c02ae9111' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:31:37.734 ***🔗
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>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-23 11:31:37.743 ***🔗
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-23 11:31:37.748 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:31:37.748 ***🔗
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-23 11:31:37.748 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5b3acf890b4598f2' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_11@localhost'>
*** User 2024-04-23 11:31:37.748 ***🔗
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-23 11:31:37.748 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost out
<iq type='set' id='6340e2c01d2edeb23d57c4f39c9e1ede'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-04-23 11:31:37.752 ***🔗
alicE_too_big_stanza_is_rejected_11@localhost in
<iq id='6340e2c01d2edeb23d57c4f39c9e1ede' 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-23 11:31:37.752 ***🔗
alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource out
<message to='alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource' type='chat'>
<body>2cb3013d9d02ab6175aba50538d21724bc56d099131049ac93cd6f4661a0e4b0209acbfab317944bd9cc06c0abbe9cf812af823de08fe2e24b2c769455c3f7a0bcdfd591933aa5dc2025261d83e526d0f97ca0bbdde0fcfe93de69982c93aa38633e9ff4a3db75b97f4a946afe3b74561015f5b184f7718490a764aac1a69affb34de6ac26426b6972dbaac68fb268f3c2f168091145ada44aca1d308c8dc88bfbb4b87561a8829325816db91bd81992e3087ef63f1c1f763ac2736f306b2f952b9f0b0afac9d5cb3efe522837b2c71d5881a7c9d228f8df888211ee2d8f0c447f55ba711813f517a404b1f743f7f1ed467dd9b7c6340d3c008f97d7d4e80647e204ad078bc0cc76ac620c419fc0f649e1ede5a098c53bdd1c62df5cd51a569b439b0ea05052c99b27412b332127100133e62643479942e7f5bda33cefc13227f55083b9b885d015f2d4c8f98005a11b07deea5e01dffa36b5427d7b069fc000371d9bf905a91c9f7296cae20ba01cf0ca848300794fde0694a259992ee542176fdaddeb7fed3d0fcbaab6376db482ab65317b6dbfeb131aafc2a5c400237bb85bb7566eee3e462791c212e350b1d4a1d6852617bba6444b5e71b2b6e64aa8b2b0a5fddedbcaa31b014b5c0e7548de428af760dcbb5e279dffc19ba559ee95062230b352b4cd9ccf726595989cfd39732bca54ae3883f700ac34ff06515bb9be3c6362cd1b18eb3fd566896699ddbd9c7ac8c74cde7774d5650248e8a066ef0e3247bd5a95d074a416acd23c3ab4b63dc466f15009718d3635c731054e3f5b671c2ca35a6ff9326849a830cfdba8cb68a30c587bf3f6391dc35678f091b1138e72bf48b61981cdefa5aaf8dad2528a4f793fb9252f7a2d12e5257c09bcd9443d3302233b4d4e04619fc7d80609e7608882374e346f44d9e582f0173fe9c4048beeab9b7ad5a5c89d228b613dfc9b113ade472951e1f94aef5b31cbcd77b8e7d4a242941f528edd936835511fb57a621780d9586f9d45540713cf9345cc8e753d53a781999d2ad21e1f118ed64e68d1d994689b090d69e5e3939fcb97a214f63a726fc0e5df53480665b7df6d2b76050e8a126fc53fd8112cc8bf4593defa2251fd3ffe2ec81dea3973f34440f14a8c6e9bb7d761526b984814ca32b760824221f3852d289bb4cb62796b212deeaceeed4e2cadb74d363fed4f4c54fe82091c02c52bc903cf3986915ba08f2c9fdfc802fdbec9cec8154c96d474b6fa0146bcf5523a6982b067b63e5eed54ddc26c5b529c3e71ce15eef534a7b1daa492746a2c1f236a368c6d22c52540d6d3b6f0fe954a57b237b8bade331a7b00fae91b5f7476287a25297f49cd299c00d3ee5f08839e76c83c990683f054baf9a7b7aa94f91de0ef6aa0e411d78706a70fc76204f931181bda4610b8b8f47bacae2550ae5a</body>
</message>
*** User 2024-04-23 11:31:37.752 ***🔗
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-23 11:31:37.753 ***🔗
alice_too_big_stanza_is_rejected_11@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2024-04-23 11:31:37
=== successfully completed test case
=== === Returned value: true