diff --git a/promql/promqltest/testdata/extended_vectors.test b/promql/promqltest/testdata/extended_vectors.test index 416945aada..da7cd29f49 100644 --- a/promql/promqltest/testdata/extended_vectors.test +++ b/promql/promqltest/testdata/extended_vectors.test @@ -435,10 +435,25 @@ eval instant at 60s rate(metric[5s] smoothed) eval instant at 60s increase(metric[5s] smoothed) -# Smoothed vector selector with @ modifier with binary op. +# Smoothed vector selector with @ and offset modifier and binop clear load 10s metric 0+1x20 +eval range from 0s to 60s step 15s metric @ 100 + metric 10 10 10 10 10 + +eval range from 0s to 60s step 15s metric @ 100 smoothed + metric 10 10 10 10 10 + eval range from 0s to 60s step 15s metric @ 100 smoothed + 0 {} 10 10 10 10 10 + +eval range from 0s to 60s step 15s metric offset -100 + metric 10 11 13 14 16 + +eval range from 0s to 60s step 15s metric offset -100 smoothed + metric 10 11.5 13 14.5 16 + +eval range from 0s to 60s step 15s metric offset -100 smoothed + 0 + {} 10 11.5 13 14.5 16