=== 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"]},
proto => tcp,ip_address => "0",
backwards_compatible_session => true,connection_type => undefined,
max_stanza_size => 65536,shaper => c2s_shaper,ip_version => 4,
ip_tuple => {0,0,0,0},
proxy_protocol => false,c2s_state_timeout => 5000,
max_connections => infinity,reuse_port => false}},
{watchdog,<0.1425.0>},
{escalus_overrides,
[{initial_activity,#Fun<mim_c2s_SUITE.0.17191332>},
{start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
{preset,"odbc_mssql_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@ca2b1cd7241c.2024-03-11_11.25.11/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-11_11.25.11/mim_c2s_suite.too_big_stanza_is_rejected.643.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@ca2b1cd7241c.2024-03-11_11.25.11/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-11_11.25.11/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_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_sic => #{iqdisc => one_queue},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_stream_management =>
#{buffer => true,ack => true,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
backend => mnesia,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@ca2b1cd7241c.2024-03-11_11.25.11"
=== Started at 2024-03-11 11:25:12
*** User 2024-03-11 11:25:12.182 ***🔗
issue="ct_mongoose_log_hook created log file", ct_node=test@ca2b1cd7241c, reader=<0.1460.0>, reader_node=test@ca2b1cd7241c, writer=<0.1462.0>, out_file="/home/circleci/project/big_tests/ct_report/ct_run.test@ca2b1cd7241c.2024-03-11_11.25.11/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-11_11.25.11/log_private/../../../mongooseim@localhost.log.html"
*** User 2024-03-11 11:25:12.328 ***🔗
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-03-11 11:25:12.347 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ff1232b940006c25' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-11 11:25:12.353 ***🔗
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-03-11 11:25:12.370 ***🔗
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-03-11 11:25:12.372 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 11:25:12.373 ***🔗
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-03-11 11:25:12.373 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fad9fc35b4e3053b' from='domain.example.com' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_6@domain.example.com'>
*** User 2024-03-11 11:25:12.373 ***🔗
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-03-11 11:25:12.373 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com out
<iq type='set' id='fc77c622cff7dd4d09fd0d732d764a0a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-03-11 11:25:12.374 ***🔗
alicE_too_big_stanza_is_rejected_6@domain.example.com in
<iq id='fc77c622cff7dd4d09fd0d732d764a0a' 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-03-11 11:25:12.385 ***🔗
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>f74f96624257c62e58fb59fa72d1210dcc14fe5d864d99674218ca182e0f29287a0480f7951ab2e8015b8390b76fa8435c4146050307169ba9d7aad609f80d00255d6ea2159558e931ec353d6b37dfda480a74b8374299185f398986dfdcd99e05ef1dc7037e3b5edba727f2c43fc89241b3e6365c6d90815696c68fe0b8147da84d94edb7a4c18352068a417e7a1c0cff4e00bd17e8afbff91b4238a31da3d2d381861cd5d1bc3ef8434ac7f62e55b205283ad493ed70358151d1254b2969a1bac4f48cef247e840559338ad3fdc86e6c79e5fbd2248ee376b44f0d7edf4d344086131c46521ff91f15b66c458ec3d2cc390a396eeaf69e4794efd46d5a3fca12dddfd45e5503565a35b69818d174db19b1ee7ba8a016afc48c837bc065ae4d77dd089d5391ada9d32c71b97e77205f417334915ece8b863dd0fc1b4291b55333c31f8b7eb633c9227b60c704c68f079ddabbf80835c3c86ca593e08a79787c19bef18ac4d443f8a1576bcc1c1cde1662d04604ec27cab19145cedddf12aaf9d9b7f775ee9f6a0221ba345759484a10d1649c27a175cfd5f77961d780efa83a74d5d3169c7e6e95973912fbf0dac1cf8079626831cea5f914e99873d57cbbd1605ce10f1fe9907cc771fa6aa4e3b2c70abc6507cb08278eb4f92a9de61759fd899a7240f14e06da732fc2aa3019398f11133881a9a9bc56bc1f3df395d32feeee8b480060307ed16e7e5b81a3062f02a6f1daa42ed9c273cabef11667ca1a9151da32fc84a14327c81c4e56d7166402f9944cc3f1af4dffe9172454483788f408d76fa668964a7bddeb46d3fc04514fc6af32e6a47ddb91a70940bb33f949b0fa8534f46c3e17db5b26bdd60935ac1888cd4c12aa0528f61f8bb00dcc3f04203f4420dab6494e9eaf4c739d91db48f70d58732e85494a10cf4706ad387ec6e2668d0311b387e8139b78e52b04cbd077c45e1c9c9cdbf843f3ba431e9d8f4f00c6510233e33a1d375bbc6eaae13a24a96098675c1fed3e535d659b464856d468cad8a30bf4279fb3b016e0d4dc37b11f2af408f5d7e8dc167931fb2be9120d9231d584822646e3519a5e1500ab00bfa63219682163a77d75923d209c3998bfa8cd43f8e048217522210c3cee65c3c6472763b60ef38b384919885df9b8c23697a423682010ce6e065c42d5c4a2b3dc55e9af062584d0e9944934b2c48b696b33efa94ede12cd2962d1d14e31abb028ee7d06921a0bf665ca039885efeb080646120b8c1322038b12b1a6dd13a1e44b48f7cd455f35097eb874f01058a963a31d306ab35c4674f797526005014019da8a49354f92e4875dab84fb52f5cb0748e388720bb6eaff35a61abc8d253254b9fbc59c6240b232e3a8bbded2e50aeab21ba40bcbf0512e9cb6e8fb683847536c965f20ad80c0e6d027a7260c624fbb1224</body>
</message>
*** User 2024-03-11 11:25:12.385 ***🔗
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-03-11 11:25:12.386 ***🔗
alice_too_big_stanza_is_rejected_6@domain.example.com/escalus-default-resource in
</stream:stream>
=== Ended at 2024-03-11 11:25:12
=== successfully completed test case
=== === Returned value: true