VictoriaMetrics/app/vmalert-tool/unittest
Viet Hung Nguyen 21d1385ae1
vmalert-tool: set default interval for unittest input_series (#7392)
### Describe Your Changes
Currently it is not optional option, but if user forgot to set, it
defaults to 0, which cause unexpected behavior.

This change sets default = evaluation_interval similar to promtool
behavior.


https://prometheus.io/docs/prometheus/2.55/configuration/unit_testing_rules/#test_group
### Checklist

The following checks are **mandatory**:

- [x] My change adheres [VictoriaMetrics contributing
guidelines](https://docs.victoriametrics.com/contributing/).

Signed-off-by: Viet Hung Nguyen <hvn@familug.org>
2024-10-31 14:04:50 +01:00
..
testdata vmalert-tool: add -external.label and -external.url command-line … (#6766) 2024-08-19 21:29:28 +02:00
alerting.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
input.go vmalert-tool: add more syntax checks for input_series and exp_samples (#7263) 2024-10-17 11:00:34 +02:00
input_test.go vmalert-tool: add more syntax checks for input_series and exp_samples (#7263) 2024-10-17 11:00:34 +02:00
recording.go vmalert-tool: add more syntax checks for input_series and exp_samples (#7263) 2024-10-17 11:00:34 +02:00
type.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
unittest.go vmalert-tool: set default interval for unittest input_series (#7392) 2024-10-31 14:04:50 +01:00
unittest_test.go vmalert-tool: add -external.label and -external.url command-line … (#6766) 2024-08-19 21:29:28 +02:00