nim-websock/client_tls/websock_secure_client_case_4_2_5.json

307 lines
5.5 KiB
JSON

{
"agent": "websock-secure-client",
"behavior": "OK",
"behaviorClose": "OK",
"case": 44,
"closedByMe": false,
"createStats": true,
"createWirelog": true,
"description": "Send small text message, then send frame with reserved control <b>Opcode = 15</b> and non-empty payload, then send Ping.",
"droppedByMe": false,
"duration": 2,
"expectation": "Echo for first message is received, but then connection is failed immediately, since reserved opcode frame is used. A Pong is not received.",
"expected": {
"NON-STRICT": [],
"OK": [
[
"message",
"Hello, world!",
false
]
]
},
"expectedClose": {
"closeCode": [
1002
],
"closedByMe": false,
"requireClean": false
},
"failedByMe": false,
"httpRequest": "GET /runCase?case=44&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: vtiSKGHihk+rCnGsLgFgVA==\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: wRllNKOv+OAxNxnKmOGVp3cmu34=\r\n\r\n",
"id": "4.2.5",
"isServer": true,
"localCloseCode": null,
"localCloseReason": null,
"received": [
[
"message",
"Hello, world!",
false
]
],
"remoteCloseCode": null,
"remoteCloseReason": null,
"reportCompressionRatio": false,
"reportTime": false,
"result": "Actual events match at least one expected.",
"resultClose": "Connection was properly closed",
"rxFrameStats": {
"1": 1
},
"rxOctetStats": {
"19": 1,
"294": 1
},
"started": "2024-02-16T18:34:26.826Z",
"trafficStats": null,
"txFrameStats": {
"1": 1,
"9": 1,
"15": 1
},
"txOctetStats": {
"1": 19,
"206": 1
},
"wasClean": false,
"wasCloseHandshakeTimeout": false,
"wasNotCleanReason": "peer dropped the TCP connection without previous WebSocket closing handshake",
"wasOpenHandshakeTimeout": false,
"wasServerConnectionDropTimeout": false,
"wirelog": [
[
"RO",
[
294,
"474554202f72756e436173653f636173653d3434266167656e743d776562736f636b2d7365637572652d636c69656e7420485454502f312e310d0a5365632d57 ..."
]
],
[
"TO",
[
206,
"485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a5365727665723a204175746f6261686e5465737453756974652f302e382e ..."
],
false
],
[
"TF",
[
13,
"Hello, world!"
],
1,
true,
0,
null,
null,
1,
false
],
[
"TO",
[
1,
"81"
],
true
],
[
"TF",
[
13,
"Hello, world!"
],
15,
true,
0,
null,
null,
1,
false
],
[
"TF",
[
0,
""
],
9,
true,
0,
null,
null,
1,
false
],
[
"KL",
1
],
[
"TO",
[
1,
"0d"
],
true
],
[
"TO",
[
1,
"48"
],
true
],
[
"TO",
[
1,
"65"
],
true
],
[
"TO",
[
1,
"6c"
],
true
],
[
"TO",
[
1,
"6c"
],
true
],
[
"TO",
[
1,
"6f"
],
true
],
[
"TO",
[
1,
"2c"
],
true
],
[
"TO",
[
1,
"20"
],
true
],
[
"TO",
[
1,
"77"
],
true
],
[
"TO",
[
1,
"6f"
],
true
],
[
"TO",
[
1,
"72"
],
true
],
[
"TO",
[
1,
"6c"
],
true
],
[
"TO",
[
1,
"64"
],
true
],
[
"TO",
[
1,
"21"
],
true
],
[
"TO",
[
1,
"8f"
],
true
],
[
"TO",
[
1,
"0d"
],
true
],
[
"RO",
[
19,
"818df4b83fd2bcdd53be9b941fa59bca53b6d5"
]
],
[
"RF",
[
13,
"Hello, world!"
],
1,
true,
0,
true,
"f4b83fd2"
],
[
"TO",
[
1,
"48"
],
true
],
[
"TO",
[
1,
"65"
],
true
]
]
}