mirror of
https://github.com/status-im/nim-websock.git
synced 2025-01-11 18:14:10 +00:00
177 lines
4.2 KiB
JSON
177 lines
4.2 KiB
JSON
{
|
|
"agent": "websock-secure-client",
|
|
"behavior": "OK",
|
|
"behaviorClose": "OK",
|
|
"case": 2,
|
|
"closedByMe": true,
|
|
"createStats": true,
|
|
"createWirelog": true,
|
|
"description": "Send text message message with payload of length 125.",
|
|
"droppedByMe": true,
|
|
"duration": 1,
|
|
"expectation": "Receive echo'ed text message (with payload as sent). Clean close with normal code.",
|
|
"expected": {
|
|
"OK": [
|
|
[
|
|
"message",
|
|
"**************************************************************** ...",
|
|
false
|
|
]
|
|
]
|
|
},
|
|
"expectedClose": {
|
|
"closeCode": [
|
|
1000
|
|
],
|
|
"closedByMe": true,
|
|
"requireClean": true
|
|
},
|
|
"failedByMe": false,
|
|
"httpRequest": "GET /runCase?case=2&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: m3IwVFd93rJ1ETfaMy53tQ==\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: wTA2TUnKigUHHS1QhjJ7TRYe4JM=\r\n\r\n",
|
|
"id": "1.1.2",
|
|
"isServer": true,
|
|
"localCloseCode": 1000,
|
|
"localCloseReason": null,
|
|
"received": [
|
|
[
|
|
"message",
|
|
"**************************************************************** ...",
|
|
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,
|
|
"131": 1,
|
|
"293": 1
|
|
},
|
|
"started": "2024-11-28T05:30:24.455Z",
|
|
"trafficStats": null,
|
|
"txFrameStats": {
|
|
"1": 1,
|
|
"8": 1
|
|
},
|
|
"txOctetStats": {
|
|
"4": 1,
|
|
"127": 1,
|
|
"206": 1
|
|
},
|
|
"wasClean": true,
|
|
"wasCloseHandshakeTimeout": false,
|
|
"wasNotCleanReason": null,
|
|
"wasOpenHandshakeTimeout": false,
|
|
"wasServerConnectionDropTimeout": false,
|
|
"wirelog": [
|
|
[
|
|
"RO",
|
|
[
|
|
293,
|
|
"474554202f72756e436173653f636173653d32266167656e743d776562736f636b2d7365637572652d636c69656e7420485454502f312e310d0a5365632d5765 ..."
|
|
]
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
206,
|
|
"485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a5365727665723a204175746f6261686e5465737453756974652f302e382e ..."
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
125,
|
|
"**************************************************************** ..."
|
|
],
|
|
1,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
127,
|
|
"817d2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a ..."
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"KL",
|
|
1
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
131,
|
|
"81fd13f7e39c39ddc9b639ddc9b639ddc9b639ddc9b639ddc9b639ddc9b639ddc9b639ddc9b639ddc9b639ddc9b639ddc9b639ddc9b639ddc9b639ddc9b639dd ..."
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
125,
|
|
"**************************************************************** ..."
|
|
],
|
|
1,
|
|
true,
|
|
0,
|
|
true,
|
|
"13f7e39c"
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
2,
|
|
"0x03e8"
|
|
],
|
|
8,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
4,
|
|
"880203e8"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"RO",
|
|
[
|
|
8,
|
|
"8882fe777f5bfd9f"
|
|
]
|
|
],
|
|
[
|
|
"RF",
|
|
[
|
|
2,
|
|
"0x03e8"
|
|
],
|
|
8,
|
|
true,
|
|
0,
|
|
true,
|
|
"fe777f5b"
|
|
]
|
|
]
|
|
} |