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:
authorVladislavs Sokurenko <vladislavs.sokurenko@zabbix.com>2020-03-13 16:55:37 +0300
committerVladislavs Sokurenko <vladislavs.sokurenko@zabbix.com>2020-03-13 16:55:37 +0300
commit116022fad7dab8aa8ef6e91920ae4cbada9b2077 (patch)
treed4f5a4394931278b00334a3263a5b8bcf09e7b44 /tests/zabbix_server/preprocessor
parent3ff022d8345265190707666afb0d100f7773fa4d (diff)
.......PS. [ZBXNEXT-4712] added mock tests regarding invalid parameters
Diffstat (limited to 'tests/zabbix_server/preprocessor')
-rw-r--r--tests/zabbix_server/preprocessor/zbx_item_preproc.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/zabbix_server/preprocessor/zbx_item_preproc.yaml b/tests/zabbix_server/preprocessor/zbx_item_preproc.yaml
index c61048a1865..f914a088361 100644
--- a/tests/zabbix_server/preprocessor/zbx_item_preproc.yaml
+++ b/tests/zabbix_server/preprocessor/zbx_item_preproc.yaml
@@ -2138,4 +2138,30 @@ in:
out:
return: SUCCEED
value: "OK"
+---
+test case: Missing second parameter
+in:
+ value:
+ value_type: ITEM_VALUE_TYPE_STR
+ time: 2017-10-29 03:15:00 +03:00
+ data: "a"
+ step:
+ type: ZBX_PREPROC_STR_REPLACE
+ params: "OK"
+out:
+ return: FAIL
+ value: "a"
+---
+test case: Missing first parameter
+in:
+ value:
+ value_type: ITEM_VALUE_TYPE_STR
+ time: 2017-10-29 03:15:00 +03:00
+ data: "a"
+ step:
+ type: ZBX_PREPROC_STR_REPLACE
+ params: "\nOK"
+out:
+ return: FAIL
+ value: "a"
...