=== Test case: mim_c2s_SUITE:too_big_stanza_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.1417.0>},
{escalus_overrides,
[{initial_activity,#Fun<mim_c2s_SUITE.0.115367038>},
{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@1d8001dd39bd.2023-11-13_19.21.09/big_tests.tests.mim_c2s_SUITE.logs/run.2023-11-13_19.21.09/mim_c2s_suite.too_big_stanza_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@1d8001dd39bd.2023-11-13_19.21.09/big_tests.tests.mim_c2s_SUITE.logs/run.2023-11-13_19.21.09/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{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,<<"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@1d8001dd39bd.2023-11-13_19.21.09"
=== Started at 2023-11-13 19:21:09
*** User 2023-11-13 19:21:09.952 ***🔗
issue="ct_mongoose_log_hook created log file", ct_node=test@1d8001dd39bd, reader=<0.1448.0>, reader_node=test@1d8001dd39bd, writer=<0.1450.0>, out_file="/home/circleci/project/big_tests/ct_report/ct_run.test@1d8001dd39bd.2023-11-13_19.21.09/big_tests.tests.mim_c2s_SUITE.logs/run.2023-11-13_19.21.09/log_private/../../../mongooseim@localhost.log.html"
*** User 2023-11-13 19:21:10.029 ***🔗
alicE_too_big_stanza_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 2023-11-13 19:21:10.043 ***🔗
alicE_too_big_stanza_rejected_7@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='454de4c7f520b1a5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-13 19:21:10.044 ***🔗
alicE_too_big_stanza_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 2023-11-13 19:21:10.057 ***🔗
alicE_too_big_stanza_rejected_7@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX3JlamVjdGVkXzcAbWF0eWdyeXNh</auth>
*** User 2023-11-13 19:21:10.060 ***🔗
alicE_too_big_stanza_rejected_7@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-13 19:21:10.061 ***🔗
alicE_too_big_stanza_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 2023-11-13 19:21:10.065 ***🔗
alicE_too_big_stanza_rejected_7@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b27aabdfe41d36ad' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_rejected_7@domain.example.com'>
*** User 2023-11-13 19:21:10.071 ***🔗
alicE_too_big_stanza_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 2023-11-13 19:21:10.126 ***🔗
alicE_too_big_stanza_rejected_7@domain.example.com out
<iq type='set' id='015da99988fcfbc6d6baa690b9b39f6c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2023-11-13 19:21:10.130 ***🔗
alicE_too_big_stanza_rejected_7@domain.example.com in
<iq id='015da99988fcfbc6d6baa690b9b39f6c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_too_big_stanza_rejected_7@domain.example.com/escalus-default-resource</jid>
</bind>
</iq>
*** User 2023-11-13 19:21:10.133 ***🔗
alice_too_big_stanza_rejected_7@domain.example.com/escalus-default-resource out
<message to='alice_too_big_stanza_rejected_7@domain.example.com/escalus-default-resource' type='chat'>
<body>ae5b5c831ffc07750bfff75268b319e52283d9bc8049efad23cba952529dfd034a5fe42591bc8da9275f30e885a797cffbb9b9fffd3f6b495e4b21ecb4dad50d40d8dfad8e00c5b6b1a2eee789ced52e5b23fe43a973db85b059199e97d65c6b8645fab43603a9cc825caf849cfd3a309790154ae1745ce00d6cd5a242dd34845f758fe60a5dddcffa03a9ee7ab19faa8ec16fc2b77ef984765327290cf553a747d3a401837da56ae23ac690b0774ffa59a923de76e69fbf4f8b9d4219366d4176dd902131b67a83c2d1e7076cc19004f8c445bcecd0986e0b8c41f6c63d91e2e1742615b265562edb7ed69bb64fdcb37fdf0bf33d7ff319b7a1509aed413aee0b2c8d726b1de55345efd3f3b52afa8f251a429c21dad6052b81de54b25861c4c8e25f59a15b578f7e382788bfc3dd3850e42c169e7446e3113ba457ada91e4d2324791ec1155c3bff0726b3e44805453cfe7576d79e10801797da4debb15976b5c878447a47bbfe17711cf8abe804e68628f33f48becd9700c05a6db7065efa1af867f0f7e0be1ea124145e108df614f3ed4d11e64c5c6a62800f53876a34c306d7b3613c55c0e0e4ee56bcc470e4e164edfac809885889ece7059eb75e3cf51ce4ec3d8b0b7852bdc5e4e0fe86cecb8838d06aaa51836f465d20cab30de29c9e443b66b3bac5087a6d376bab8f43fcbf69f60a33252e7f16c4fabb051863b7f3e32de1d279ca66a918f528cd90088aba0eaf85a61f359f8266e7360550719cc517f4cbc46f3f62b3a3cc87712785bdd653e08c224b586145acc4fb6d3eafd2cb0d66411140642b85f095488ea6e5dc65789c5d2e3130e8c8ec990a4610f5be3b87983dd149c3917895fd979a9ade30d47124a2770f67220105abc6fd7d70b9a1487e6c9f2c0869b25f4636cc659a5c90d4059521da8aec8a4762fb8a63ef6ee2d12eab5ad71a7b6db22687411564c847a89928ed509accb9795653f39ccb74c7b51e83515a99dbc3283d96601aab48e798e917d1cb625b0dda2b47bae4dc0f58a629f77ee020e7751035def045d21e63b7420b39f4b329c4293b875bf84809faf446aa6348a9b1d9e5040d9aaaa935d8c6f182a83ca17a2eb9b9fe99a5cd1ea5d9653f8cf90bf4417b92eabdaa3ff8518628e15c966250a17e1578973296c9ed209ac60e5fb53e326f90b1e277613a9619b4effcabc2e5361ebb37ef1b9af04896fa06efaa48053af32cf8f9c88fd82a47e14b9f62571e6b26a0858a65b57d2399d68bf5f635099df34f50704b03de5062465c8d1c0f0fa89e92a730c0843245338ce2d63e7bcf877b7fc8aec4ede671df43c27e8866b67fb6b0c4ff36fed125773ff3decb2159f25dde321d9333cbaf47a6a80995eef351eebeed3b998c6beca8fd48597a323e6804656e468a023e3f5a112f2a852ae73b9bd2b55da38532</body>
</message>
*** User 2023-11-13 19:21:10.133 ***🔗
alice_too_big_stanza_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'>child element too big</text>
</stream:error>
*** User 2023-11-13 19:21:10.133 ***🔗
alice_too_big_stanza_rejected_7@domain.example.com/escalus-default-resource in
</stream:stream>
=== Ended at 2023-11-13 19:21:10
=== successfully completed test case
=== === Returned value: true