Skip to content

Commit ba5a4a6

Browse files
committed
Fix test cases after figuring out how to run them
1 parent d7dc243 commit ba5a4a6

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/resources/k8s-timeseries.csv-spec

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -279,18 +279,19 @@ sum_over_time
279279
required_capability: metrics_command
280280
required_capability: sum_over_time
281281

282-
TS k8s | STATS cost=sum(sum_over_time(network.cost)) BY cluster, time_bucket = bucket(@timestamp,1minute) | SORT cost DESC, time_bucket DESC, cluster | LIMIT 10;
282+
TS k8s | STATS sum_cost=sum(sum_over_time(network.cost)) BY cluster, time_bucket = bucket(@timestamp,1minute) | SORT sum_cost DESC, time_bucket DESC, cluster | LIMIT 10;
283+
284+
sum_cost:double | cluster:keyword | time_bucket:datetime
285+
67.625 | qa | 2024-05-10T00:17:00.000Z
286+
65.75 | staging | 2024-05-10T00:09:00.000Z
287+
48.125 | qa | 2024-05-10T00:09:00.000Z
288+
48.125 | qa | 2024-05-10T00:06:00.000Z
289+
41.25 | qa | 2024-05-10T00:11:00.000Z
290+
38.875 | qa | 2024-05-10T00:04:00.000Z
291+
38.0 | qa | 2024-05-10T00:15:00.000Z
292+
37.5 | prod | 2024-05-10T00:09:00.000Z
293+
36.75 | qa | 2024-05-10T00:08:00.000Z
294+
32.25 | qa | 2024-05-10T00:18:00.000Z
283295

284-
cost:double | cluster:keyword | time_bucket:datetime
285-
12.375 | prod | 2024-05-10T00:17:00.000Z
286-
12.375 | qa | 2024-05-10T00:01:00.000Z
287-
12.25 | prod | 2024-05-10T00:19:00.000Z
288-
12.125 | qa | 2024-05-10T00:07:00.000Z
289-
12.125 | staging | 2024-05-10T00:03:00.000Z
290-
11.875 | prod | 2024-05-10T00:15:00.000Z
291-
11.875 | qa | 2024-05-10T00:09:00.000Z
292-
11.75 | qa | 2024-05-10T00:06:00.000Z
293-
11.625 | prod | 2024-05-10T00:12:00.000Z
294-
11.5 | staging | 2024-05-10T00:16:00.000Z
295296
;
296297

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/60_usage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ setup:
123123
- match: {esql.functions.coalesce: $functions_coalesce}
124124
- gt: {esql.functions.categorize: $functions_categorize}
125125
# Testing for the entire function set isn't feasible, so we just check that we return the correct count as an approximation.
126-
- length: {esql.functions: 143} # check the "sister" test below for a likely update to the same esql.functions length check
126+
- length: {esql.functions: 144} # check the "sister" test below for a likely update to the same esql.functions length check
127127

128128
---
129129
"Basic ESQL usage output (telemetry) non-snapshot version":

0 commit comments

Comments
 (0)