mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-25 11:50:13 +01:00
3a1ef3184d
app/victoriametrics: update the test suite * simplify /query and /query_range test cases configuration and tests * support instant queries with lookbehind window like `query=foo[5m]` * support instant queries selecting scalar value like `query=42` * add query_range test for prometheus Signed-off-by: hagen1778 <roman@victoriametrics.com>
12 lines
258 B
JSON
12 lines
258 B
JSON
{
|
|
"name": "instant scalar query",
|
|
"query": ["/api/v1/query?query=42&time={TIME_S}"],
|
|
"result_query": {
|
|
"status": "success",
|
|
"data":{
|
|
"resultType":"vector",
|
|
"result":[{"metric":{},"value":["{TIME_S}", "42"]}]
|
|
}
|
|
}
|
|
}
|