Bryan Boreham
|
786e0e706c
|
test: PromQL: stop using internal fields of engine
* set enablePerStepStats and lookback duration via
`NewTestEngine` parameters.
* check maxSamples by recreating query engine
* check lookback without modifying internals
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
|
2024-05-08 19:58:41 +01:00 |
|
Bryan Boreham
|
babfcfdd91
|
refactor: Move NewTestEngine into promqltest
And export `DefaultMaxSamplesPerQuery` so callers can replicate previous
behaviour.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
|
2024-05-08 16:07:28 +01:00 |
|
Bryan Boreham
|
b3c15d2246
|
test: clean up promqltest package references
So it nearly compiles.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
|
2024-05-08 13:42:55 +01:00 |
|
Bryan Boreham
|
11b27d5d22
|
test: move test files into new promqltest package
So that promql package does not bring in test-only dependencies.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
|
2024-05-08 13:42:55 +01:00 |
|