=== 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,
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"]},
backwards_compatible_session => true,shaper => c2s_shaper,
ip_address => "0",max_stanza_size => 65536,
c2s_state_timeout => 5000,proto => tcp,
connection_type => undefined,max_connections => infinity,
ip_version => 4,
ip_tuple => {0,0,0,0},
proxy_protocol => false,reuse_port => false}},
{watchdog,<0.1427.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@82e417e9e7f3.2024-04-15_15.52.32/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-15_15.52.32/mim_c2s_suite.too_big_stanza_is_rejected.3.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@82e417e9e7f3.2024-04-15_15.52.32/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-15_15.52.32/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_sic => #{iqdisc => one_queue},
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_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_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false}}},
{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@82e417e9e7f3.2024-04-15_15.52.32"
=== Started at 2024-04-15 15:52:33
*** User 2024-04-15 15:52:33.227 ***🔗
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-15 15:52:33.237 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4b55a950807017d5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-15 15:52:33.242 ***🔗
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-15 15:52:33.250 ***🔗
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-15 15:52:33.251 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 15:52:33.251 ***🔗
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-15 15:52:33.251 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0a6497ad2d100d8f' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_7@domain.example.com'>
*** User 2024-04-15 15:52:33.252 ***🔗
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-15 15:52:33.252 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com out
<iq type='set' id='74b275985a8c5de0255c035cf565b6f2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-04-15 15:52:33.252 ***🔗
alicE_too_big_stanza_is_rejected_7@domain.example.com in
<iq id='74b275985a8c5de0255c035cf565b6f2' 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-15 15:52:33.255 ***🔗
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>e1ffa2894e0b2a7b7aeff12025150a54395846d217d945515da2d8abf5c7429a95cea4a28934d7bbb457bbd01140bcb0f4fc3be377b754ca7a3b5671de27c3ace44c08e8d4fe80b83e5ac5bca7127111aea7d916229e650f966c5572e0bd1d2076fa423902914756f50cffea92d53424b388228872ac8fe2d25dd19689481047e15645b857bf0fb105bf498ef5282931ad948aadf24524bbf0f0407574e0ccd76b0f37050d17c3f2e255e675cca4e30ce712888376096097487827fe378e434c70ac331073652879cca1ecb0c9a75724b6abaedcb8dc3e942f58fde0bd6541b79f5730aa5612e32ad0e0fa64ade5178fc3d0f4b85dcbc5a125f93e519f0758e77e4305d237d29797a605786e82818bf7540a388857a6165f09d23da616181761b5b692acb5473ac821dee08253c12f6029baa82d904e2125d16702e456b825024dd00cbe5b5327100ef4e89e9f4fd7d88cdc03a030754f4a13c9dc9db5f05d0c3817d7b622485ef32e429bb3ab36730bb8b11fb9de0da3670ccc103635544d7fbdf852e0c706cb959142e4e3a4c8b3ec2c4b83c8a263ec4b5fc448da35681a0b8e6d401bff13fc6f8fd0e5a908dd5dd8c9361b0bc70481e84a3e9983d4f1cb896f6c6a07d88788ba8fc36a220ff72f95c2dbedcfc58fee778f05e8786279eda01ec3965ae0d9b684b5cf83cfedd908dbd0295766f95372c7c237d517d3fe06041cc6f15931e8e974bf60e6ad363f7c8fc33c99f0a98e24e176ef9b6d4dce41a08c5193be7f26f67fe73d0a2d7b11a568243b9be16baddffe097b9657aa4922c4e3ea2f552140b40dfaa255dbd80d42ff7ee599f3594953903a2f2086efab2b4d0a29de85211d2936d380477d03b46e30d51b89a44e8d8d3f588e83b3bcfaf8affa4b0c0823324bf3b22bf984052b379b804ff79e18ace492292bb70bcc7045e23640a8b4ee5841571b16ab3cc7cc795c80ef5a06ffe2f115e11394ed784a9a95e2aff711c48058d08989df16c83707ccfccb7663590b21ab7d5e09d866ed15c7a5dbe72b722efb7e295ecaa2b258173ddca9a16e7f37a03baf592842c75df7e2427bdced978c6d6f3c959618b1afe460fcea37b9eaf2ef548b09c5c760532a5b3d24022228c35550ed7eba50478697990f13494aa7b3056188d0ef275ade3785041fa979feade3c143fbd4abcd30c9ebcf13870461468ecd41fac5e4cd534d231448e5e93a7a77d84187b6f392f92ec9e238da69e845a0bfea0b2afd040609c0041cb7d5caa4b08ece8c56a529e719f4dc53ce917c2d9613b2b14ba5bbd4e5ff2d7696c0c9f8b3329c5196a3991cf6ad220328035d14705e3c6668a26cb36c315b963075dbdb6680bf25bbedbf6d91be6ed62b71159ea675a28392af5f3315d2c768b8bf2f9ad2add497b6fb8ed6edc156930a6a3b2b472c5ffd2a960e56b5c5</body>
</message>
*** User 2024-04-15 15:52:33.256 ***🔗
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-15 15:52:33.256 ***🔗
alice_too_big_stanza_is_rejected_7@domain.example.com/escalus-default-resource in
</stream:stream>
=== Ended at 2024-04-15 15:52:33
=== successfully completed test case
=== === Returned value: true