Sfoglia il codice sorgente

Update regexes for the locale deprecation warnings (#113675)

Simon Cooper 1 anno fa
parent
commit
1d373a57e6

+ 0 - 3
muted-tests.yml

@@ -284,9 +284,6 @@ tests:
 - class: org.elasticsearch.validation.DotPrefixClientYamlTestSuiteIT
   method: test {p0=dot_prefix/10_basic/Deprecated index template with a dot prefix index pattern}
   issue: https://github.com/elastic/elasticsearch/issues/113529
-- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
-  method: test {p0=search/180_locale_dependent_mapping/Test Index and Search locale dependent mappings / dates}
-  issue: https://github.com/elastic/elasticsearch/issues/113537
 - class: org.elasticsearch.xpack.inference.TextEmbeddingCrudIT
   method: testPutE5WithTrainedModelAndInference
   issue: https://github.com/elastic/elasticsearch/issues/113565

+ 3 - 3
rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search/180_locale_dependent_mapping.yml

@@ -1,10 +1,10 @@
 ---
 "Test Index and Search locale dependent mappings / dates":
   - requires:
-      test_runner_features: ["allowed_warnings"]
+      test_runner_features: ["allowed_warnings_regex"]
   - do:
-      allowed_warnings:
-        - "Date format [E, d MMM yyyy HH:mm:ss Z] contains textual field specifiers that could change in JDK 23"
+      allowed_warnings_regex:
+        - "Date format \\[E, d MMM yyyy HH:mm:ss Z] contains textual field specifiers that could change in JDK 23.*"
       indices.create:
           index: test_index
           body:

+ 1 - 1
x-pack/plugin/esql/qa/testFixtures/src/main/resources/date.csv-spec

@@ -554,7 +554,7 @@ emp_no:integer | year:long    | month:long    | day:long
 dateFormatLocale
 from employees | where emp_no == 10049 or emp_no == 10050 | sort emp_no 
 | eval birth_month = date_format("MMMM", birth_date) | keep emp_no, birth_date, birth_month;
-warningRegex:Date format \[MMMM\] contains textual field specifiers that could change in JDK 23
+warningRegex:Date format \[MMMM\] contains textual field specifiers that could change in JDK 23.*
 ignoreOrder:true
 
 emp_no:integer  |  birth_date:datetime       | birth_month:keyword