mirror of
https://github.com/status-im/nim-websock.git
synced 2025-01-12 18:44:29 +00:00
616 lines
10 KiB
JSON
616 lines
10 KiB
JSON
{
|
|
"agent": "websock-secure-client",
|
|
"behavior": "OK",
|
|
"behaviorClose": "OK",
|
|
"case": 26,
|
|
"closedByMe": true,
|
|
"createStats": true,
|
|
"createWirelog": true,
|
|
"description": "Send 10 Pings with payload.",
|
|
"droppedByMe": true,
|
|
"duration": 45,
|
|
"expectation": "Pongs for our Pings with all the payloads. Note: This is not required by the Spec .. but we check for this behaviour anyway. Clean close with normal code.",
|
|
"expected": {
|
|
"OK": [
|
|
[
|
|
"pong",
|
|
"payload-0"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-1"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-2"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-3"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-4"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-5"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-6"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-7"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-8"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-9"
|
|
]
|
|
]
|
|
},
|
|
"expectedClose": {
|
|
"closeCode": [
|
|
1000
|
|
],
|
|
"closedByMe": true,
|
|
"requireClean": true
|
|
},
|
|
"failedByMe": false,
|
|
"httpRequest": "GET /runCase?case=26&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: OqpcE/3ihApsUdb4z4j0YA==\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: iFEAzNyGdYtPmHpuEZIZJQjK2Js=\r\n\r\n",
|
|
"id": "2.10",
|
|
"isServer": true,
|
|
"localCloseCode": 1000,
|
|
"localCloseReason": null,
|
|
"received": [
|
|
[
|
|
"pong",
|
|
"payload-0"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-1"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-2"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-3"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-4"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-5"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-6"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-7"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-8"
|
|
],
|
|
[
|
|
"pong",
|
|
"payload-9"
|
|
]
|
|
],
|
|
"remoteCloseCode": 1000,
|
|
"remoteCloseReason": null,
|
|
"reportCompressionRatio": false,
|
|
"reportTime": false,
|
|
"result": "Actual events match at least one expected.",
|
|
"resultClose": "Connection was properly closed",
|
|
"rxFrameStats": {
|
|
"8": 1,
|
|
"10": 10
|
|
},
|
|
"rxOctetStats": {
|
|
"8": 1,
|
|
"15": 10,
|
|
"294": 1
|
|
},
|
|
"started": "2024-01-23T04:44:52.058Z",
|
|
"trafficStats": null,
|
|
"txFrameStats": {
|
|
"8": 1,
|
|
"9": 10
|
|
},
|
|
"txOctetStats": {
|
|
"4": 1,
|
|
"11": 10,
|
|
"206": 1
|
|
},
|
|
"wasClean": true,
|
|
"wasCloseHandshakeTimeout": false,
|
|
"wasNotCleanReason": null,
|
|
"wasOpenHandshakeTimeout": false,
|
|
"wasServerConnectionDropTimeout": false,
|
|
"wirelog": [
|
|
[
|
|
"RO",
|
|
[
|
|
294,
|
|
"474554202f72756e436173653f636173653d3236266167656e743d776562736f636b2d7365637572652d636c69656e7420485454502f312e310d0a5365632d57 ..."
|
|
]
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
206,
|
|
"485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a5365727665723a204175746f6261686e5465737453756974652f302e382e ..."
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"payload-0"
|
|
],
|
|
9,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"89097061796c6f61642d30"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"payload-1"
|
|
],
|
|
9,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"89097061796c6f61642d31"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"payload-2"
|
|
],
|
|
9,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"89097061796c6f61642d32"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"payload-3"
|
|
],
|
|
9,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"89097061796c6f61642d33"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"payload-4"
|
|
],
|
|
9,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"89097061796c6f61642d34"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"payload-5"
|
|
],
|
|
9,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"89097061796c6f61642d35"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"payload-6"
|
|
],
|
|
9,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"89097061796c6f61642d36"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"payload-7"
|
|
],
|
|
9,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"89097061796c6f61642d37"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"payload-8"
|
|
],
|
|
9,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"89097061796c6f61642d38"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"payload-9"
|
|
],
|
|
9,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"89097061796c6f61642d39"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TI",
|
|
3
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
15,
|
|
"8a89bb3dacdbcb5cd5b7d45cc8f68b"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
9,
|
|
"payload-0"
|
|
],
|
|
10,
|
|
true,
|
|
0,
|
|
true,
|
|
"bb3dacdb"
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
15,
|
|
"8a893567e0574506993b5a06847a04"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
9,
|
|
"payload-1"
|
|
],
|
|
10,
|
|
true,
|
|
0,
|
|
true,
|
|
"3567e057"
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
15,
|
|
"8a89082f079e784e7ef2674e63b33a"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
9,
|
|
"payload-2"
|
|
],
|
|
10,
|
|
true,
|
|
0,
|
|
true,
|
|
"082f079e"
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
15,
|
|
"8a891bac5f9d6bcd26f174cd3bb028"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
9,
|
|
"payload-3"
|
|
],
|
|
10,
|
|
true,
|
|
0,
|
|
true,
|
|
"1bac5f9d"
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
15,
|
|
"8a89a7fc1261d79d6b0dc89d764c93"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
9,
|
|
"payload-4"
|
|
],
|
|
10,
|
|
true,
|
|
0,
|
|
true,
|
|
"a7fc1261"
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
15,
|
|
"8a895b4465112b251c7d3425013c6e"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
9,
|
|
"payload-5"
|
|
],
|
|
10,
|
|
true,
|
|
0,
|
|
true,
|
|
"5b446511"
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
15,
|
|
"8a89ccc48b5ebca5f232a3a5ef73fa"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
9,
|
|
"payload-6"
|
|
],
|
|
10,
|
|
true,
|
|
0,
|
|
true,
|
|
"ccc48b5e"
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
15,
|
|
"8a89d1e94e3fa1883753be882a12e6"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
9,
|
|
"payload-7"
|
|
],
|
|
10,
|
|
true,
|
|
0,
|
|
true,
|
|
"d1e94e3f"
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
15,
|
|
"8a894f9d7d403ffc042c20fc196d77"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
9,
|
|
"payload-8"
|
|
],
|
|
10,
|
|
true,
|
|
0,
|
|
true,
|
|
"4f9d7d40"
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
15,
|
|
"8a89525b8834223af1583d3aec196b"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
9,
|
|
"payload-9"
|
|
],
|
|
10,
|
|
true,
|
|
0,
|
|
true,
|
|
"525b8834"
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
2,
|
|
"0x03e8"
|
|
],
|
|
8,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
4,
|
|
"880203e8"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
8,
|
|
"88826b196fd868f1"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
2,
|
|
"0x03e8"
|
|
],
|
|
8,
|
|
true,
|
|
0,
|
|
true,
|
|
"6b196fd8"
|
|
]
|
|
]
|
|
} |