You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zabbix/tests/libs/zbxdbcache/dc_function_calculate_nextc...

129 lines
3.6 KiB

---
test case: Schedule time based trigger from 2020-09-01 00:00:00.000000000 +03:00
in:
type: ZBX_TRIGGER_TIMER_FUNCTION_TIME
params:
timezone: :Europe/Riga
time: 2020-09-01 00:00:00.000000000 +03:00
out:
nextcheck: 2020-09-01 00:00:30.000000000 +03:00
---
test case: Schedule time based trigger from 2020-09-01 00:00:15.000000000 +03:00
in:
type: ZBX_TRIGGER_TIMER_FUNCTION_TIME
params:
timezone: :Europe/Riga
time: 2020-09-01 00:00:15.000000000 +03:00
out:
nextcheck: 2020-09-01 00:00:30.000000000 +03:00
---
test case: Schedule time based trigger from 2020-09-01 00:00:30.000000000 +03:00
in:
type: ZBX_TRIGGER_TIMER_FUNCTION_TIME
params:
timezone: :Europe/Riga
time: 2020-09-01 00:00:30.000000000 +03:00
out:
nextcheck: 2020-09-01 00:01:00.000000000 +03:00
---
test case: Schedule 1h:now/h 2020-09-01 10:30:30.000000000 +03:00
in:
type: ZBX_TRIGGER_TIMER_FUNCTION_TREND
params: 1h:now/h
timezone: :Europe/Riga
time: 2020-09-01 10:30:30.000000000 +03:00
out:
nextcheck: 2020-09-01 11:10:00.000000000 +03:00
---
test case: Schedule 1h:now/h 2020-09-01 10:00:00.000000000 +03:00
in:
type: ZBX_TRIGGER_TIMER_FUNCTION_TREND
params: 1h:now/h
timezone: :Europe/Riga
time: 2020-09-01 10:00:00.000000000 +03:00
out:
nextcheck: 2020-09-01 10:10:00.000000000 +03:00
---
test case: Schedule 1h:now/h 2020-09-01 10:59:00.000000000 +03:00
in:
type: ZBX_TRIGGER_TIMER_FUNCTION_TREND
params: 1h:now/h
timezone: :Europe/Riga
time: 2020-09-01 10:59:00.000000000 +03:00
out:
nextcheck: 2020-09-01 11:10:00.000000000 +03:00
---
test case: Schedule 1h:now/d 2020-09-01 10:00:00.000000000 +03:00
in:
type: ZBX_TRIGGER_TIMER_FUNCTION_TREND
params: 1h:now/d
timezone: :Europe/Riga
time: 2020-09-01 10:00:00.000000000 +03:00
out:
nextcheck: 2020-09-02 00:10:00.000000000 +03:00
---
test case: Schedule 1h:now/M+1h 2020-09-01 10:00:00.000000000 +03:00
in:
type: ZBX_TRIGGER_TIMER_FUNCTION_TREND
params: 1h:now/M+1h
timezone: :Europe/Riga
time: 2020-09-01 10:00:00.000000000 +03:00
out:
nextcheck: 2020-10-01 01:10:00.000000000 +03:00
---
test case: Schedule 1h:now/M+1d 2020-09-01 10:00:00.000000000 +03:00
in:
type: ZBX_TRIGGER_TIMER_FUNCTION_TREND
params: 1h:now/M+1d
timezone: :Europe/Riga
time: 2020-09-01 10:00:00.000000000 +03:00
out:
nextcheck: 2020-09-02 00:10:00.000000000 +03:00
---
test case: Schedule 1h:now/M+1d 2020-09-02 10:00:00.000000000 +03:00
in:
type: ZBX_TRIGGER_TIMER_FUNCTION_TREND
params: 1h:now/M+1d
timezone: :Europe/Riga
time: 2020-09-02 10:00:00.000000000 +03:00
out:
nextcheck: 2020-10-02 00:10:00.000000000 +03:00
---
test case: Schedule 1d:now/M+6d/w+1d 2020-09-01 10:00:00.000000000 +03:00
in:
type: ZBX_TRIGGER_TIMER_FUNCTION_TREND
params: 1h:now/M+6d/w+1d
timezone: :Europe/Riga
time: 2020-09-01 10:00:00.000000000 +03:00
out:
nextcheck: 2020-09-08 00:10:00.000000000 +03:00
---
test case: Schedule 1d:now/M+6d/w+1d 2020-09-09 10:00:00.000000000 +03:00
in:
type: ZBX_TRIGGER_TIMER_FUNCTION_TREND
params: 1h:now/M+6d/w+1d
timezone: :Europe/Riga
time: 2020-09-09 10:00:00.000000000 +03:00
out:
nextcheck: 2020-10-06 00:10:00.000000000 +03:00
---
test case: Schedule 8h:now/d+17h 2020-09-01 10:00:00.000000000 +03:00
in:
type: ZBX_TRIGGER_TIMER_FUNCTION_TREND
params: 8h:now/d+17h
timezone: :Europe/Riga
time: 2020-09-01 10:00:00.000000000 +03:00
out:
nextcheck: 2020-09-01 17:10:00.000000000 +03:00
---
test case: Schedule 8h:now/d+17h 2020-09-01 18:00:00.000000000 +03:00
in:
type: ZBX_TRIGGER_TIMER_FUNCTION_TREND
params: 8h:now/d+17h
timezone: :Europe/Riga
time: 2020-09-01 18:00:00.000000000 +03:00
out:
nextcheck: 2020-09-02 17:10:00.000000000 +03:00
...