From 0945059a70351abb91a9c0ffcf6474370a11e55d Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Mon, 11 Sep 2023 14:21:08 +0200 Subject: [PATCH] iter --- .../rest-api-spec/test/aggregations/adjacency_matrix.yml | 4 ++-- .../resources/rest-api-spec/test/aggregations/filter.yml | 6 +++--- .../rest-api-spec/test/aggregations/filters_bucket.yml | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/adjacency_matrix.yml b/modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/adjacency_matrix.yml index f26a768a8133c..5d893b4fd5daf 100644 --- a/modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/adjacency_matrix.yml +++ b/modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/adjacency_matrix.yml @@ -138,7 +138,7 @@ setup: - do: indices.stats: { index: test, metric: request_cache} - - match: { _shards.total: 1 } + - gte: { _shards.total: 1 } - match: { indices.test.total.request_cache.hit_count: 0 } - match: { indices.test.total.request_cache.miss_count: 1 } @@ -174,6 +174,6 @@ setup: path: num - do: indices.stats: { index: test, metric: request_cache} - - match: { _shards.total: 1 } + - gte: { _shards.total: 1 } - match: { indices.test.total.request_cache.hit_count: 1 } - match: { indices.test.total.request_cache.miss_count: 1 } diff --git a/modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/filter.yml b/modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/filter.yml index 3d5c1d9b2ab39..f4bcdf3b70e77 100644 --- a/modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/filter.yml +++ b/modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/filter.yml @@ -57,7 +57,7 @@ setup: # The first request will miss the cache - do: indices.stats: { index: test, metric: request_cache} - - match: { _shards.total: 1 } + - gtw: { _shards.total: 1 } - match: { indices.test.total.request_cache.hit_count: 0 } - match: { indices.test.total.request_cache.miss_count: 1 } @@ -91,7 +91,7 @@ setup: # The second result with hit the cache - do: indices.stats: { index: test, metric: request_cache} - - match: { _shards.total: 1 } + - gtw: { _shards.total: 1 } - match: { indices.test.total.request_cache.hit_count: 1 } - match: { indices.test.total.request_cache.miss_count: 1 } @@ -160,7 +160,7 @@ setup: # The first request will miss the cache - do: indices.stats: { index: test, metric: request_cache} - - match: { _shards.total: 1 } + - gte: { _shards.total: 1 } - match: { indices.test.total.request_cache.hit_count: 1 } - match: { indices.test.total.request_cache.miss_count: 1 } diff --git a/modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/filters_bucket.yml b/modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/filters_bucket.yml index 232685f467370..c415ee3d379d7 100644 --- a/modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/filters_bucket.yml +++ b/modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/filters_bucket.yml @@ -573,7 +573,7 @@ nested: # The first request will miss the cache - do: indices.stats: { index: test, metric: request_cache} - - match: { _shards.total: 1 } + - gte: { _shards.total: 1 } - match: { indices.test.total.request_cache.hit_count: 0 } - match: { indices.test.total.request_cache.miss_count: 1 } @@ -612,6 +612,6 @@ nested: # The second result with hit the cache - do: indices.stats: { index: test, metric: request_cache} - - match: { _shards.total: 1 } + - gte: { _shards.total: 1 } - match: { indices.test.total.request_cache.hit_count: 1 } - match: { indices.test.total.request_cache.miss_count: 1 }