From 942c4e757ad0a1f5de94aef9a2e518ddfbd5c1f8 Mon Sep 17 00:00:00 2001 From: Finn Carroll Date: Mon, 22 Jul 2024 15:22:01 -0700 Subject: [PATCH] Fix histogram - range yaml rest test Signed-off-by: Finn Carroll --- .../test/search.aggregation/10_histogram.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/10_histogram.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/10_histogram.yml index 0bcf1345dcd17..2d7a7db1d740e 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/10_histogram.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/10_histogram.yml @@ -763,7 +763,7 @@ setup: - from: 30 to: 40 - - match: { hits.total.value: 9 } + - match: { hits.total.value: 8 } - length: { aggregations.histo.buckets: 9 } - match: { aggregations.histo.buckets.0.key_as_string: "2020-03-01T00:00:00.000Z" } @@ -772,11 +772,14 @@ setup: - match: { aggregations.histo.buckets.8.key_as_string: "2020-03-09T00:00:00.000Z" } - match: { aggregations.histo.buckets.0.doc_count: 2 } - - match: { aggregations.histo.buckets.1.doc_count: 2 } + - match: { aggregations.histo.buckets.1.doc_count: 1 } - match: { aggregations.histo.buckets.2.doc_count: 0 } - match: { aggregations.histo.buckets.7.doc_count: 4 } - match: { aggregations.histo.buckets.8.doc_count: 1 } - match: { aggregations.histo.buckets.0.my_range.buckets.0.doc_count: 1 } - - match: { aggregations.histo.buckets.7.my_range.buckets.2.doc_count: 2 } - - match: { aggregations.histo.buckets.7.my_range.buckets.1.doc_count: 1 } + + - match: { aggregations.histo.buckets.7.my_range.buckets.0.doc_count: 0 } + - match: { aggregations.histo.buckets.7.my_range.buckets.1.doc_count: 0 } + - match: { aggregations.histo.buckets.7.my_range.buckets.2.doc_count: 3 } + - match: { aggregations.histo.buckets.7.my_range.buckets.3.doc_count: 1 }