mirror of
https://github.com/status-im/nim-websock.git
synced 2025-01-12 10:35:03 +00:00
817 lines
12 KiB
JSON
817 lines
12 KiB
JSON
{
|
|
"agent": "websock-secure-client",
|
|
"behavior": "OK",
|
|
"behaviorClose": "OK",
|
|
"case": 70,
|
|
"closedByMe": true,
|
|
"createStats": true,
|
|
"createWirelog": true,
|
|
"description": "Send a valid UTF-8 text message in fragments of 1 octet, resulting in frames ending on positions which are not code point ends.<br><br>MESSAGE:<br>Hello-\u00b5@\u00df\u00f6\u00e4\u00fc\u00e0\u00e1-UTF-8!!<br>48656c6c6f2dc2b540c39fc3b6c3a4c3bcc3a0c3a12d5554462d382121",
|
|
"droppedByMe": true,
|
|
"duration": 1,
|
|
"expectation": "The message is echo'ed back to us.",
|
|
"expected": {
|
|
"OK": [
|
|
[
|
|
"message",
|
|
"Hello-\u00b5@\u00df\u00f6\u00e4\u00fc\u00e0\u00e1-UTF-8!!",
|
|
false
|
|
]
|
|
]
|
|
},
|
|
"expectedClose": {
|
|
"closeCode": [
|
|
1000
|
|
],
|
|
"closedByMe": true,
|
|
"requireClean": true
|
|
},
|
|
"failedByMe": false,
|
|
"httpRequest": "GET /runCase?case=70&agent=websock-secure-client HTTP/1.1\r\nSec-Websocket-Extensions: permessage-deflate; client_max_window_bits=15\r\nUpgrade: websocket\r\nHost: 127.0.0.1:9002\r\nConnection: Upgrade\r\nSec-Websocket-Version: 13\r\nSec-Websocket-Key: wzgQ2iu4B2aaKzqyJLYfVQ==\r\nCache-Control: no-cache\r\n\r\n",
|
|
"httpResponse": "HTTP/1.1 101 Switching Protocols\r\nServer: AutobahnTestSuite/0.8.2-0.10.9\r\nX-Powered-By: AutobahnPython/0.10.9\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: wHm8VHC69DpYfrs3h3KpHplomzM=\r\n\r\n",
|
|
"id": "6.2.3",
|
|
"isServer": true,
|
|
"localCloseCode": 1000,
|
|
"localCloseReason": null,
|
|
"received": [
|
|
[
|
|
"message",
|
|
"Hello-\u00b5@\u00df\u00f6\u00e4\u00fc\u00e0\u00e1-UTF-8!!",
|
|
false
|
|
]
|
|
],
|
|
"remoteCloseCode": 1000,
|
|
"remoteCloseReason": null,
|
|
"reportCompressionRatio": false,
|
|
"reportTime": false,
|
|
"result": "Actual events match at least one expected.",
|
|
"resultClose": "Connection was properly closed",
|
|
"rxFrameStats": {
|
|
"1": 1,
|
|
"8": 1
|
|
},
|
|
"rxOctetStats": {
|
|
"8": 1,
|
|
"35": 1,
|
|
"294": 1
|
|
},
|
|
"started": "2024-01-28T06:29:10.338Z",
|
|
"trafficStats": null,
|
|
"txFrameStats": {
|
|
"0": 29,
|
|
"1": 1,
|
|
"8": 1
|
|
},
|
|
"txOctetStats": {
|
|
"2": 1,
|
|
"3": 29,
|
|
"4": 1,
|
|
"206": 1
|
|
},
|
|
"wasClean": true,
|
|
"wasCloseHandshakeTimeout": false,
|
|
"wasNotCleanReason": null,
|
|
"wasOpenHandshakeTimeout": false,
|
|
"wasServerConnectionDropTimeout": false,
|
|
"wirelog": [
|
|
[
|
|
"RO",
|
|
[
|
|
294,
|
|
"474554202f72756e436173653f636173653d3730266167656e743d776562736f636b2d7365637572652d636c69656e7420485454502f312e310d0a5365632d57 ..."
|
|
]
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
206,
|
|
"485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a5365727665723a204175746f6261686e5465737453756974652f302e382e ..."
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"H"
|
|
],
|
|
1,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"010148"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"e"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"000165"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"l"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"00016c"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"l"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"00016c"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"o"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"00016f"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"-"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"00012d"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"0xc2"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"0001c2"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"0xb5"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"0001b5"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"@"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"000140"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"0xc3"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"0001c3"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"0x9f"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"00019f"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"0xc3"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"0001c3"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"0xb6"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"0001b6"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"0xc3"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"0001c3"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"0xa4"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"0001a4"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"0xc3"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"0001c3"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"0xbc"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"0001bc"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"0xc3"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"0001c3"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"0xa0"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"0001a0"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"0xc3"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"0001c3"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"0xa1"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"0001a1"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"-"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"00012d"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"U"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"000155"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"T"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"000154"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"F"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"000146"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"-"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"00012d"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"8"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"000138"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"!"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"000121"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
1,
|
|
"!"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
3,
|
|
"000121"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
0,
|
|
""
|
|
],
|
|
0,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
2,
|
|
"8000"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TI",
|
|
1
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
35,
|
|
"819dc9638eeb8106e287a64e4c5e89a011287fa02a2875a02e28684edbbf8f4eb6cae8"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
29,
|
|
"Hello-\u00b5@\u00df\u00f6\u00e4\u00fc\u00e0\u00e1-UTF-8!!"
|
|
],
|
|
1,
|
|
true,
|
|
0,
|
|
true,
|
|
"c9638eeb"
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
2,
|
|
"0x03e8"
|
|
],
|
|
8,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
4,
|
|
"880203e8"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
8,
|
|
"88824b94bb67487c"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
2,
|
|
"0x03e8"
|
|
],
|
|
8,
|
|
true,
|
|
0,
|
|
true,
|
|
"4b94bb67"
|
|
]
|
|
]
|
|
} |