=== Test case: mim_c2s_SUITE:too_big_stanza_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",
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"]},
proto => tcp,max_stanza_size => 65536,
backwards_compatible_session => true,c2s_state_timeout => 5000,
ip_tuple => {0,0,0,0},
max_connections => infinity,connection_type => undefined,
ip_version => 4,proxy_protocol => false,reuse_port => false}},
{watchdog,<0.1421.0>},
{escalus_overrides,
[{initial_activity,#Fun<mim_c2s_SUITE.0.92493729>},
{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@7465fd1d5a64.2023-11-23_14.13.58/big_tests.tests.mim_c2s_SUITE.logs/run.2023-11-23_14.13.58/mim_c2s_suite.too_big_stanza_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@7465fd1d5a64.2023-11-23_14.13.58/big_tests.tests.mim_c2s_SUITE.logs/run.2023-11-23_14.13.58/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_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_amp => #{},
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,<<"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@7465fd1d5a64.2023-11-23_14.13.58"
=== Started at 2023-11-23 14:13:59
*** User 2023-11-23 14:13:59.351 ***🔗
alicE_too_big_stanza_rejected_10@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 2023-11-23 14:13:59.368 ***🔗
alicE_too_big_stanza_rejected_10@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='15a3b47a7ee94726' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-23 14:13:59.368 ***🔗
alicE_too_big_stanza_rejected_10@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 2023-11-23 14:13:59.375 ***🔗
alicE_too_big_stanza_rejected_10@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX3JlamVjdGVkXzEwAG1hdHlncnlzYQ==</auth>
*** User 2023-11-23 14:13:59.377 ***🔗
alicE_too_big_stanza_rejected_10@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-23 14:13:59.377 ***🔗
alicE_too_big_stanza_rejected_10@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 2023-11-23 14:13:59.377 ***🔗
alicE_too_big_stanza_rejected_10@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='03448f4c9e00e333' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_rejected_10@domain.example.com'>
*** User 2023-11-23 14:13:59.377 ***🔗
alicE_too_big_stanza_rejected_10@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 2023-11-23 14:13:59.444 ***🔗
alicE_too_big_stanza_rejected_10@domain.example.com out
<iq type='set' id='c76c5cf467fcf562c10d0779dc3f4ff8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2023-11-23 14:13:59.445 ***🔗
alicE_too_big_stanza_rejected_10@domain.example.com in
<iq id='c76c5cf467fcf562c10d0779dc3f4ff8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_too_big_stanza_rejected_10@domain.example.com/escalus-default-resource</jid>
</bind>
</iq>
*** User 2023-11-23 14:13:59.453 ***🔗
alice_too_big_stanza_rejected_10@domain.example.com/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_rejected_10@domain.example.com/escalus-default-resource'>
<body>95941c413fcd4cb7d317a8738b70979e5267bf08a31b0706bcf6577a1e14229e086b4116dd6c0f25567f7841dc3d62d4b9ce5577d8777bbb7311963bcfde9985f8cf7bbaf12fd4e28b79459367f9639e15a89c3d9edf3e92541428ca906a1e86ee0483db42c084070fbbe20c6611061d8d62d28aeff0dd47708de19937f5bb07210eb22d3fb292d51296ccabab37615058a92326295c599ef0aec603c3f7171d54a625f85df6707ffc6be73cb74ad701776e41f046d47a9d8de05ccf7c82f7bcd0b940ad9585d2f01c5cd1ebf2b03c5de3827cf9a8ebac23e46118afa3dbfcc25e7a1d8cbd8341a1a9c3fb412afe5a852af76854e33108f7b10ed9a362cf1a7b724afd9a2d5f7458aa5bf46e1f493db6d5c06ef250cc7a18f1f7e8392671e2b96e64a8cd875620b3b37dae416e886af158b37340095865bfb50ccf8f68314605b4a807f21989d6ddfa1c6abd13c3cc65c78f9d993b0c751ca8aa2423ce2848389f457fbf9bb73414f631b42f3b41fd294c57ec7c271e778a4ab8340eaa5845ef519612a3e463d2041a6c5573d36f24b8463a7ec6d5fd45bdefa070f63240182903367efe00a684835825f9410e525dfec1c659ac975321a77195bca808359f0de6907434840b6d60632b00c5610d3983c535c000f454c5c16b655246a940c965048b204bc282ce4f318a05d7e616068c90396d5f87f0b31554f7229a9976693129fa051635af8defc4326d8541e1bc247979dd381d655827fbe0b23bec746fc0665826a8238f450865eb02735cfe3abf7c24b9039309319550d6673178956f06a59810438903c2fad3dae45fa9b8200768f8f4a03cc6aa9d650e948b075f61685e2c6950765cded8285a52e2a7dc6d1f57e97c30818121579b5b51d5953a22342c729ee29b0c356e29c3d0fd6677ec90457e4876f6041d48fed100e6f1f9bfba4f5441edca4ae7b6ede95f7eaabde5ae3e9df6c3e6f270b3c1e33dbddbd1e2906c79db3f85d5cc49b207650bfee648a28324847e42c4c4b26106d920207d3965bcf3e72d5476b386d808eca4cb91ebbc1e33f3097b21943a510fecd5aab3fca828345fe9db263fd6caa6fa80e1b4d587699930559d077aae4c38e251cd3e94915e95c223a1a33ae47a13fb1cdf3075d5a7c6692c5d4aa3b8a71b7e30275dbff6074330229c985043f9028294310ec12a55dd46cfb5af5627ed90716a75822ce129bfb602b78e65a8391fd78506c122a477ecc16dc24f651fbdd3d108bb45b39e02594bc2147f4be7b383fbba2fd1c0147a804bf3c104c352bc70acd584e64c4c09b4902f0b944eb32486042bd8f9a9afe6598cab3fdfc6a738fd172e48894f2d071ac06a9cbc38f5a85d3b8a900bb5b67188036c78ff70b3102d232ff9659401f4abd571c10d72324e3ee3060b4c5ec7f16b4e3f5c666320c6b5ea9d5c0037e7</body>
</message>
*** User 2023-11-23 14:13:59.453 ***🔗
alice_too_big_stanza_rejected_10@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'>child element too big</text>
</stream:error>
*** User 2023-11-23 14:13:59.454 ***🔗
alice_too_big_stanza_rejected_10@domain.example.com/escalus-default-resource in
</stream:stream>
=== Ended at 2023-11-23 14:13:59
=== successfully completed test case
=== === Returned value: true