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:
authorSergey Simonenko <sergey.simonenko@zabbix.com>2022-01-13 13:52:26 +0300
committerSergey Simonenko <sergey.simonenko@zabbix.com>2022-01-13 13:52:26 +0300
commit7c10959f5e891c2bd2f84a47a28c65abdb09abe8 (patch)
tree8f5311b20fbd697142ffbe00ccecd75ad143ac66 /tests
parent5fadc2d7586fb4346cf92adb84af4b2061aa7522 (diff)
........S. [ZBX-19456] changed zbx_trends_parse_range() behavior for zero time period, added test cases
Diffstat (limited to 'tests')
-rw-r--r--tests/libs/zbxtrends/zbx_trends_parse_range.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/libs/zbxtrends/zbx_trends_parse_range.yaml b/tests/libs/zbxtrends/zbx_trends_parse_range.yaml
index aabcd17d562..782794fe0b3 100644
--- a/tests/libs/zbxtrends/zbx_trends_parse_range.yaml
+++ b/tests/libs/zbxtrends/zbx_trends_parse_range.yaml
@@ -394,4 +394,14 @@ out:
start: 2020-09-07 00:00:00.000000000 +03:00
end: 2020-09-07 00:00:00.000000000 +03:00
return: SUCCEED
+---
+test case: Valid shift '0h'
+in:
+ param: 1h:now-0h
+ timezone: :Europe/Riga
+ time: 2020-09-01 00:00:00.000000000 +03:00
+out:
+ start: 2020-08-31 23:00:00.000000000 +03:00
+ end: 2020-08-31 23:00:00.000000000 +03:00
+ return: SUCCEED
...