=== 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,
ip_address => "0",ip_version => 4,
ip_tuple => {0,0,0,0},
proto => tcp,
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"]},
shaper => c2s_shaper,max_stanza_size => 65536,
c2s_state_timeout => 5000,backwards_compatible_session => true,
max_connections => infinity,reuse_port => false,
connection_type => undefined,proxy_protocol => false}},
{watchdog,<0.1436.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@b324fd85012a.2024-02-19_17.21.03/big_tests.tests.mim_c2s_SUITE.logs/run.2024-02-19_17.21.03/mim_c2s_suite.too_big_stanza_is_rejected.387.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@b324fd85012a.2024-02-19_17.21.03/big_tests.tests.mim_c2s_SUITE.logs/run.2024-02-19_17.21.03/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{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_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_sic => #{iqdisc => one_queue},
mod_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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,<<"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@b324fd85012a.2024-02-19_17.21.03"
=== Started at 2024-02-19 17:21:03
*** User 2024-02-19 17:21:03.825 ***🔗
issue="ct_mongoose_log_hook created log file", ct_node=test@b324fd85012a, reader=<0.1470.0>, reader_node=test@b324fd85012a, writer=<0.1472.0>, out_file="/home/circleci/project/big_tests/ct_report/ct_run.test@b324fd85012a.2024-02-19_17.21.03/big_tests.tests.mim_c2s_SUITE.logs/run.2024-02-19_17.21.03/log_private/../../../mongooseim@localhost.log.html"
*** User 2024-02-19 17:21:03.945 ***🔗
alicE_too_big_stanza_is_rejected_6@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-02-19 17:21:03.945 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0bdb5f7dc07d7059' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-19 17:21:03.956 ***🔗
alicE_too_big_stanza_is_rejected_6@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-02-19 17:21:03.963 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzYAbWF0eWdyeXNh</auth>
*** User 2024-02-19 17:21:03.965 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-19 17:21:03.965 ***🔗
alicE_too_big_stanza_is_rejected_6@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-02-19 17:21:03.965 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0930ed94db6e33c7' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_6@domain.example.com'>
*** User 2024-02-19 17:21:03.965 ***🔗
alicE_too_big_stanza_is_rejected_6@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-02-19 17:21:03.965 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com out
<iq type='set' id='e27e476a839784072baddc64eabdc3d7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-02-19 17:21:03.966 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<iq id='e27e476a839784072baddc64eabdc3d7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_too_big_stanza_is_rejected_6@domain.example.com/escalus-default-resource</jid>
</bind>
</iq>
*** User 2024-02-19 17:21:03.976 ***🔗
alice_too_big_stanza_is_rejected_6@domain.example.com/escalus-default-resource out
<message type='chat' to='alice_too_big_stanza_is_rejected_6@domain.example.com/escalus-default-resource'>
<body>bc94909b01aa94c0d65abceb8f53167e11f602610162058848e3d24d17487cd0fea0869b4a9a480cb8f0880570998da32376cdf3036dafe5cbc9c141994bf1e598ae4da92daa3db37e7d9ae64bde263cda297245db6daaa2db4f62186a8b4c3158e338d004d5ff8ea12a8acf5b2a10bbeb74b89d74e1282cc67ea9df28282830cba7553804e24cc06ecbf777c97aa780ed412b16fe1c1c6b5371481246d6494e763de07c77c3ffe58506892e9af29b3e74b95f3f4b13dde6c177165ebd8a1f3c717650de91f14cd013c59e76793118f7df7d849927216e2ca4e445430e03fb385bdbe09c411dae1d11fe8b738b669f6e5c163b8dfc89a4f5910df89b7d288228cc442dfc622757e6432022270cd61212d3673f2e19f622d272676c457ab6747f15bee428b104632b590159c7729f1641f7d68ac99fcfcf44467632a9d2004fb82d58d4e592faf67f18f2dc20839bff115675502b5ab98b03e9fcf4ff56e5af138739bb0d61bc5c0abdffbba8cfb7659b99dfadd62817cfb2a1091b3b6c2080218d342c1edf32349d68c718d4a8238a9da125dac254b79890a495c6e8ceb953d22cd8483300f89f6cc40187b50f186505bfb0b37070aa43e19f2908ca72b8ffcc8dc686ead6dd4934e02b733c38a10c2d472396f29750d7aeaec51aa4deb874a8ee29ff039427d3e63ed972f80f280e5ecab8d21421decfd3d77e2592b5d65fa68346119a3080304848c6ac571a43e167a3086df3a240d0df1772df88943502ec88e42b32636002167c8d54e21b99d11d9594871107994afbf66bd95d824ca17cfd1819e0516be8ac8b3a85144ed64204fc7a9a329be50fa52330023be6db162cacc0f0226aeaedf554b56c0a810d4bf4a37df5d530375cf679d479c45a8ac91b8756f9ed22143d5df8c879169d4ebf99d725fcf0d82a176a415701b4bc23736c31e879e60977b3b758316c00d6a9c65ec78f19b3fe155855966886a6af51e40e7b2725b732d10a8c4e978a5623d953d08d2ab713f9a12f4d190ddac535c4f703f9c77693f0d16f802609b53466db4f37ae0085a3a7bce858f6082c4288bf246761cbc57a696244493303093a7a7b0ea296242ae963ba4b4828798968a147e3f173f0ebe87668171d1429fb878ad710e6696686119e5eb8f847684c889b6066c3e45b599dc39deaba6a177fae46603672c9561d09e14809caad0176a0fa9a547ec698950862de51dae6c569bd9c57f8b358923f9e4857b10789f29953b903b796ff979a26347c89bf52c95a8117521d7cb6d2c86e6cc27536e56374f05899a16a88873209976b0baca317d681e31aa0a1ca055b93c00bf8e7be64e079487f7cbc26b45fb73aba681e487d581dd947a049e3d77a04fd357a789dac60a22ecee2e40758f1dfbc7497bca702ce50e381f5d09b683d3a5389c63c3c12e7945f23e8fd</body>
</message>
*** User 2024-02-19 17:21:03.976 ***🔗
alice_too_big_stanza_is_rejected_6@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-02-19 17:21:03.977 ***🔗
alice_too_big_stanza_is_rejected_6@domain.example.com/escalus-default-resource in
</stream:stream>
=== Ended at 2024-02-19 17:21:03
=== successfully completed test case
=== === Returned value: true