From 902fa48f3e88b58428bf55e3c6c97231979f1849 Mon Sep 17 00:00:00 2001 From: Przemyslaw Gomulka Date: Thu, 30 May 2019 10:38:21 +0200 Subject: [PATCH] Enable tests failing due to java-joda warnings Tests were failing in mixed cluster after more broad warnings were introduced in 6.x These tests were using `yyyy-MM-dd` pattern which is now warning about the change of `y` to `u`. However, using predefined pattern `strict_date` which uses the same format prevents the warning from being generate and allow smooth upgrade/work in mixed cluster. relates #42679 --- .../test/search.aggregation/230_composite.yml | 8 ++++---- .../test/search/140_pre_filter_search_shards.yml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/230_composite.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/230_composite.yml index 88fb807ba2e5f..5d63edf1360f1 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/230_composite.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/230_composite.yml @@ -284,7 +284,7 @@ setup: "date_histogram": { "field": "date", "interval": "1d", - "format": "yyyy-MM-dd" + "format": "strict_date" } } } @@ -316,7 +316,7 @@ setup: "date_histogram": { "field": "date", "interval": "1d", - "format": "yyyy-MM-dd" + "format": "strict_date" } } } @@ -347,7 +347,7 @@ setup: "date_histogram": { "field": "date", "calendar_interval": "1d", - "format": "yyyy-MM-dd" + "format": "strict_date" } } } @@ -377,7 +377,7 @@ setup: "date_histogram": { "field": "date", "calendar_interval": "1d", - "format": "yyyy-MM-dd" + "format": "strict_date" } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/search/140_pre_filter_search_shards.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/search/140_pre_filter_search_shards.yml index 98a01f510ee31..65416f23feaab 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/search/140_pre_filter_search_shards.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/search/140_pre_filter_search_shards.yml @@ -9,7 +9,7 @@ setup: properties: created_at: type: date - format: "yyyy-MM-dd" + format: "strict_date" - do: indices.create: index: index_2 @@ -20,7 +20,7 @@ setup: properties: created_at: type: date - format: "yyyy-MM-dd" + format: "strict_date" - do: indices.create: index: index_3 @@ -31,7 +31,7 @@ setup: properties: created_at: type: date - format: "yyyy-MM-dd" + format: "strict_date" ---