=== 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,
proto => tcp,
tls =>
#{module => fast_tls,mode => starttls,verify_mode => none,
ciphers => "TLSv1.2:TLSv1.3",
protocol_options =>
["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"],
certfile => "priv/ssl/fake_server.pem",
dhfile => "priv/ssl/fake_dh_server.pem"},
ip_address => "0",shaper => c2s_shaper,
connection_type => undefined,
ip_tuple => {0,0,0,0},
ip_version => 4,proxy_protocol => false,
max_connections => infinity,reuse_port => false,
max_stanza_size => 65536,c2s_state_timeout => 5000,
backwards_compatible_session => true}},
{watchdog,<0.1498.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@7457121a2122.2024-03-21_07.35.31/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-21_07.35.33/mim_c2s_suite.too_big_stanza_is_rejected.386.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@7457121a2122.2024-03-21_07.35.31/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-21_07.35.33/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_sic => #{iqdisc => one_queue},
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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
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_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue}}},
{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@7457121a2122.2024-03-21_07.35.31"
=== Started at 2024-03-21 07:35:33
*** User 2024-03-21 07:35:33.846 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 07:35:33.847 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b0765b88f299463f' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:35:33.877 ***🔗
alicE_too_big_stanza_is_rejected_8@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-03-21 07:35:33.903 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzgAbWF0eWdyeXNh</auth>
*** User 2024-03-21 07:35:33.906 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:35:33.906 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 07:35:33.907 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ae925f705462076b' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_8@localhost'>
*** User 2024-03-21 07:35:33.907 ***🔗
alicE_too_big_stanza_is_rejected_8@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-03-21 07:35:33.907 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost out
<iq type='set' id='f51919913a39e7dd0bcbbbda0fea60a4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-03-21 07:35:33.910 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<iq id='f51919913a39e7dd0bcbbbda0fea60a4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource</jid>
</bind>
</iq>
*** User 2024-03-21 07:35:33.933 ***🔗
alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource'>
<body>e5d94c6a10df4b497055c93cd85945e06cdd3a7dac8c3bd3c58ca14b4a0f5444219593da8772410683da4a9fd677f60a03519f45fcdcea2c662d9c2e0526659c3c4135f3c820b48da45e3149c8400f2075da463d02e45b60d435854800090a923ad7ef0e4b25a55dce5a092753fa7af0090d4f0475286aa338f26985caa241a03272024914c6dd9519f3954f3aad506515bbae850a66342d7eaafa652ed322f22934eebdf2fa3f65b4a3457399740c4b04458783c172f99c79db0b8fb992a974acad189350b04a7a49f68614b710464bcee3437e9f746472b78f48f252ebe7bc622f0cc77fd317bc560745686e4dde9d7a17371a941257adcb87f84a66361ff9bc719334a1d87cc579dedc55c0815302da908b5c55425c4e9375e18fba2a0ee40e44d18f966724f5603ca3029795f49cb2927785c8461e031c3a209dc3d6017ea6865b638373e40336342be33ae061e414fd30b8857de1655825e43a25f29c6e1a0e2552415cdb362970105dc2089e16e98d68b4c4388326f9a47208d7eb02551b175e416c9b9ffa28586990c9c04eda8bf8d49d4edb0ab3194cd272f1ad08787ad05e593474c50965370b42eb3369db77f29a01a845f1b568202a705dd0536677e1f81d754aa3766c6faca9a33a0abb4e510686a8a836d81a0c79ab8ed3033c5113a881305f16c1ea5b50a6bdd1a385234e96624f47b8fac73db6dffa0a65e8e69ab17616ad94693c6cca1b849acceade2f4f9e38d7474992bacfd5aaa8212129c7cd2993004a1f1cca5d1f606e5c15112ddbee8f8a8297a39865b6adbee3d9fecaa5e822eea804aeff541a07565f5c8dc7d697ab2302e9a79fc52f6d3894d3e89878a1f35341542b121db3645083eb4a0df4e06ef9ebe8a7666f01f87debe4413e2b43846d979b756587f948dbd10e30f6e795d173289ed3277af0a6210a5bb0a5711a296dec7a1f4404ff7c8f890ea85502c831c53c4085b78aa3d4786bbc113f1267891aac822ad2839c02233d977804c929321047ecca530f4b607e0777f4c835aed56e18ebd786a8647fe400bc305191cf269a76165e30a4849c05be2d0b3e806c3debe583e2534e1bec771b3126992f278d44a88d2499e582b5f9df9d410cf1d99ae92835421100b73db40ed27b8a85adc3f8976a00b3b26746e616d93f4bc93a3df2fd3d5b597c2176b37d01fb6888e7209c559024e79b587ad21986338ca0cbad15575f0972c5afdbddb120b31dd756bc415d1ee17216b75cdb58d3c22ee005b8e7a09ccc386c60a768b5e18cda1e3766e6bb957ae2121cc10118b37dfcc12b3982b4f98b26882dd9792d14aaf9a69fe2cfde68773bb0a82ee74738a867854aad1d095b8523e46140e899237519bef5218f025703322b399b5ab6d14466598c18e6773067d8ed6c226d9335d73b0fa5623b38343ea842752987d105</body>
</message>
*** User 2024-03-21 07:35:33.933 ***🔗
alice_too_big_stanza_is_rejected_8@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-03-21 07:35:33.933 ***🔗
alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2024-03-21 07:35:33
=== successfully completed test case
=== === Returned value: true