Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/zabbix_server')
-rw-r--r--tests/zabbix_server/service/service_get_rootcause_eventids.yaml176
1 files changed, 176 insertions, 0 deletions
diff --git a/tests/zabbix_server/service/service_get_rootcause_eventids.yaml b/tests/zabbix_server/service/service_get_rootcause_eventids.yaml
index 7ce4ae9d264..0aadf3ef696 100644
--- a/tests/zabbix_server/service/service_get_rootcause_eventids.yaml
+++ b/tests/zabbix_server/service/service_get_rootcause_eventids.yaml
@@ -142,4 +142,180 @@ in:
service: S27
out:
events: [19]
+---
+test case: Accounting for propagation rules with default status calculation
+in:
+ services:
+ - name: S1
+ status: 2
+ children: [S2]
+ algorithm: MIN
+ - name: S2
+ status: 3
+ children: [S3, S4]
+ algorithm: MIN
+ propagation: {"action": DECREASE, "value": 1}
+ - name: S3
+ status: 2
+ events:
+ - {"id":3, "severity":2}
+ - name: S4
+ status: 3
+ events:
+ - {"id":4, "severity":3}
+ service: S1
+out:
+ events: [3, 4]
+---
+test case: Accounting for propagation rules with additional rules (1)
+in:
+ services:
+ - name: S1
+ status: 2
+ children: [S2]
+ algorithm: OK
+ rules:
+ - {"type": N_GE, "limit":2, "value":1, "status":3}
+ - name: S2
+ status: 3
+ children: [S3, S4]
+ algorithm: MIN
+ propagation: {"action": DECREASE, "value": 1}
+ - name: S3
+ status: 2
+ events:
+ - {"id":3, "severity":2}
+ - name: S4
+ status: 3
+ events:
+ - {"id":4, "severity":3}
+ service: S1
+out:
+ events: [4]
+---
+test case: Accounting for propagation rules with additional rules (2)
+in:
+ services:
+ - name: S1
+ status: 2
+ children: [S2]
+ algorithm: OK
+ rules:
+ - {"type": N_GE, "limit":3, "value":1, "status":3}
+ - name: S2
+ status: 2
+ children: [S3, S4]
+ algorithm: MIN
+ propagation: {"action": SET, "value": 3}
+ - name: S3
+ status: 1
+ events:
+ - {"id":3, "severity":1}
+ - name: S4
+ status: 2
+ events:
+ - {"id":4, "severity":2}
+ service: S1
+out:
+ events: [3, 4]
+---
+test case: Overriding min-status of default rules with additional rules
+in:
+ services:
+ - name: S1
+ status: 3
+ children: [S2]
+ algorithm: OK
+ rules:
+ - {"type": N_GE, "limit":2, "value":1, "status":3}
+ - name: S2
+ status: 3
+ children: [S3, S4, S5]
+ algorithm: MIN
+ rules:
+ - {"type": N_GE, "limit":1, "value":1, "status":2}
+ - name: S3
+ status: 1
+ events:
+ - {"id":3, "severity":1}
+ - name: S4
+ status: 2
+ children: [S6, S7]
+ algorithm: MIN
+ - name: S5
+ status: 3
+ algorithm: MIN
+ events:
+ - {"id":5, "severity":3}
+ - name: S6
+ status: 1
+ events:
+ - {"id":6, "severity":1}
+ - name: S7
+ status: 2
+ events:
+ - {"id":7, "severity":2}
+ service: S1
+out:
+ events: [3, 5, 6, 7]
+---
+test case: Applying min-status to events (min)
+in:
+ services:
+ - name: S1
+ status: 2
+ children: [S2]
+ algorithm: OK
+ rules:
+ - {"type": N_GE, "limit":3, "value":1, "status":3}
+ - name: S2
+ status: 3
+ children: [S3, S4]
+ algorithm: MIN
+ status: 3
+ - name: S3
+ status: 3
+ events:
+ - {"id":1, "severity":1}
+ - {"id":2, "severity":2}
+ - {"id":3, "severity":3}
+ - name: S4
+ status: 3
+ events:
+ - {"id":4, "severity":1}
+ - {"id":5, "severity":2}
+ - {"id":6, "severity":3}
+ service: S1
+out:
+ events: [3, 6]
+---
+test case: Applying min-status to events (max)
+in:
+ services:
+ - name: S1
+ status: 2
+ children: [S2]
+ algorithm: OK
+ rules:
+ - {"type": N_GE, "limit":3, "value":1, "status":3}
+ - name: S2
+ status: 3
+ children: [S3, S4]
+ algorithm: MAX
+ status: 3
+ - name: S3
+ status: 3
+ events:
+ - {"id":1, "severity":1}
+ - {"id":2, "severity":2}
+ - {"id":3, "severity":3}
+ - name: S4
+ status: 3
+ events:
+ - {"id":4, "severity":1}
+ - {"id":5, "severity":2}
+ - {"id":6, "severity":3}
+ service: S1
+out:
+ events: [1, 2, 3, 4, 5, 6]
...