Skip to content

Commit 4d1118d

Browse files
committed
Add e2e test for multiple metric not found errors
1 parent 7845b1b commit 4d1118d

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
version: "v1"
2+
test:
3+
apps:
4+
- name: "carbonapi"
5+
binary: "./carbonapi"
6+
args:
7+
- "-config"
8+
- "./cmd/mockbackend/carbonapi_singlebackend.yaml"
9+
- "-exact-config"
10+
queries:
11+
- endpoint: "http://127.0.0.1:8081"
12+
delay: 1
13+
type: "GET"
14+
URL: "/render?format=json&target=maxSeries(group(some.existing.metric.*, some.nonexisting.metric.*))&target=minSeries(group(some.existing.metric.*, other.nonexisting.metric.*))"
15+
expectedResponse:
16+
httpCode: 200
17+
contentType: "application/json"
18+
expectedResults:
19+
- metrics:
20+
- target: "maxSeries(group(some.existing.metric.*, some.nonexisting.metric.*))"
21+
datapoints: [[3.0, 1],[3.0, 2],[3.0, 3]]
22+
- target: "minSeries(group(some.existing.metric.*, other.nonexisting.metric.*))"
23+
datapoints: [[1.0, 1],[1.0, 2],[1.0, 3]]
24+
25+
listeners:
26+
- address: ":9070"
27+
expressions:
28+
"some.existing.metric.*":
29+
pathExpression: "some.existing.metric.*"
30+
data:
31+
- metricName: "some.existing.metric.a"
32+
values: [1.0, 1.0, 1.0]
33+
- metricName: "some.existing.metric.b"
34+
values: [3.0, 3.0, 3.0]

0 commit comments

Comments
 (0)