From d128251d4ca612e9782fffd9a8e3c9f9d6f59581 Mon Sep 17 00:00:00 2001 From: Alan Protasio Date: Wed, 19 Oct 2022 20:22:01 -0700 Subject: [PATCH] Add test case for vector matches on the promql compliance Signed-off-by: Alan Protasio --- promql/promql-test-queries.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/promql/promql-test-queries.yml b/promql/promql-test-queries.yml index c601cd8d..78a14cb7 100644 --- a/promql/promql-test-queries.yml +++ b/promql/promql-test-queries.yml @@ -52,6 +52,7 @@ test_cases: - query: 'demo_memory_usage_bytes{instance!~".*:10000"}' - query: 'demo_memory_usage_bytes{type="free", instance!="demo.promlabs.com:10000"}' - query: '{type="free", instance!="demo.promlabs.com:10000"}' + - query: 'promhttp_metric_handler_requests_in_flight and ignoring(code) promhttp_metric_handler_requests_total' - query: '{__name__=~".*"}' should_fail: true - query: "nonexistent_metric_name"