Skip to content

Commit 3a36785

Browse files
authored
Update last few references in yaml tests from ROOT locale to ENGLISH (#112791) (#112802)
1 parent 9d4602d commit 3a36785

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/runtime-fields-common/src/yamlRestTest/resources/rest-api-spec/test/runtime_fields/10_keyword.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ setup:
1919
script: |
2020
Instant instant = Instant.ofEpochMilli(params._source.timestamp);
2121
ZonedDateTime dt = ZonedDateTime.ofInstant(instant, ZoneId.of("UTC"));
22-
emit(dt.dayOfWeek.getDisplayName(TextStyle.FULL, Locale.ROOT));
22+
emit(dt.dayOfWeek.getDisplayName(TextStyle.FULL, Locale.ENGLISH));
2323
# Test fetching many values
2424
day_of_week_letters:
2525
type: keyword
@@ -218,7 +218,7 @@ setup:
218218
day_of_week:
219219
type: keyword
220220
script: |
221-
emit(doc['timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.SHORT, Locale.ROOT));
221+
emit(doc['timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.SHORT, Locale.ENGLISH));
222222
- do:
223223
search:
224224
index: sensor

modules/runtime-fields-common/src/yamlRestTest/resources/rest-api-spec/test/runtime_fields/13_keyword_calculated_at_index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ setup:
2828
script: |
2929
Instant instant = Instant.ofEpochMilli(params._source.timestamp);
3030
ZonedDateTime dt = ZonedDateTime.ofInstant(instant, ZoneId.of("UTC"));
31-
emit(dt.dayOfWeek.getDisplayName(TextStyle.FULL, Locale.ROOT));
31+
emit(dt.dayOfWeek.getDisplayName(TextStyle.FULL, Locale.ENGLISH));
3232
# Test fetching many values
3333
day_of_week_letters:
3434
type: keyword

0 commit comments

Comments
 (0)