From ed85b0125350dcbc67c7b4de2d5f698174f2e771 Mon Sep 17 00:00:00 2001 From: Finn Carroll Date: Mon, 12 Aug 2024 18:21:59 -0700 Subject: [PATCH] Add version skip to rest tests Signed-off-by: Finn Carroll --- .../test/search.aggregation/360_date_histogram.yml | 9 +++++++++ .../rest-api-spec/test/search.aggregation/40_range.yml | 2 ++ 2 files changed, 11 insertions(+) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/360_date_histogram.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/360_date_histogram.yml index 93d3b47bafa89..5c0985c7d1dd4 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/360_date_histogram.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/360_date_histogram.yml @@ -64,6 +64,9 @@ setup: --- "Date histogram aggregation w/ filter query test": + - skip: + version: " - 2.16.99" + - do: bulk: refresh: true @@ -105,6 +108,9 @@ setup: --- "Date histogram aggregation w/ shared field range test": + - skip: + version: " - 2.16.99" + - do: bulk: refresh: true @@ -145,3 +151,6 @@ setup: - match: { aggregations.monthHisto.buckets.1.doc_count: 2 } - match: { aggregations.monthHisto.buckets.2.doc_count: 1 } - match: { profile.shards.0.aggregations.0.debug.optimized_segments: 1 } + - match: { profile.shards.0.aggregations.0.debug.unoptimized_segments: 0 } + - match: { profile.shards.0.aggregations.0.debug.leaf_visited: 0 } + - match: { profile.shards.0.aggregations.0.debug.inner_visited: 0 } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/40_range.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/40_range.yml index 7a93a61aa8d1f..1c107f6a79476 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/40_range.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/40_range.yml @@ -676,6 +676,8 @@ setup: --- "Filter query w/ aggregation test": + - skip: + version: " - 2.16.99" - do: bulk: refresh: true