WebSocket: Test WebSocket connectivity - #3305

Test duration: 2.812s

Passed Tests
tigase.tests.server.TestWebSocketConnectivity
testWebSocket_ConnectionHeaderCaseSensitivity 0.403s
2019-11-20 18:59:00 |

2019-11-20 18:59:00 | null / [TestClass name=class tigase.tests.server.TestWebSocketConnectivity]

2019-11-20 18:59:00 | ------------------------------------

testWebSocket_TwoFramesPingAndTextFrameInSingleTcpFrame 1.702s
2019-11-20 18:59:01 |

2019-11-20 18:59:01 | null / [TestClass name=class tigase.tests.server.TestWebSocketConnectivity]

2019-11-20 18:59:01 | ------------------------------------

2019-11-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost << <features xmlns="http://etherx.jabber.org/streams"><sm xmlns="urn:xmpp:sm:3"/><auth xmlns="http://jabber.org/features/iq-auth"/><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><register xmlns="http://jabber.org/features/iq-register"/><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-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost >> <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="SCRAM-SHA-256">biwsbj13c19fNWd3NGp0MDEyMSxyPTZJWWc2cWlWZmRyTGxDSDVPa05G</auth>

2019-11-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost << <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cj02SVlnNnFpVmZkckxsQ0g1T2tORjE5ejVaNElKUGM3S2xFZjJ0djdHLHM9Z2R3RUc2M2NMRzNGYnc9PSxpPTQwOTY=</challenge>

2019-11-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost >> <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">Yz1iaXdzLHI9NklZZzZxaVZmZHJMbENINU9rTkYxOXo1WjRJSlBjN0tsRWYydHY3RyxwPVRJTXNkQnNCVXFkN2p4bzBGL3p6d1VEMEwvK0s0cFFuVDUvN0taaEpyTWM9</response>

2019-11-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost << <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dj1hYS9QSkZCaFcvV2tEOTU2LzhHaU9USkYrZk9ZV1BTMkxxZmRGNGtJV1BrPQ==</success>

2019-11-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@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 ver="8SAx7sxxLI3422mjAeBbH2oWxJg=" node="https://tigase.net/tigase-xmpp-server" hash="SHA-1" xmlns="http://jabber.org/protocol/caps"/></features>

2019-11-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost >> <iq xmlns="jabber:client" id="k6Y8HskKYpXbviFkQW9xgPH" type="set"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource/></bind></iq>

2019-11-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost << <iq id="k6Y8HskKYpXbviFkQW9xgPH" to="ws__5gw4jt0121@localhost/993927746-tigase-122" type="result" xmlns="jabber:client"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>ws__5gw4jt0121@localhost/993927746-tigase-122</jid></bind></iq>

2019-11-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-122 >> <iq xmlns="jabber:client" id="A6WQS39odIQ7lIUVdU6FLAA" type="set"><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></iq>

2019-11-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-122 << <iq id="A6WQS39odIQ7lIUVdU6FLAA" to="ws__5gw4jt0121@localhost/993927746-tigase-122" type="result" xmlns="jabber:client"/>

2019-11-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-122 >> <iq to="localhost" id="t7XMQLweIHDsdt2vi0rZ0u5" type="get"><query xmlns="http://jabber.org/protocol/disco#info"/></iq>

2019-11-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-122 >> <enable xmlns="urn:xmpp:sm:3" resume="true"/>

2019-11-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-122 >> <iq id="t8YOUTMKKLLIJv6Dywt38KB" type="get"><query xmlns="jabber:iq:roster"/></iq>

2019-11-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-122 >> <presence><c xmlns="http://jabber.org/protocol/caps" node="http://tigase.org/jaxmpp" ver="mg5bXbOeu1848vxdgu3jELgbQF8=" hash="sha-1"/></presence>

2019-11-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-122 << <enabled max="60" id="b5f227c6-8068-4032-aea9-9d959b19d89a" resume="true" location="d4270859fb27" xmlns="urn:xmpp:sm:3"/>

2019-11-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-122 << <iq id="t8YOUTMKKLLIJv6Dywt38KB" to="ws__5gw4jt0121@localhost/993927746-tigase-122" type="result" xmlns="jabber:client"><query xmlns="jabber:iq:roster"/></iq>

2019-11-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-122 << <iq id="t7XMQLweIHDsdt2vi0rZ0u5" to="ws__5gw4jt0121@localhost/993927746-tigase-122" type="result" from="localhost" xmlns="jabber:client"><query xmlns="http://jabber.org/protocol/disco#info"><identity name="Tigase ver. 8.1.0-SNAPSHOT-b10574/f55efd39" type="router" category="component"/><identity name="Tigase ver. 8.1.0-SNAPSHOT-b10574/f55efd39" type="im" category="server"/><feature var="http://jabber.org/protocol/commands"/><x type="result" xmlns="jabber:x:data"><field var="FORM_TYPE" type="hidden"><value>http://jabber.org/network/serverinfo</value></field><field var="abuse-addresses" type="text-multi"><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="http://jabber.org/protocol/amp"/><feature var="msgoffline"/><feature var="vcard-temp"/><feature var="jabber:iq:auth"/><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 type="pep" category="pubsub"/><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:encrypt:0"/><feature var="tigase:push:ignore-unknown:0"/><feature var="tigase:push:muc:0"/><feature var="tigase:push:muted:0"/><feature var="tigase:push:priority: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-20 18:59:01 | non_ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-122 << <presence to="ws__5gw4jt0121@localhost" from="ws__5gw4jt0121@localhost/993927746-tigase-122" xmlns="jabber:client"><c ver="mg5bXbOeu1848vxdgu3jELgbQF8=" node="http://tigase.org/jaxmpp" hash="sha-1" xmlns="http://jabber.org/protocol/caps"/></presence>

2019-11-20 18:59:01 | ws_ :: ws__5gw4jt0121@localhost << <features xmlns="http://etherx.jabber.org/streams"><sm xmlns="urn:xmpp:sm:3"/><auth xmlns="http://jabber.org/features/iq-auth"/><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><register xmlns="http://jabber.org/features/iq-register"/><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-20 18:59:01 | ws_ :: ws__5gw4jt0121@localhost >> <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="SCRAM-SHA-256">biwsbj13c19fNWd3NGp0MDEyMSxyPUtQY3h6Tk1nUkk4Znl4ZmJTdkIw</auth>

2019-11-20 18:59:01 | ws_ :: ws__5gw4jt0121@localhost << <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cj1LUGN4ek5NZ1JJOGZ5eGZiU3ZCMFJaTVlmVDVURWhUTTlDSDdkSWVtLHM9Z2R3RUc2M2NMRzNGYnc9PSxpPTQwOTY=</challenge>

2019-11-20 18:59:01 | ws_ :: ws__5gw4jt0121@localhost >> <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">Yz1iaXdzLHI9S1BjeHpOTWdSSThmeXhmYlN2QjBSWk1ZZlQ1VEVoVE05Q0g3ZEllbSxwPXdYMWo2OWIvemkxWEVqb2QyVjRQYkZpWFphWUZ1SGc5cUt6VUUyYjYwUW89</response>

2019-11-20 18:59:01 | ws_ :: ws__5gw4jt0121@localhost << <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dj0weHFZRzk5UkdsVXRqanppTlZ6bW91Q0ZJenAvaTNaaWYxbGxDZGZqK25zPQ==</success>

2019-11-20 18:59:01 | ws_ :: ws__5gw4jt0121@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 ver="8SAx7sxxLI3422mjAeBbH2oWxJg=" node="https://tigase.net/tigase-xmpp-server" hash="SHA-1" xmlns="http://jabber.org/protocol/caps"/></features>

2019-11-20 18:59:01 | ws_ :: ws__5gw4jt0121@localhost >> <iq xmlns="jabber:client" id="WmCqZfDybmU4p3iTPKV8GNH" type="set"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource/></bind></iq>

2019-11-20 18:59:02 | ws_ :: ws__5gw4jt0121@localhost << <iq id="WmCqZfDybmU4p3iTPKV8GNH" to="ws__5gw4jt0121@localhost/993927746-tigase-123" type="result" xmlns="jabber:client"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>ws__5gw4jt0121@localhost/993927746-tigase-123</jid></bind></iq>

2019-11-20 18:59:02 | ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-123 >> <iq xmlns="jabber:client" id="9Zt6uodx6Gtj6urjGMEM1bD" type="set"><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></iq>

2019-11-20 18:59:02 | ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-123 << <iq id="9Zt6uodx6Gtj6urjGMEM1bD" to="ws__5gw4jt0121@localhost/993927746-tigase-123" type="result" xmlns="jabber:client"/>

2019-11-20 18:59:02 | ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-123 >> <iq to="localhost" id="y6MxlV2nNGNSaLDi4fRcGP5" type="get"><query xmlns="http://jabber.org/protocol/disco#info"/></iq>

2019-11-20 18:59:02 | ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-123 >> <enable xmlns="urn:xmpp:sm:3" resume="true"/>

2019-11-20 18:59:02 | ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-123 >> <iq id="8Ymxvi0rZ0u5xyofVUeyADp" type="get"><query xmlns="jabber:iq:roster"/></iq>

2019-11-20 18:59:02 | ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-123 >> <presence><c xmlns="http://jabber.org/protocol/caps" node="http://tigase.org/jaxmpp" ver="mg5bXbOeu1848vxdgu3jELgbQF8=" hash="sha-1"/></presence>

2019-11-20 18:59:02 | [Mutex] waiting for: [websocket:message:to:b33a2b30-1594-4908-b259-bd8a1a45c7a4]

2019-11-20 18:59:02 | ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-123 << <enabled max="60" id="392358d3-e4dc-47f7-a1f2-696c432b3744" resume="true" location="d4270859fb27" xmlns="urn:xmpp:sm:3"/>

2019-11-20 18:59:02 | ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-123 << <iq id="y6MxlV2nNGNSaLDi4fRcGP5" to="ws__5gw4jt0121@localhost/993927746-tigase-123" type="result" from="localhost" xmlns="jabber:client"><query xmlns="http://jabber.org/protocol/disco#info"><identity name="Tigase ver. 8.1.0-SNAPSHOT-b10574/f55efd39" type="router" category="component"/><identity name="Tigase ver. 8.1.0-SNAPSHOT-b10574/f55efd39" type="im" category="server"/><feature var="http://jabber.org/protocol/commands"/><x type="result" xmlns="jabber:x:data"><field var="FORM_TYPE" type="hidden"><value>http://jabber.org/network/serverinfo</value></field><field var="abuse-addresses" type="text-multi"><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="http://jabber.org/protocol/amp"/><feature var="msgoffline"/><feature var="vcard-temp"/><feature var="jabber:iq:auth"/><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 type="pep" category="pubsub"/><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:encrypt:0"/><feature var="tigase:push:ignore-unknown:0"/><feature var="tigase:push:muc:0"/><feature var="tigase:push:muted:0"/><feature var="tigase:push:priority: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-20 18:59:02 | ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-123 << <iq id="8Ymxvi0rZ0u5xyofVUeyADp" to="ws__5gw4jt0121@localhost/993927746-tigase-123" type="result" xmlns="jabber:client"><query xmlns="jabber:iq:roster"/></iq>

2019-11-20 18:59:02 | ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-123 << <message to="ws__5gw4jt0121@localhost/993927746-tigase-123" from="ws__5gw4jt0121@localhost/993927746-tigase-122" xmlns="jabber:client"><body>b33a2b30-1594-4908-b259-bd8a1a45c7a4</body></message>

2019-11-20 18:59:02 | ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-123 << <presence to="ws__5gw4jt0121@localhost" from="ws__5gw4jt0121@localhost/993927746-tigase-122" xmlns="jabber:client"><c ver="mg5bXbOeu1848vxdgu3jELgbQF8=" node="http://tigase.org/jaxmpp" hash="sha-1" xmlns="http://jabber.org/protocol/caps"/></presence>

2019-11-20 18:59:02 | ws_ :: ws__5gw4jt0121@localhost/993927746-tigase-123 << <presence to="ws__5gw4jt0121@localhost" from="ws__5gw4jt0121@localhost/993927746-tigase-123" xmlns="jabber:client"><c ver="mg5bXbOeu1848vxdgu3jELgbQF8=" node="http://tigase.org/jaxmpp" hash="sha-1" xmlns="http://jabber.org/protocol/caps"/></presence>

2019-11-20 18:59:02 | [Mutex] notify: [websocket:message:to:b33a2b30-1594-4908-b259-bd8a1a45c7a4]

2019-11-20 18:59:02 | [Mutex] received everything.

2019-11-20 18:59:03 | [Mutex] isItemNotified: websocket:message:to:b33a2b30-1594-4908-b259-bd8a1a45c7a4 :: true