diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2021-04-29 10:13:53 +0300 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2021-04-29 10:14:13 +0300 |
commit | 05a1abd904a464d360310ea4fe0768e52e15ec3d (patch) | |
tree | fc1d5c5bcbe58c96b2c074d869cc55abc10fedaa /tests | |
parent | adc1d85a1e2e792e161e8158ea3b186082755839 (diff) |
........S. [ZBXNEXT-6452] fixed evaluate_function test cases
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libs/zbxserver/evaluate_function.yaml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/libs/zbxserver/evaluate_function.yaml b/tests/libs/zbxserver/evaluate_function.yaml index 87fbc9dbe69..13831f39713 100644 --- a/tests/libs/zbxserver/evaluate_function.yaml +++ b/tests/libs/zbxserver/evaluate_function.yaml @@ -672,7 +672,7 @@ out: return: SUCCEED value: 1 --- -test case: Evaluate logeventid("^12") +test case: Evaluate logeventid(,"^12") in: history: - itemid: 1 @@ -686,12 +686,12 @@ in: ts: 2017-01-10 10:00:00.000000000 +00:00 time: 2017-01-10 10:10:00.000000000 +00:00 function: logeventid - params: '"^12"' + params: ',"^12"' out: return: SUCCEED value: 1 --- -test case: Evaluate logeventid("^34") +test case: Evaluate logeventid(,"^34") in: history: - itemid: 1 @@ -705,7 +705,7 @@ in: ts: 2017-01-10 10:00:00.000000000 +00:00 time: 2017-01-10 10:10:00.000000000 +00:00 function: logeventid - params: '"^34"' + params: ',"^34"' out: return: SUCCEED value: 0 @@ -729,7 +729,7 @@ out: return: SUCCEED value: 4 --- -test case: Evaluate logsource("(Application|System)") <- Application +test case: Evaluate logsource(,"(Application|System)") <- Application in: history: - itemid: 1 @@ -743,12 +743,12 @@ in: ts: 2017-01-10 10:00:00.000000000 +00:00 time: 2017-01-10 10:10:00.000000000 +00:00 function: logsource - params: '"(Application|System)"' + params: ',"(Application|System)"' out: return: SUCCEED value: 1 --- -test case: Evaluate logsource("(Application|System)") <- Security +test case: Evaluate logsource(,"(Application|System)") <- Security in: history: - itemid: 1 @@ -762,7 +762,7 @@ in: ts: 2017-01-10 10:00:00.000000000 +00:00 time: 2017-01-10 10:10:00.000000000 +00:00 function: logsource - params: '"(Application|System)"' + params: ',"(Application|System)"' out: return: SUCCEED value: 0 |