瀏覽代碼

fix tests

Sebastien Blot 3 年之前
父節點
當前提交
cb1a86fdc8

+ 1 - 1
pkg/leakybucket/tests/simple-leaky-blackhole/bucket.yaml

@@ -1,7 +1,7 @@
 # ssh bruteforce
 type: leaky
 debug: true
-name: test/simple-leaky
+name: test/simple-leaky-blackhole
 description: "Simple leaky"
 filter: "evt.Line.Labels.type =='testlog'"
 leakspeed: "10s"

+ 2 - 2
pkg/leakybucket/tests/simple-leaky-blackhole/test.json

@@ -91,7 +91,7 @@
           }
         },
         "Alert" : {
-          "scenario": "test/simple-leaky",
+          "scenario": "test/simple-leaky-blackhole",
           "events_count": 2
           
         }
@@ -108,7 +108,7 @@
           }
         },
         "Alert" : {
-          "scenario": "test/simple-leaky",
+          "scenario": "test/simple-leaky-blackhole",
           "events_count": 2
           
         }

+ 1 - 1
pkg/leakybucket/tests/simple-leaky-overflow/bucket.yaml

@@ -1,6 +1,6 @@
 type: leaky
 debug: true
-name: test/simple-leaky
+name: test/simple-leaky-ovfl
 description: "Simple leaky"
 filter: "evt.Line.Labels.type =='testlog'"
 leakspeed: "10s"

+ 1 - 1
pkg/leakybucket/tests/simple-leaky-overflow/test.json

@@ -36,7 +36,7 @@
           }
         },
         "Alert" : {
-        "scenario": "test/simple-leaky",
+        "scenario": "test/simple-leaky-ovfl",
         "events_count": 2
         }
       }

+ 1 - 1
pkg/leakybucket/tests/simple-leaky-underflow/bucket.yaml

@@ -1,7 +1,7 @@
 # ssh bruteforce
 type: leaky
 debug: true
-name: test/simple-leaky
+name: test/simple-leaky-underflow
 description: "Simple leaky"
 filter: "evt.Line.Labels.type =='testlog'"
 leakspeed: "0.5s"

+ 1 - 1
pkg/leakybucket/tests/simple-leaky-uniq-w-buckets_state/bucket.yaml

@@ -1,7 +1,7 @@
 # ssh bruteforce
 type: leaky
 debug: true
-name: test/simple-leaky
+name: test/simple-leaky-state
 description: "Simple leaky"
 filter: "evt.Line.Labels.type =='testlog'"
 leakspeed: "10s"

+ 3 - 3
pkg/leakybucket/tests/simple-leaky-uniq-w-buckets_state/in-buckets_state.json

@@ -1,6 +1,6 @@
 {
- "cdf58e6ae48e79ac3ae0f006e1a2e627eccd8b63": {
-  "Name": "test/simple-leaky",
+ "4fccb3db1e4c2e1c94bdb747336c8749bbc470ef": {
+  "Name": "test/simple-leaky-state",
   "Mode": 1,
   "SerializedState": {
    "Limit": 0.1,
@@ -74,7 +74,7 @@
   },
   "Capacity": 3,
   "CacheSize": 0,
-  "Mapkey": "cdf58e6ae48e79ac3ae0f006e1a2e627eccd8b63",
+  "Mapkey": "4fccb3db1e4c2e1c94bdb747336c8749bbc470ef",
   "Reprocess": false,
   "Uuid": "dark-bush",
   "First_ts": "2020-01-01T10:00:04Z",

+ 1 - 1
pkg/leakybucket/tests/simple-leaky-uniq-w-buckets_state/test.json

@@ -52,7 +52,7 @@
           }
         },
         "Alert" : {
-        "scenario": "test/simple-leaky",
+        "scenario": "test/simple-leaky-state",
         "events_count": 4
         }
        

+ 1 - 1
pkg/leakybucket/tests/simple-leaky-uniq/bucket.yaml

@@ -1,7 +1,7 @@
 # ssh bruteforce
 type: leaky
 debug: true
-name: test/simple-leaky
+name: test/simple-leaky-uniq
 description: "Simple leaky"
 filter: "evt.Line.Labels.type =='testlog'"
 leakspeed: "10s"

+ 1 - 1
pkg/leakybucket/tests/simple-leaky-uniq/test.json

@@ -52,7 +52,7 @@
           }
         },
         "Alert" : {
-        "scenario": "test/simple-leaky",
+        "scenario": "test/simple-leaky-uniq",
         "events_count": 2
         }