Skip to content

Commit 44d7879

Browse files
committed
add tests
1 parent 9bae649 commit 44d7879

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tests/data/pixiu

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,6 @@ data = [
345345
},
346346
},
347347
{
348-
# "raw": '<174>Oct 17 12:50:42 HKSTO03-Node1 nginx 127.0.0.1 - - [17/Oct/2022:12:50:42 +0200] "GET /dsware/service/cluster/storagepool/query*** HTTP/1.1" 200 "0.062" 924 "-" "Apache-HttpClient/5.1 (Java/1.8.0_322)" "-" 127.0.0.1:9527 200 "0.064" "********" "********" "********" "127.0.0.1" "application/json;charset=UTF-8" "-" "-" "gzip, x-gzip, deflate"',
349-
350348
"raw": '<174>Aug 14 09:15:16 C4STO01-Node1 nginx 127.0.0.1 [14/Aug/2024:09:15:16 +0200] "GET /api/v2/cluster/se*** HTTP/1.1" 200 "0.046" 3072 "Apache-HttpClient/5.1 (Java/1.8.0_372)" "-" 127.0.0.1:8099 200 "0.046" "********" "********" "********" "127.0.0.1" "application/json;charset=UTF-8" "-" ',
351349
"expected": {
352350
"@source_host": "C4STO01-Node1",
@@ -357,4 +355,15 @@ data = [
357355
"response": 200,
358356
},
359357
},
358+
{
359+
"raw": '<174>Aug 14 16:00:24 C4STO01-Node1 nginx 134.184.143.132 [14/Aug/2024:16:00:05 +0200] "GET /api/v2/converged_service/nam*** HTTP/1.1" 200 "0.165" 48 "vsc-rest-client" "-" 127.0.0.1:8778 200 "0.166" "********" "None" "None" "" "-" "-" ',
360+
"expected": {
361+
"@source_host": "C4STO01-Node1",
362+
"program": "nginx",
363+
"clientip": "134.184.143.132",
364+
"verb": "GET",
365+
"request": "/api/v2/converged_service/nam***",
366+
"response": 200,
367+
},
368+
},
360369
]

0 commit comments

Comments
 (0)