mirror of
https://github.com/status-im/nim-websock.git
synced 2025-01-12 10:35:03 +00:00
376 lines
7.1 KiB
JSON
376 lines
7.1 KiB
JSON
{
|
|
"agent": "websock-secure-client",
|
|
"behavior": "OK",
|
|
"behaviorClose": "OK",
|
|
"case": 63,
|
|
"closedByMe": true,
|
|
"createStats": true,
|
|
"createWirelog": true,
|
|
"description": "A fragmented text message is sent in multiple frames. After\n sending the first 2 frames of the text message, a Ping is sent. Then we wait 1s,\n then we send 2 more text fragments, another Ping and then the final text fragment.\n Everything is legal.",
|
|
"droppedByMe": true,
|
|
"duration": 1002,
|
|
"expectation": "The peer immediately answers the first Ping before\n it has received the last text message fragment. The peer pong's back the Ping's\n payload exactly, and echo's the payload of the fragmented message back to us.",
|
|
"expected": {
|
|
"OK": [
|
|
[
|
|
"pong",
|
|
"pongme 1!"
|
|
],
|
|
[
|
|
"pong",
|
|
"pongme 2!"
|
|
],
|
|
[
|
|
"message",
|
|
"fragment1fragment2fragment3fragment4fragment5",
|
|
false
|
|
]
|
|
]
|
|
},
|
|
"expectedClose": {
|
|
"closeCode": [
|
|
1000
|
|
],
|
|
"closedByMe": true,
|
|
"requireClean": true
|
|
},
|
|
"failedByMe": false,
|
|
"httpRequest": "GET /runCase?case=63&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: aKv6aczq/fAh+ULaNgrhIg==\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: 1SopkbRR6PiGZ8YL9dm9bOVLtuM=\r\n\r\n",
|
|
"id": "5.19",
|
|
"isServer": true,
|
|
"localCloseCode": 1000,
|
|
"localCloseReason": null,
|
|
"received": [
|
|
[
|
|
"pong",
|
|
"pongme 1!"
|
|
],
|
|
[
|
|
"pong",
|
|
"pongme 2!"
|
|
],
|
|
[
|
|
"message",
|
|
"fragment1fragment2fragment3fragment4fragment5",
|
|
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,
|
|
"10": 2
|
|
},
|
|
"rxOctetStats": {
|
|
"8": 1,
|
|
"15": 2,
|
|
"51": 1,
|
|
"294": 1
|
|
},
|
|
"started": "2024-01-28T06:29:07.946Z",
|
|
"trafficStats": null,
|
|
"txFrameStats": {
|
|
"0": 4,
|
|
"1": 1,
|
|
"8": 1,
|
|
"9": 2
|
|
},
|
|
"txOctetStats": {
|
|
"4": 1,
|
|
"11": 7,
|
|
"206": 1
|
|
},
|
|
"wasClean": true,
|
|
"wasCloseHandshakeTimeout": false,
|
|
"wasNotCleanReason": null,
|
|
"wasOpenHandshakeTimeout": false,
|
|
"wasServerConnectionDropTimeout": false,
|
|
"wirelog": [
|
|
[
|
|
"RO",
|
|
[
|
|
294,
|
|
"474554202f72756e436173653f636173653d3633266167656e743d776562736f636b2d7365637572652d636c69656e7420485454502f312e310d0a5365632d57 ..."
|
|
]
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
206,
|
|
"485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a5365727665723a204175746f6261686e5465737453756974652f302e382e ..."
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"fragment1"
|
|
],
|
|
1,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"0109667261676d656e7431"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"fragment2"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"0009667261676d656e7432"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"pongme 1!"
|
|
],
|
|
9,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"8909706f6e676d65203121"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"CT",
|
|
1,
|
|
null
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
15,
|
|
"8a89c955ca84b93aa4e3a430eab5e8"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
9,
|
|
"pongme 1!"
|
|
],
|
|
10,
|
|
true,
|
|
0,
|
|
true,
|
|
"c955ca84"
|
|
],
|
|
[
|
|
"CTE",
|
|
null
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"fragment3"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"0009667261676d656e7433"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"fragment4"
|
|
],
|
|
0,
|
|
false,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"0009667261676d656e7434"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"pongme 2!"
|
|
],
|
|
9,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"8909706f6e676d65203221"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
9,
|
|
"fragment5"
|
|
],
|
|
0,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"8009667261676d656e7435"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TI",
|
|
1
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
15,
|
|
"8a8985bc1c0df5d3726ae8d93c3fa4"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
9,
|
|
"pongme 2!"
|
|
],
|
|
10,
|
|
true,
|
|
0,
|
|
true,
|
|
"85bc1c0d"
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
51,
|
|
"81ad4703fa3e21719b592a66944a7665885f206e9f5033319c4c2664975b2977c95835629d53226d8e0a21719b592a66944a72"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
45,
|
|
"fragment1fragment2fragment3fragment4fragment5"
|
|
],
|
|
1,
|
|
true,
|
|
0,
|
|
true,
|
|
"4703fa3e"
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
2,
|
|
"0x03e8"
|
|
],
|
|
8,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
4,
|
|
"880203e8"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
8,
|
|
"888204544fd207bc"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
2,
|
|
"0x03e8"
|
|
],
|
|
8,
|
|
true,
|
|
0,
|
|
true,
|
|
"04544fd2"
|
|
]
|
|
]
|
|
} |