mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-24 05:04:05 -08:00
e7e60623ff
* promtool: Calculate mint and maxt per test Previously a single test that used a later eval time would make all other tests in the file share the [mint, maxt] and potentially evaluate far more samples than needed. Fixes: #8019 Signed-off-by: David Leadbeater <dgl@dgl.cx>
20 lines
354 B
YAML
20 lines
354 B
YAML
tests:
|
|
# Simple failing test.
|
|
- interval: 1m
|
|
input_series:
|
|
- series: test
|
|
values: '0'
|
|
|
|
promql_expr_test:
|
|
- expr: test
|
|
eval_time: 0m
|
|
exp_samples:
|
|
- value: 1
|
|
labels: test
|
|
|
|
alert_rule_test:
|
|
- eval_time: 0m
|
|
alertname: Test
|
|
exp_alerts:
|
|
- exp_labels: {}
|