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

=== Config value:

    [{user,geralt_s},
     {watchdog,<0.62920.0>},
     {original_listeners,[#{module => ejabberd_cowboy,port => 5280,
                            protocol => #{compress => false},
                            handlers =>
                                [#{module => mod_bosh,path => "/http-bind",
                                   host => '_'},
                                 #{timeout => 60000,module => mod_websockets,
                                   path => "/ws-xmpp",host => '_',
                                   max_stanza_size => infinity,
                                   c2s_state_timeout => 5000,
                                   backwards_compatible_session => true}],
                            transport =>
                                #{num_acceptors => 10,max_connections => 1024},
                            proto => tcp,ip_address => "0",
                            ip_tuple => {0,0,0,0},
                            ip_version => 4,connection_type => undefined},
                          #{module => ejabberd_cowboy,port => 5285,
                            protocol => #{compress => false},
                            handlers =>
                                [#{module => mod_bosh,path => "/http-bind",
                                   host => '_'},
                                 #{timeout => 60000,module => mod_websockets,
                                   path => "/ws-xmpp",host => '_',
                                   max_stanza_size => infinity,
                                   c2s_state_timeout => 5000,
                                   backwards_compatible_session => true}],
                            transport =>
                                #{num_acceptors => 10,max_connections => 1024},
                            proto => tcp,ip_address => "0",
                            ip_tuple => {0,0,0,0},
                            ip_version => 4,
                            tls =>
                                #{password => [],
                                  certfile => "priv/ssl/fake_cert.pem",
                                  verify_mode => none,
                                  keyfile => "priv/ssl/fake_key.pem"},
                            connection_type => undefined},
                          #{module => ejabberd_cowboy,port => 8088,
                            protocol => #{compress => false},
                            handlers =>
                                [#{module => mongoose_admin_api,
                                   path => "/api",host => "localhost",
                                   handlers =>
                                       [contacts,users,sessions,messages,
                                        stanzas,muc_light,muc,inbox,domain,
                                        metrics]}],
                            transport =>
                                #{num_acceptors => 10,max_connections => 1024},
                            proto => tcp,ip_address => "127.0.0.1",
                            ip_tuple => {127,0,0,1},
                            ip_version => 4,connection_type => undefined},
                          #{module => ejabberd_cowboy,port => 8089,
                            protocol => #{compress => true},
                            handlers =>
                                [#{module => mongoose_client_api,
                                   path => "/api",host => '_',
                                   handlers =>
                                       [sse,messages,contacts,rooms,
                                        rooms_config,rooms_users,
                                        rooms_messages],
                                   docs => true}],
                            transport =>
                                #{num_acceptors => 10,max_connections => 1024},
                            proto => tcp,ip_address => "0",
                            ip_tuple => {0,0,0,0},
                            ip_version => 4,
                            tls =>
                                #{password => [],
                                  certfile => "priv/ssl/fake_cert.pem",
                                  verify_mode => none,
                                  keyfile => "priv/ssl/fake_key.pem"},
                            connection_type => undefined},
                          #{module => ejabberd_cowboy,port => 5551,
                            protocol => #{compress => false},
                            handlers =>
                                [#{module => mongoose_graphql_handler,
                                   path => "/api/graphql",host => "localhost",
                                   username => <<"admin">>,
                                   password => <<"secret">>,
                                   sse_idle_timeout => 3600000,
                                   schema_endpoint => admin}],
                            transport =>
                                #{num_acceptors => 10,max_connections => 1024},
                            proto => tcp,ip_address => "127.0.0.1",
                            ip_tuple => {127,0,0,1},
                            ip_version => 4,connection_type => undefined},
                          #{module => ejabberd_cowboy,port => 5541,
                            protocol => #{compress => false},
                            handlers =>
                                [#{module => mongoose_graphql_handler,
                                   path => "/api/graphql",host => '_',
                                   sse_idle_timeout => 3600000,
                                   schema_endpoint => domain_admin}],
                            transport =>
                                #{num_acceptors => 10,max_connections => 1024},
                            proto => tcp,ip_address => "0.0.0.0",
                            ip_tuple => {0,0,0,0},
                            ip_version => 4,connection_type => undefined},
                          #{module => ejabberd_cowboy,port => 5561,
                            protocol => #{compress => false},
                            handlers =>
                                [#{module => mongoose_graphql_handler,
                                   path => "/api/graphql",host => '_',
                                   sse_idle_timeout => 3600000,
                                   schema_endpoint => user}],
                            transport =>
                                #{num_acceptors => 10,max_connections => 1024},
                            proto => tcp,ip_address => "0.0.0.0",
                            ip_tuple => {0,0,0,0},
                            ip_version => 4,connection_type => undefined}]},
     {preset,"ldap_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@36479f279a1b.2024-04-12_09.30.15/big_tests.tests.websockets_SUITE.logs/run.2024-04-12_09.43.31/websockets_suite.too_big_stanza_is_rejected.79619.html"},
     {tc_group_properties,[{name,wss_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@36479f279a1b.2024-04-12_09.30.15/big_tests.tests.websockets_SUITE.logs/run.2024-04-12_09.43.31/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@36479f279a1b.2024-04-12_09.30.15"

=== Started at 2024-04-12 09:43:32


*** CT 2024-04-12 09:43:32.679 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4856.html

*** User 2024-04-12 09:43:32.683 ***🔗
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-04-12 09:43:32.683 ***🔗
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f263dfb1093a5383' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-12 09:43:32.685 ***🔗
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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-12 09:43:32.686 ***🔗
alicE@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2024-04-12 09:43:32.690 ***🔗
alicE@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-12 09:43:32.692 ***🔗
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-04-12 09:43:32.694 ***🔗
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='25d7cdc3a611ff98' from='localhost' version='1.0' xml:lang='en' to='alice@localhost'>

*** User 2024-04-12 09:43:32.694 ***🔗
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-04-12 09:43:32.694 ***🔗
alicE@localhost/res1 out
<iq type='set' id='fab6e652f3a36f11160d71b74544004c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-12 09:43:32.697 ***🔗
alicE@localhost/res1 in
<iq id='fab6e652f3a36f11160d71b74544004c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-12 09:43:32.697 ***🔗
alice@localhost/res1 out
<iq type='set' id='ec0b9c1e445bcc25309ab79be4464781'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:43:32.698 ***🔗
alice@localhost/res1 in
<iq from='localhost' to='alice@localhost/res1' id='ec0b9c1e445bcc25309ab79be4464781' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:43:32.698 ***🔗
alice@localhost/res1 out
<presence/>



*** User 2024-04-12 09:43:32.699 ***🔗
alice@localhost/res1 in
<presence from='alice@localhost/res1' to='alice@localhost/res1'/>



*** User 2024-04-12 09:43:32.749 ***🔗
geralt_s@localhost/res1 out
<open xmlns='urn:ietf:params:xml:ns:xmpp-framing' to='localhost' version='1.0'/>



*** User 2024-04-12 09:43:32.752 ***🔗
geralt_s@localhost/res1 in
<open xmlns='urn:ietf:params:xml:ns:xmpp-framing' id='e4dc541930a3c05a' from='localhost' version='1.0' xml:lang='en'/>



*** User 2024-04-12 09:43:32.754 ***🔗
geralt_s@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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</features>



*** User 2024-04-12 09:43:32.754 ***🔗
geralt_s@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGdlcmFsdF9zAHdpdGNoZXJfcw==</auth>



*** User 2024-04-12 09:43:32.760 ***🔗
geralt_s@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-12 09:43:32.760 ***🔗
geralt_s@localhost/res1 out
<open xmlns='urn:ietf:params:xml:ns:xmpp-framing' to='localhost' version='1.0'/>



*** User 2024-04-12 09:43:32.761 ***🔗
geralt_s@localhost/res1 in
<open xmlns='urn:ietf:params:xml:ns:xmpp-framing' id='1bda3c93956ba416' from='localhost' version='1.0' xml:lang='en' to='geralt_s@localhost'/>



*** User 2024-04-12 09:43:32.761 ***🔗
geralt_s@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-04-12 09:43:32.761 ***🔗
geralt_s@localhost/res1 out
<iq type='set' id='0d0bac65b15da768f5e451e46bd424c6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-12 09:43:32.762 ***🔗
geralt_s@localhost/res1 in
<iq id='0d0bac65b15da768f5e451e46bd424c6' type='result' xmlns='jabber:client'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>geralt_s@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-12 09:43:32.762 ***🔗
geralt_s@localhost/res1 out
<iq type='set' id='99993da2623aaa75e37f871440107456'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:43:32.763 ***🔗
geralt_s@localhost/res1 in
<iq from='localhost' to='geralt_s@localhost/res1' id='99993da2623aaa75e37f871440107456' type='result' xmlns='jabber:client'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:43:32.763 ***🔗
geralt_s@localhost/res1 out
<presence/>



*** User 2024-04-12 09:43:32.764 ***🔗
geralt_s@localhost/res1 in
<presence from='geralt_s@localhost/res1' to='geralt_s@localhost/res1' xmlns='jabber:client'/>



*** User 2024-04-12 09:43:32.764 ***🔗
geralt_s@localhost/res1 out
<message type='chat' to='alice@localhost/res1'>
	<body>3a32516c74908628e8095dcc440264b2867383a6817d4e842e8c34b5990043d163f0d14547b014fe220668c3ee812ad8adc672b6704135e22eb1ab24c0d81f04f0485a3de7feeb2ee99163eacba4543c2134a780a3610ee3b74be7f34b10941eb1071baeaab91f27eb07fd68703b5e2f52956bb9c55760404f94e439a0023acc3d7238be7e171afb23ed3eb97e3aec7e04aeb261ebb3cb3f27de5eae386bcad0c8de4475726c1ca5c58bff07621ca24c27d226e7030d7bdd02935dda25f2cae04c3de642cc78eee4</body>
</message>



*** User 2024-04-12 09:43:32.767 ***🔗
geralt_s@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-04-12 09:43:32.767 ***🔗
geralt_s@localhost/res1 in
<close xmlns='urn:ietf:params:xml:ns:xmpp-framing'/>



*** User 2024-04-12 09:43:32.767 ***🔗
alice@localhost/res1 out
</stream:stream>

*** User 2024-04-12 09:43:32.769 ***🔗
alice@localhost/res1 in
</stream:stream>
*** CT 2024-04-12 09:43:32.772 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4856.html



=== Ended at 2024-04-12 09:43:32
=== successfully completed test case
=== === Returned value: ok


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