Skip to content

Commit e0d5de3

Browse files
talevyspinscale
authored andcommitted
fix DateIndexNameProcessorTests offset pattern (#38069)
`XX` was being used to represent an offset pattern, it should be `ZZ` Fixes #38067.
1 parent b94acb6 commit e0d5de3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/DateIndexNameProcessorTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,10 @@ public void testUnix()throws Exception {
7979
assertThat(document.getSourceAndMetadata().get("_index"), equalTo("<events-{19700101||/m{yyyyMMdd|UTC}}>"));
8080
}
8181

82-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/38067")
8382
public void testTemplatedFields() throws Exception {
8483
String indexNamePrefix = randomAlphaOfLength(10);
8584
String dateRounding = randomFrom("y", "M", "w", "d", "h", "m", "s");
86-
String indexNameFormat = randomFrom("yyyy-MM-dd'T'HH:mm:ss.SSSXX", "yyyyMMdd", "MM/dd/yyyy");
85+
String indexNameFormat = randomFrom("yyyy-MM-dd'T'HH:mm:ss.SSSZZ", "yyyyMMdd", "MM/dd/yyyy");
8786
String date = Integer.toString(randomInt());
8887
Function<String, DateTime> dateTimeFunction = DateFormat.Unix.getFunction(null, DateTimeZone.UTC, null);
8988

0 commit comments

Comments
 (0)