=== 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,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"},
shaper => c2s_shaper,ip_address => "0",
connection_type => undefined,
ip_tuple => {0,0,0,0},
ip_version => 4,proto => tcp,max_stanza_size => 65536,
c2s_state_timeout => 5000,backwards_compatible_session => true,
max_connections => infinity,reuse_port => false,
proxy_protocol => false}},
{watchdog,<0.1502.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@31d0bc574ce3.2024-04-23_06.27.08/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-23_06.27.10/mim_c2s_suite.too_big_stanza_is_rejected.514.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@31d0bc574ce3.2024-04-23_06.27.08/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-23_06.27.10/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_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,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
ack_freq => 1,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
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@31d0bc574ce3.2024-04-23_06.27.08"
=== Started at 2024-04-23 06:27:10
*** User 2024-04-23 06:27:10.945 ***🔗
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-04-23 06:27:10.945 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1a87fd623f7e4ca6' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 06:27:10.952 ***🔗
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-04-23 06:27:10.963 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzgAbWF0eWdyeXNh</auth>
*** User 2024-04-23 06:27:10.965 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 06:27:10.965 ***🔗
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-04-23 06:27:10.965 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a16d74394678c82c' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_8@localhost'>
*** User 2024-04-23 06:27:10.966 ***🔗
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-04-23 06:27:10.966 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost out
<iq type='set' id='9f59e77f0e1c57ad59b6efad51a29026'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-04-23 06:27:10.966 ***🔗
alicE_too_big_stanza_is_rejected_8@localhost in
<iq id='9f59e77f0e1c57ad59b6efad51a29026' 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-04-23 06:27:10.980 ***🔗
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>e079860d0116572c5dc024beba3192c89c2979f812f9804adf613386340f624417dfeaf81a6ff8893c59e33038c1ab8b0bab7ec33daba2b8b2a5c34967aae628a5d039545cc097db69eba67af0cb20a1409e733de594bfb50f23ea46029dbe416ce2dd2f9db1eb2c11174c4266144363ad42155e1fc3bf98d16236c7a9e1b1bcd03f88ae274c08039e6fd8666610faace8a59d4142fbfbe6b806493a35ff17c92d9bccb3ac799c8d6da7bf70fe90f0d8d754b65616cad772e61990195f412444a6a86569bf9516d3384b6a6275408bb37688ebad36b8d05af22119b0384d13ef60518795834e4317e6172c6701b4e1f2f48fa962a2967d54caeed4a86f5b9df7f581126e81d80bb6af2c94b2e1b1e33328489194452d60fef18578cf16714c4188b417bd78579a60be8b9d379778a47f1b41d1b9f8486ba8e799e1f7392d5dddd148f8b3f0d0375fa97774674c51509127663147c75ddc36c63b8fbfb8954dace914f110ac1e0e44fec45f0cbe072f18b11ffc30427b5cd17c74bdf7206a58bc461ad0f973b4b3510fb64da11f560171a85b70a422ff2a7cd2843316790d1670f2acd0704206e80fc37329367697794040138e5aae75ca2d718b00bc331055d1a2ea29c4357f9212d60de2b87d573957556b9ce1b18dfcf2a9fd1f7e9c37d7f30c23560290d8c8878d132ec417df19eac44bda63d9e7fddfe34ca03e542c8ccd5df19e3996c60a98370ab1895a24cdec78c79b0f5273361373580580c9d9adf226bea01086a3ed5da24e7fa267da9c4f2c66efdab9881fa2e9321bde909456edbe77333ba3ab616ba0a57a4e041d40a867602bd7efc28459b45e5b6bea4e2aa62c0834ac2c521483653c1629e2f80d8315ff453f21bd84053cb4dc88238300862b7e582068482b5ae2826732a7ff403fdcbbf9d2a10501bf60652dbbd33134b3d1ba4fd283ebf1ea9f3a2aafc17f2105e81ce9a9afa45e5adbe574bbe93cc05234768f24a1ebca0201646b5b5168b941a83524c2b664e883623f8ac793665d2252c81a8d38d75100cf5dade9e96884f21cfa3564be4b3554f8ef1e2e8889b89ad90c129ebdb7a75794b6c63e6e3b89aaba226debd8eca0955310a9b704dbd5e3e51ba601f8f8d528db38fb33f21ee9350e1113bf6a16d14fa1ab6abd05d48ac903c89b733bc337dec721ed2bce5d7b71f10b21fe7427c649f8d6b10d3a03390246fdac8f78dd10df49a85134862d4d417ad7f8bfbb3a135d2f490de2508f0102a08f46f3243a5a15492eb96b483246a70f5411b46b0a3887ee248f67e850ffa5d520103c78c0461e9d4b1c36a5f7790a2175ec52e520ad4aa36dfe02ac9ced2e6df2f0505615ef8571ea87dfae843881a2da4b46ad8a0f1bbaccdffc071bae797b237ee6cb2fe7e6538310adaab4cba06dca0a450513d26e702a08f25b23d1f1</body>
</message>
*** User 2024-04-23 06:27:10.980 ***🔗
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-04-23 06:27:10.980 ***🔗
alice_too_big_stanza_is_rejected_8@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2024-04-23 06:27:10
=== successfully completed test case
=== === Returned value: true