WebSocket: Test WebSocket connectivity - #3305

Test duration: 2.839s

Passed Tests
tigase.tests.server.TestWebSocketConnectivity
testWebSocket_ConnectionHeaderCaseSensitivity 0.402s
2019-11-22 19:10:10 |

2019-11-22 19:10:10 | null / [TestClass name=class tigase.tests.server.TestWebSocketConnectivity]

2019-11-22 19:10:10 | ------------------------------------

testWebSocket_TwoFramesPingAndTextFrameInSingleTcpFrame 1.690s
2019-11-22 19:10:11 |

2019-11-22 19:10:11 | null / [TestClass name=class tigase.tests.server.TestWebSocketConnectivity]

2019-11-22 19:10:11 | ------------------------------------

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost << <features xmlns="http://etherx.jabber.org/streams"><sm xmlns="urn:xmpp:sm:3"/><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>SCRAM-SHA-256</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><ver xmlns="urn:xmpp:features:rosterver"/><sub xmlns="urn:xmpp:features:pre-approval"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></features>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost >> <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="SCRAM-SHA-256">biwsbj13c19fMTdvN3ExMDEzMyxyPXhSVHJMdjZKQ01FRzBaaHhTZ3E3</auth>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost << <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cj14UlRyTHY2SkNNRUcwWmh4U2dxN2paU01QVWh6Q1JXZVl3c3VnUWNnLHM9c2tQY0g1dzUwM0owU1E9PSxpPTQwOTY=</challenge>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost >> <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">Yz1iaXdzLHI9eFJUckx2NkpDTUVHMFpoeFNncTdqWlNNUFVoekNSV2VZd3N1Z1FjZyxwPTRaTmg0NlhOdHZINS9NODl3OGFZRUpnc0FHc0t1d0lEOWVrdGcwOHhBYm89</response>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost << <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dj1CbmlaS000eFBWakpYUFkxcytwS3VaYjFmK3c5VlVGVVhHajNBanF3SG9vPQ==</success>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost << <features xmlns="http://etherx.jabber.org/streams"><sm xmlns="urn:xmpp:sm:3"/><register xmlns="http://jabber.org/features/iq-register"/><csi xmlns="urn:xmpp:csi:0"/><ver xmlns="urn:xmpp:features:rosterver"/><sub xmlns="urn:xmpp:features:pre-approval"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"><optional/></session><c node="https://tigase.net/tigase-xmpp-server" ver="vxsZDK3itTHNCC9pNOSKIQZW/14=" xmlns="http://jabber.org/protocol/caps" hash="SHA-1"/></features>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost >> <iq xmlns="jabber:client" id="6p5m9qfCfvl1qiVgLJKRRLR" type="set"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource/></bind></iq>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost << <iq id="6p5m9qfCfvl1qiVgLJKRRLR" type="result" to="ws__17o7q10133@localhost/993927746-tigase-134" xmlns="jabber:client"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>ws__17o7q10133@localhost/993927746-tigase-134</jid></bind></iq>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost/993927746-tigase-134 >> <iq xmlns="jabber:client" id="eAAcM0l6r5shHrdDoRJGPHz" type="set"><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></iq>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost/993927746-tigase-134 << <iq id="eAAcM0l6r5shHrdDoRJGPHz" type="result" to="ws__17o7q10133@localhost/993927746-tigase-134" xmlns="jabber:client"/>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost/993927746-tigase-134 >> <iq to="localhost" id="Up1MTZ6hzmbpZn9MJXlO1al" type="get"><query xmlns="http://jabber.org/protocol/disco#info"/></iq>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost/993927746-tigase-134 >> <enable xmlns="urn:xmpp:sm:3" resume="true"/>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost/993927746-tigase-134 >> <iq id="TEIgzt9qVRWlJDFJW3BDobu" type="get"><query xmlns="jabber:iq:roster"/></iq>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost/993927746-tigase-134 >> <presence><c xmlns="http://jabber.org/protocol/caps" node="http://tigase.org/jaxmpp" ver="mg5bXbOeu1848vxdgu3jELgbQF8=" hash="sha-1"/></presence>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost/993927746-tigase-134 << <enabled id="bda56870-8153-4882-9c5e-f5a510c561f2" location="d4270859fb27" xmlns="urn:xmpp:sm:3" max="60" resume="true"/>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost/993927746-tigase-134 << <iq id="TEIgzt9qVRWlJDFJW3BDobu" type="result" to="ws__17o7q10133@localhost/993927746-tigase-134" xmlns="jabber:client"><query xmlns="jabber:iq:roster"/></iq>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost/993927746-tigase-134 << <iq id="Up1MTZ6hzmbpZn9MJXlO1al" type="result" from="localhost" to="ws__17o7q10133@localhost/993927746-tigase-134" xmlns="jabber:client"><query xmlns="http://jabber.org/protocol/disco#info"><identity name="Tigase ver. 8.1.0-SNAPSHOT-b10588/f55efd39" category="component" type="router"/><identity name="Tigase ver. 8.1.0-SNAPSHOT-b10588/f55efd39" category="server" type="im"/><feature var="http://jabber.org/protocol/commands"/><x type="result" xmlns="jabber:x:data"><field type="hidden" var="FORM_TYPE"><value>http://jabber.org/network/serverinfo</value></field><field type="text-multi" var="abuse-addresses"><value>mailto:abuse@localhost</value><value>xmpp:abuse@localhost</value></field></x><feature var="urn:xmpp:carbons:2"/><feature var="http://jabber.org/protocol/stats"/><feature var="vcard-temp"/><feature var="jabber:iq:auth"/><feature var="http://jabber.org/protocol/amp"/><feature var="msgoffline"/><feature var="http://jabber.org/protocol/disco#info"/><feature var="http://jabber.org/protocol/disco#items"/><feature var="urn:xmpp:blocking"/><feature var="urn:xmpp:ping"/><feature var="urn:ietf:params:xml:ns:xmpp-sasl"/><feature var="http://jabber.org/protocol/pubsub"/><feature var="http://jabber.org/protocol/pubsub#owner"/><feature var="http://jabber.org/protocol/pubsub#publish"/><identity category="pubsub" type="pep"/><feature var="urn:xmpp:pep-vcard-conversion:0"/><feature var="urn:xmpp:bookmarks-conversion:0"/><feature var="urn:xmpp:archive:auto"/><feature var="urn:xmpp:archive:manage"/><feature var="urn:xmpp:push:0"/><feature var="tigase:push:away:0"/><feature var="tigase:push:encrypt:0"/><feature var="tigase:push:ignore-unknown:0"/><feature var="tigase:push:muc:0"/><feature var="tigase:push:priority:0"/><feature var="tigase:push:muted:0"/><feature var="jabber:iq:roster"/><feature var="jabber:iq:roster-dynamic"/><feature var="urn:xmpp:mam:1"/><feature var="jabber:iq:version"/><feature var="urn:xmpp:time"/><feature var="jabber:iq:privacy"/><feature var="urn:ietf:params:xml:ns:xmpp-bind"/><feature var="http://jabber.org/protocol/commands"/><feature var="urn:ietf:params:xml:ns:vcard-4.0"/><feature var="jabber:iq:private"/><feature var="urn:ietf:params:xml:ns:xmpp-session"/></query></iq>

2019-11-22 19:10:11 | non_ws_ :: ws__17o7q10133@localhost/993927746-tigase-134 << <presence from="ws__17o7q10133@localhost/993927746-tigase-134" to="ws__17o7q10133@localhost" xmlns="jabber:client"><c node="http://tigase.org/jaxmpp" ver="mg5bXbOeu1848vxdgu3jELgbQF8=" hash="sha-1" xmlns="http://jabber.org/protocol/caps"/></presence>

2019-11-22 19:10:11 | ws_ :: ws__17o7q10133@localhost << <features xmlns="http://etherx.jabber.org/streams"><sm xmlns="urn:xmpp:sm:3"/><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>SCRAM-SHA-256</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><ver xmlns="urn:xmpp:features:rosterver"/><sub xmlns="urn:xmpp:features:pre-approval"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></features>

2019-11-22 19:10:11 | ws_ :: ws__17o7q10133@localhost >> <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="SCRAM-SHA-256">biwsbj13c19fMTdvN3ExMDEzMyxyPTA1R2xWeVFKbUxOUFozU3VubjFq</auth>

2019-11-22 19:10:11 | ws_ :: ws__17o7q10133@localhost << <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cj0wNUdsVnlRSm1MTlBaM1N1bm4xanNiUXRwb2JhZ3pGamNQSVVldnBvLHM9c2tQY0g1dzUwM0owU1E9PSxpPTQwOTY=</challenge>

2019-11-22 19:10:11 | ws_ :: ws__17o7q10133@localhost >> <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">Yz1iaXdzLHI9MDVHbFZ5UUptTE5QWjNTdW5uMWpzYlF0cG9iYWd6RmpjUElVZXZwbyxwPU9ycHprZGFJWGNPeTB0Vlh3VlBCUTllZ2FYQURROUlzSXdIeldsZ2xwY2M9</response>

2019-11-22 19:10:11 | ws_ :: ws__17o7q10133@localhost << <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dj1FbFo5cjFKVFAxT3Yzam8rcnBTcmhrZjNZZDBSL1o1YmF2NGMyTXhrUCtFPQ==</success>

2019-11-22 19:10:11 | ws_ :: ws__17o7q10133@localhost << <features xmlns="http://etherx.jabber.org/streams"><sm xmlns="urn:xmpp:sm:3"/><register xmlns="http://jabber.org/features/iq-register"/><csi xmlns="urn:xmpp:csi:0"/><ver xmlns="urn:xmpp:features:rosterver"/><sub xmlns="urn:xmpp:features:pre-approval"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"><optional/></session><c node="https://tigase.net/tigase-xmpp-server" ver="vxsZDK3itTHNCC9pNOSKIQZW/14=" xmlns="http://jabber.org/protocol/caps" hash="SHA-1"/></features>

2019-11-22 19:10:11 | ws_ :: ws__17o7q10133@localhost >> <iq xmlns="jabber:client" id="nFJiDBpWXV4BfFJRczDHwr0" type="set"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource/></bind></iq>

2019-11-22 19:10:11 | ws_ :: ws__17o7q10133@localhost << <iq id="nFJiDBpWXV4BfFJRczDHwr0" type="result" to="ws__17o7q10133@localhost/993927746-tigase-135" xmlns="jabber:client"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>ws__17o7q10133@localhost/993927746-tigase-135</jid></bind></iq>

2019-11-22 19:10:11 | ws_ :: ws__17o7q10133@localhost/993927746-tigase-135 >> <iq xmlns="jabber:client" id="ZoSs8JvbLVkP9JAzgx5vl4A" type="set"><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></iq>

2019-11-22 19:10:11 | ws_ :: ws__17o7q10133@localhost/993927746-tigase-135 << <iq id="ZoSs8JvbLVkP9JAzgx5vl4A" type="result" to="ws__17o7q10133@localhost/993927746-tigase-135" xmlns="jabber:client"/>

2019-11-22 19:10:11 | ws_ :: ws__17o7q10133@localhost/993927746-tigase-135 >> <iq to="localhost" id="ss2QHCHr3vpiL1t4xcpPZj0" type="get"><query xmlns="http://jabber.org/protocol/disco#info"/></iq>

2019-11-22 19:10:11 | ws_ :: ws__17o7q10133@localhost/993927746-tigase-135 >> <enable xmlns="urn:xmpp:sm:3" resume="true"/>

2019-11-22 19:10:11 | ws_ :: ws__17o7q10133@localhost/993927746-tigase-135 >> <iq id="WGGgEnLKXX5zxyh3xcNIrT7" type="get"><query xmlns="jabber:iq:roster"/></iq>

2019-11-22 19:10:11 | ws_ :: ws__17o7q10133@localhost/993927746-tigase-135 >> <presence><c xmlns="http://jabber.org/protocol/caps" node="http://tigase.org/jaxmpp" ver="mg5bXbOeu1848vxdgu3jELgbQF8=" hash="sha-1"/></presence>

2019-11-22 19:10:11 | ws_ :: ws__17o7q10133@localhost/993927746-tigase-135 << <enabled id="34e870da-332a-4789-8e9a-2c4d4235a8dd" location="d4270859fb27" xmlns="urn:xmpp:sm:3" max="60" resume="true"/>

2019-11-22 19:10:11 | [Mutex] waiting for: [websocket:message:to:f9227c33-a3b7-4a90-abc0-55a8c97c49d1]

2019-11-22 19:10:12 | ws_ :: ws__17o7q10133@localhost/993927746-tigase-135 << <iq id="WGGgEnLKXX5zxyh3xcNIrT7" type="result" to="ws__17o7q10133@localhost/993927746-tigase-135" xmlns="jabber:client"><query xmlns="jabber:iq:roster"/></iq>

2019-11-22 19:10:12 | ws_ :: ws__17o7q10133@localhost/993927746-tigase-135 << <iq id="ss2QHCHr3vpiL1t4xcpPZj0" type="result" from="localhost" to="ws__17o7q10133@localhost/993927746-tigase-135" xmlns="jabber:client"><query xmlns="http://jabber.org/protocol/disco#info"><identity name="Tigase ver. 8.1.0-SNAPSHOT-b10588/f55efd39" category="component" type="router"/><identity name="Tigase ver. 8.1.0-SNAPSHOT-b10588/f55efd39" category="server" type="im"/><feature var="http://jabber.org/protocol/commands"/><x type="result" xmlns="jabber:x:data"><field type="hidden" var="FORM_TYPE"><value>http://jabber.org/network/serverinfo</value></field><field type="text-multi" var="abuse-addresses"><value>mailto:abuse@localhost</value><value>xmpp:abuse@localhost</value></field></x><feature var="urn:xmpp:carbons:2"/><feature var="http://jabber.org/protocol/stats"/><feature var="vcard-temp"/><feature var="jabber:iq:auth"/><feature var="http://jabber.org/protocol/amp"/><feature var="msgoffline"/><feature var="http://jabber.org/protocol/disco#info"/><feature var="http://jabber.org/protocol/disco#items"/><feature var="urn:xmpp:blocking"/><feature var="urn:xmpp:ping"/><feature var="urn:ietf:params:xml:ns:xmpp-sasl"/><feature var="http://jabber.org/protocol/pubsub"/><feature var="http://jabber.org/protocol/pubsub#owner"/><feature var="http://jabber.org/protocol/pubsub#publish"/><identity category="pubsub" type="pep"/><feature var="urn:xmpp:pep-vcard-conversion:0"/><feature var="urn:xmpp:bookmarks-conversion:0"/><feature var="urn:xmpp:archive:auto"/><feature var="urn:xmpp:archive:manage"/><feature var="urn:xmpp:push:0"/><feature var="tigase:push:away:0"/><feature var="tigase:push:encrypt:0"/><feature var="tigase:push:ignore-unknown:0"/><feature var="tigase:push:muc:0"/><feature var="tigase:push:priority:0"/><feature var="tigase:push:muted:0"/><feature var="jabber:iq:roster"/><feature var="jabber:iq:roster-dynamic"/><feature var="urn:xmpp:mam:1"/><feature var="jabber:iq:version"/><feature var="urn:xmpp:time"/><feature var="jabber:iq:privacy"/><feature var="urn:ietf:params:xml:ns:xmpp-bind"/><feature var="http://jabber.org/protocol/commands"/><feature var="urn:ietf:params:xml:ns:vcard-4.0"/><feature var="jabber:iq:private"/><feature var="urn:ietf:params:xml:ns:xmpp-session"/></query></iq>

2019-11-22 19:10:12 | ws_ :: ws__17o7q10133@localhost/993927746-tigase-135 << <presence from="ws__17o7q10133@localhost/993927746-tigase-134" to="ws__17o7q10133@localhost" xmlns="jabber:client"><c node="http://tigase.org/jaxmpp" ver="mg5bXbOeu1848vxdgu3jELgbQF8=" hash="sha-1" xmlns="http://jabber.org/protocol/caps"/></presence>

2019-11-22 19:10:12 | ws_ :: ws__17o7q10133@localhost/993927746-tigase-135 << <presence from="ws__17o7q10133@localhost/993927746-tigase-135" to="ws__17o7q10133@localhost" xmlns="jabber:client"><c node="http://tigase.org/jaxmpp" ver="mg5bXbOeu1848vxdgu3jELgbQF8=" hash="sha-1" xmlns="http://jabber.org/protocol/caps"/></presence>

2019-11-22 19:10:12 | ws_ :: ws__17o7q10133@localhost/993927746-tigase-135 << <message from="ws__17o7q10133@localhost/993927746-tigase-134" to="ws__17o7q10133@localhost/993927746-tigase-135" xmlns="jabber:client"><body>f9227c33-a3b7-4a90-abc0-55a8c97c49d1</body></message>

2019-11-22 19:10:12 | [Mutex] notify: [websocket:message:to:f9227c33-a3b7-4a90-abc0-55a8c97c49d1]

2019-11-22 19:10:12 | [Mutex] received everything.

2019-11-22 19:10:13 | [Mutex] isItemNotified: websocket:message:to:f9227c33-a3b7-4a90-abc0-55a8c97c49d1 :: true