Skip to content

Commit ff6d957

Browse files
authored
Enable tests failing due to java-joda warnings (#42694) backport#42693
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
1 parent c6c00d5 commit ff6d957

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/230_composite.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ setup:
262262
"date_histogram": {
263263
"field": "date",
264264
"interval": "1d",
265-
"format": "yyyy-MM-dd"
265+
"format": "strict_date"
266266
}
267267
}
268268
}
@@ -292,7 +292,7 @@ setup:
292292
"date_histogram": {
293293
"field": "date",
294294
"interval": "1d",
295-
"format": "yyyy-MM-dd"
295+
"format": "strict_date"
296296
}
297297
}
298298
}

rest-api-spec/src/main/resources/rest-api-spec/test/search/140_pre_filter_search_shards.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ setup:
99
properties:
1010
created_at:
1111
type: date
12-
format: "yyyy-MM-dd"
12+
format: "strict_date"
1313
- do:
1414
indices.create:
1515
index: index_2
@@ -20,7 +20,7 @@ setup:
2020
properties:
2121
created_at:
2222
type: date
23-
format: "yyyy-MM-dd"
23+
format: "strict_date"
2424
- do:
2525
indices.create:
2626
index: index_3
@@ -31,7 +31,7 @@ setup:
3131
properties:
3232
created_at:
3333
type: date
34-
format: "yyyy-MM-dd"
34+
format: "strict_date"
3535

3636

3737
---

0 commit comments

Comments
 (0)