From e71519b8b2b0a9347348d302fe305441b95521ba Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 31 Mar 2020 12:51:09 +0300 Subject: [PATCH] app/victoria-metrics/testdata: add a test for https://github.com/VictoriaMetrics/VictoriaMetrics/issues/395 --- .../testdata/graphite/empty-label-match.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 app/victoria-metrics/testdata/graphite/empty-label-match.json diff --git a/app/victoria-metrics/testdata/graphite/empty-label-match.json b/app/victoria-metrics/testdata/graphite/empty-label-match.json new file mode 100644 index 000000000..c5e9fd8c6 --- /dev/null +++ b/app/victoria-metrics/testdata/graphite/empty-label-match.json @@ -0,0 +1,16 @@ +{ + "name": "empty-label-match", + "issue": "https://github.com/VictoriaMetrics/VictoriaMetrics/issues/395", + "data": [ + "empty_label_match 1 {TIME_S-1m}", + "empty_label_match;foo=bar 2 {TIME_S-1m}", + "empty_label_match;foo=baz 3 {TIME_S-1m}"], + "query": ["/api/v1/query_range?query=empty_label_match{foo=~'bar|'}&start={TIME_S}&end={TIME_S}&step=60"], + "result_query_range": { + "status":"success", + "data":{"resultType":"matrix", + "result":[ + {"metric":{"__name__":"empty_label_match"},"values":[["{TIME_S}","1"]]}, + {"metric":{"__name__":"empty_label_match","foo":"bar"},"values":[["{TIME_S}","2"]]} + ]}} +}