prometheus/promql/promqltest/testdata
Björn Rabenstein 125a90899c
promqltest: Complete the tests for info annotations (#15429)
promqltest: Complete the tests for info annotations

So far, we did not test for the _absence_ of an info annotation
(because many tests triggered info annotations, which we haven't taken
into account so far).

The test for info annotations was also missed for range queries.

This completes the tests for info annotations (and refactors the many
`if` statements into a somewhat more compact `switch` statement).

It fixes most tests to not emit an info annotation anymore. Or it
changes the `eval` to `eval_info` where we actually want to test for
the info annotation.

It also fixes a few spelling errors in comments.

---------

Signed-off-by: beorn7 <beorn@grafana.com>
Signed-off-by: Björn Rabenstein <github@rabenste.in>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2024-11-21 14:20:38 +01:00
..
aggregators.test promqltest: Complete the tests for info annotations (#15429) 2024-11-21 14:20:38 +01:00
at_modifier.test promqltest: Complete the tests for info annotations (#15429) 2024-11-21 14:20:38 +01:00
collision.test
functions.test promqltest: Complete the tests for info annotations (#15429) 2024-11-21 14:20:38 +01:00
histograms.test promqltest: Complete the tests for info annotations (#15429) 2024-11-21 14:20:38 +01:00
limit.test feat: add limitk() and limit_ratio() operators (#12503) 2024-07-03 22:18:57 +02:00
literals.test
name_label_dropping.test promqltest: Complete the tests for info annotations (#15429) 2024-11-21 14:20:38 +01:00
native_histograms.test PromQL: Convert more native histogram tests to promql-test framework (#15419) 2024-11-20 11:41:36 +01:00
operators.test promqltest: Complete the tests for info annotations (#15429) 2024-11-21 14:20:38 +01:00
range_queries.test make matrix selection and lookback left-open and right-closed 2024-06-20 22:05:40 +08:00
selectors.test promqltest: Complete the tests for info annotations (#15429) 2024-11-21 14:20:38 +01:00
staleness.test Merge branch 'main' into 3.0-main-sync-24-07-18 2024-07-18 15:56:40 +02:00
subquery.test promqltest: Complete the tests for info annotations (#15429) 2024-11-21 14:20:38 +01:00
trig_functions.test make matrix selection and lookback left-open and right-closed 2024-06-20 22:05:40 +08:00