=== Test case: websockets_SUITE:too_big_stanza_is_rejected/1 (click for source code)

=== Config value:

    [{user,geralt},
     {watchdog,<0.32767.2>},
     {original_listeners,[#{connection_type => undefined,
                            handlers =>
                                [#{host => '_',module => mod_bosh,
                                   path => "/http-bind"},
                                 #{backwards_compatible_session => true,
                                   c2s_state_timeout => 5000,host => '_',
                                   max_stanza_size => infinity,
                                   module => mod_websockets,
                                   path => "/ws-xmpp",timeout => 60000}],
                            ip_address => "0",
                            ip_tuple => {0,0,0,0},
                            ip_version => 4,module => ejabberd_cowboy,
                            port => 5280,proto => tcp,
                            protocol => #{compress => false},
                            transport =>
                                #{max_connections => 1024,
                                  num_acceptors => 10}},
                          #{connection_type => undefined,
                            handlers =>
                                [#{host => '_',module => mod_bosh,
                                   path => "/http-bind"},
                                 #{backwards_compatible_session => true,
                                   c2s_state_timeout => 5000,host => '_',
                                   max_stanza_size => infinity,
                                   module => mod_websockets,
                                   path => "/ws-xmpp",timeout => 60000}],
                            ip_address => "0",
                            ip_tuple => {0,0,0,0},
                            ip_version => 4,module => ejabberd_cowboy,
                            port => 5285,proto => tcp,
                            protocol => #{compress => false},
                            tls =>
                                #{certfile => "priv/ssl/fake_cert.pem",
                                  keyfile => "priv/ssl/fake_key.pem",
                                  password => [],verify_mode => none},
                            transport =>
                                #{max_connections => 1024,
                                  num_acceptors => 10}},
                          #{connection_type => undefined,
                            handlers =>
                                [#{handlers =>
                                       [contacts,users,sessions,messages,
                                        stanzas,muc_light,muc,inbox,domain,
                                        metrics],
                                   host => "localhost",
                                   module => mongoose_admin_api,
                                   path => "/api"}],
                            ip_address => "127.0.0.1",
                            ip_tuple => {127,0,0,1},
                            ip_version => 4,module => ejabberd_cowboy,
                            port => 8088,proto => tcp,
                            protocol => #{compress => false},
                            transport =>
                                #{max_connections => 1024,
                                  num_acceptors => 10}},
                          #{connection_type => undefined,
                            handlers =>
                                [#{docs => true,
                                   handlers =>
                                       [sse,messages,contacts,rooms,
                                        rooms_config,rooms_users,
                                        rooms_messages],
                                   host => '_',module => mongoose_client_api,
                                   path => "/api"}],
                            ip_address => "0",
                            ip_tuple => {0,0,0,0},
                            ip_version => 4,module => ejabberd_cowboy,
                            port => 8089,proto => tcp,
                            protocol => #{compress => true},
                            tls =>
                                #{certfile => "priv/ssl/fake_cert.pem",
                                  keyfile => "priv/ssl/fake_key.pem",
                                  password => [],verify_mode => none},
                            transport =>
                                #{max_connections => 1024,
                                  num_acceptors => 10}},
                          #{connection_type => undefined,
                            handlers =>
                                [#{host => "localhost",
                                   module => mongoose_graphql_handler,
                                   password => <<"secret">>,
                                   path => "/api/graphql",
                                   schema_endpoint => admin,
                                   sse_idle_timeout => 3600000,
                                   username => <<"admin">>}],
                            ip_address => "127.0.0.1",
                            ip_tuple => {127,0,0,1},
                            ip_version => 4,module => ejabberd_cowboy,
                            port => 5551,proto => tcp,
                            protocol => #{compress => false},
                            transport =>
                                #{max_connections => 1024,
                                  num_acceptors => 10}},
                          #{connection_type => undefined,
                            handlers =>
                                [#{host => '_',
                                   module => mongoose_graphql_handler,
                                   path => "/api/graphql",
                                   schema_endpoint => domain_admin,
                                   sse_idle_timeout => 3600000}],
                            ip_address => "0.0.0.0",
                            ip_tuple => {0,0,0,0},
                            ip_version => 4,module => ejabberd_cowboy,
                            port => 5541,proto => tcp,
                            protocol => #{compress => false},
                            transport =>
                                #{max_connections => 1024,
                                  num_acceptors => 10}},
                          #{connection_type => undefined,
                            handlers =>
                                [#{host => '_',
                                   module => mongoose_graphql_handler,
                                   path => "/api/graphql",
                                   schema_endpoint => user,
                                   sse_idle_timeout => 3600000}],
                            ip_address => "0.0.0.0",
                            ip_tuple => {0,0,0,0},
                            ip_version => 4,module => ejabberd_cowboy,
                            port => 5561,proto => tcp,
                            protocol => #{compress => false},
                            transport =>
                                #{max_connections => 1024,
                                  num_acceptors => 10}},
                          #{connection_type => undefined,
                            handlers =>
                                [#{host => '_',
                                   module => mongoose_prometheus_handler,
                                   path => "/metrics"}],
                            ip_address => "0",
                            ip_tuple => {0,0,0,0},
                            ip_version => 4,module => ejabberd_cowboy,
                            port => 9091,proto => tcp,
                            protocol => #{compress => false},
                            transport =>
                                #{max_connections => 1024,
                                  num_acceptors => 10}}]},
     {preset,"pgsql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/websockets_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@fb1eb1125d01.2024-03-22_15.50.03/big_tests.tests.websockets_SUITE.logs/run.2024-03-22_16.08.21/websockets_suite.too_big_stanza_is_rejected.html"},
     {tc_group_properties,[{name,ws_chat},sequence]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/websockets_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@fb1eb1125d01.2024-03-22_15.50.03/big_tests.tests.websockets_SUITE.logs/run.2024-03-22_16.08.21/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {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}]}]},
                     {carol,[{username,<<"carol">>},
                             {server,<<"localhost">>},
                             {password,<<"jinglebells">>},
                             {transport,escalus_bosh},
                             {path,<<"/http-bind">>},
                             {port,5280}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@fb1eb1125d01.2024-03-22_15.50.03"

=== Started at 2024-03-22 16:08:22


*** CT 2024-03-22 16:08:22.287 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5704.html

*** User 2024-03-22 16:08:22.289 ***🔗
alicE@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-22 16:08:22.290 ***🔗
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fedd7f206814774d' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-22 16:08:22.290 ***🔗
alicE@localhost/res1 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-22 16:08:22.290 ***🔗
alicE@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2024-03-22 16:08:22.291 ***🔗
alicE@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-22 16:08:22.291 ***🔗
alicE@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-22 16:08:22.292 ***🔗
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='342c185560b2e2a6' from='localhost' version='1.0' xml:lang='en' to='alice@localhost'>

*** User 2024-03-22 16:08:22.292 ***🔗
alicE@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<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-22 16:08:22.292 ***🔗
alicE@localhost/res1 out
<iq type='set' id='23696eb7ce8c9705117eb252b7643f53'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-22 16:08:22.292 ***🔗
alicE@localhost/res1 in
<iq id='23696eb7ce8c9705117eb252b7643f53' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-22 16:08:22.292 ***🔗
alice@localhost/res1 out
<iq type='set' id='8d0093b9ed484a22876106832d8293b7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-22 16:08:22.293 ***🔗
alice@localhost/res1 in
<iq from='localhost' to='alice@localhost/res1' id='8d0093b9ed484a22876106832d8293b7' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-22 16:08:22.293 ***🔗
alice@localhost/res1 out
<presence/>



*** User 2024-03-22 16:08:22.294 ***🔗
alice@localhost/res1 in
<presence from='alice@localhost/res1' to='alice@localhost/res1'/>



*** User 2024-03-22 16:08:22.294 ***🔗
geralt@localhost/res1 out
<open xmlns='urn:ietf:params:xml:ns:xmpp-framing' to='localhost' version='1.0'/>



*** User 2024-03-22 16:08:22.295 ***🔗
geralt@localhost/res1 in
<open xmlns='urn:ietf:params:xml:ns:xmpp-framing' id='edd7a91ef2d22fdc' from='localhost' version='1.0' xml:lang='en'/>



*** User 2024-03-22 16:08:22.295 ***🔗
geralt@localhost/res1 in
<features xmlns='http://etherx.jabber.org/streams'>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<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'/>
</features>



*** User 2024-03-22 16:08:22.295 ***🔗
geralt@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGdlcmFsdAB3aXRjaGVy</auth>



*** User 2024-03-22 16:08:22.296 ***🔗
geralt@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-22 16:08:22.296 ***🔗
geralt@localhost/res1 out
<open xmlns='urn:ietf:params:xml:ns:xmpp-framing' to='localhost' version='1.0'/>



*** User 2024-03-22 16:08:22.296 ***🔗
geralt@localhost/res1 in
<open xmlns='urn:ietf:params:xml:ns:xmpp-framing' id='861fd521e1ae081e' from='localhost' version='1.0' xml:lang='en' to='geralt@localhost'/>



*** User 2024-03-22 16:08:22.297 ***🔗
geralt@localhost/res1 in
<features xmlns='http://etherx.jabber.org/streams'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<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'/>
</features>



*** User 2024-03-22 16:08:22.297 ***🔗
geralt@localhost/res1 out
<iq type='set' id='542081c3adea2ebd31ebb65de145538b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-22 16:08:22.297 ***🔗
geralt@localhost/res1 in
<iq id='542081c3adea2ebd31ebb65de145538b' type='result' xmlns='jabber:client'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>geralt@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-22 16:08:22.297 ***🔗
geralt@localhost/res1 out
<iq type='set' id='e3d8beaf917089902de3190a3539c515'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-22 16:08:22.298 ***🔗
geralt@localhost/res1 in
<iq from='localhost' to='geralt@localhost/res1' id='e3d8beaf917089902de3190a3539c515' type='result' xmlns='jabber:client'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-22 16:08:22.298 ***🔗
geralt@localhost/res1 out
<presence/>



*** User 2024-03-22 16:08:22.299 ***🔗
geralt@localhost/res1 in
<presence from='geralt@localhost/res1' to='geralt@localhost/res1' xmlns='jabber:client'/>



*** User 2024-03-22 16:08:22.299 ***🔗
geralt@localhost/res1 out
<message to='alice@localhost/res1' type='chat'>
	<body>f144735d2a77d962e4bfdc89d227c9227fb40e44854e30b7ecb2fed1b7534c461462acaaf45fe7388303d57ef10aee54411159900c47804cd7b3286e52352b03666c2c1cae0bb27eace3b947e97399ed9fa8e7341ede048b71458f698c0ac7bc3153d11b813612c0231f439ba07cb1907a811a650058e1c3bb7ec4435c898660f2468d020d5d0545df96b17d38c3c3c8d6854174f4ee4772b6d902d577578cb8be393505c470e0a0c1aae467c7560ce42bd7611cac8370ee259ecb714bd509d60acfde990c1e5505</body>
</message>



*** User 2024-03-22 16:08:22.299 ***🔗
geralt@localhost/res1 in
<error xmlns='http://etherx.jabber.org/streams'>
	<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>
</error>



*** User 2024-03-22 16:08:22.299 ***🔗
geralt@localhost/res1 in
<close xmlns='urn:ietf:params:xml:ns:xmpp-framing'/>



*** User 2024-03-22 16:08:22.300 ***🔗
alice@localhost/res1 out
</stream:stream>

*** User 2024-03-22 16:08:22.300 ***🔗
alice@localhost/res1 in
</stream:stream>
*** CT 2024-03-22 16:08:22.302 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5704.html



=== Ended at 2024-03-22 16:08:22
=== successfully completed test case
=== === Returned value: ok


Test run history | Top level test index | Latest test result