Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
  • Loading branch information
nknize committed Oct 27, 2023
1 parent 853e466 commit be835c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"Create index with camel case on date format (allowed with warning prior to 2.12.0)":
"Create index with camel case date format (allowed with warning prior to 2.12.0)":
- skip:
version: "2.12.0 - "
reason: "at version 2.12.0, camel case date format is not allowed"
Expand Down Expand Up @@ -40,14 +40,14 @@
- match: { hits.total: 1 }

---
"Create index with camel case date format (when bwc version is > 8.0.0)":
"Create index with camel case date format (when version is >= 2.12.0)":
- skip:
version: " - 2.11.99"
reason: "at version 2.12.0, camel case date format is not allowed"
features: "warnings"
- do:
indices.create:
index: camel_case_on_format
index: camel_case_date_format
body:
settings:
index:
Expand All @@ -69,7 +69,7 @@
- do:
search:
rest_total_hits_as_int: true
index: camel_case_on_format
index: camel_case_date_format
body:
query:
range:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ public void testExpression_CustomTimeZoneInIndexName() throws Exception {
} else {
hoursOffset = randomIntBetween(-11, 13);
minutesOffset = randomIntBetween(0, 59);
if (hoursOffset < 0) {
minutesOffset = -minutesOffset;
}
timeZone = ZoneOffset.ofHoursMinutes(hoursOffset, minutesOffset);
}
ZonedDateTime now;
Expand Down

0 comments on commit be835c5

Please sign in to comment.