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
path: root/tests
diff options
context:
space:
mode:
authorAlex Kalimulin <aleksandrs.kalimulins@zabbix.com>2021-05-06 19:50:05 +0300
committerAlex Kalimulin <aleksandrs.kalimulins@zabbix.com>2021-05-06 19:55:39 +0300
commit8d7a7dade0fc041099a1d7966944bfd06b66ba39 (patch)
tree36d175682bd517fc3f9766be7342454c36f97962 /tests
parentc06370d30836629fc5c594b54e07512aa43895c6 (diff)
........S. [ZBXNEXT-114] refactored range check, dbupgrade patch; tweaked tests, style
Diffstat (limited to 'tests')
-rw-r--r--tests/libs/zbxserver/valuemaps.yaml14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/libs/zbxserver/valuemaps.yaml b/tests/libs/zbxserver/valuemaps.yaml
index d23c46a232e..b4338f5e56b 100644
--- a/tests/libs/zbxserver/valuemaps.yaml
+++ b/tests/libs/zbxserver/valuemaps.yaml
@@ -245,6 +245,18 @@ out:
return: SUCCEED
value: "Value <= 3 (1)"
---
+test case: scientific ranges
+in:
+ value: -0.22
+ type: 0 # ITEM_VALUE_TYPE_FLOAT
+ valuemaps:
+ - type: 3
+ value: "-3.05E-1--1.1e-2, 1e+4 - 1.002e+5"
+ newvalue: "Scientific Range"
+out:
+ return: SUCCEED
+ value: "Scientific Range (-0.22)"
+---
test case: complex range
in:
value: 4
@@ -257,7 +269,7 @@ out:
return: SUCCEED
value: "Range (4)"
---
-test case: complex range2
+test case: complex range 2
in:
value: 4
type: 3 # ITEM_VALUE_TYPE_UINT64