Skip to content

Commit 239038b

Browse files
authored
removing vestigial 'Date range' test (#115677)
1 parent b8d65b1 commit 239038b

File tree

2 files changed

+0
-137
lines changed

2 files changed

+0
-137
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,6 @@ tests:
272272
- class: org.elasticsearch.xpack.ml.integration.MlJobIT
273273
method: testGetJobs_GivenSingleJob
274274
issue: https://github.com/elastic/elasticsearch/issues/113655
275-
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
276-
method: test {p0=range/20_synthetic_source/Date range}
277-
issue: https://github.com/elastic/elasticsearch/issues/113874
278275
- class: org.elasticsearch.xpack.esql.expression.function.scalar.convert.ToDateNanosTests
279276
issue: https://github.com/elastic/elasticsearch/issues/113661
280277
- class: org.elasticsearch.xpack.inference.InferenceRestIT

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/range/20_synthetic_source.yml

Lines changed: 0 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -525,140 +525,6 @@ setup:
525525
_source:
526526
ip_range: { "gte": "2001:db8::", "lte": null }
527527

528-
---
529-
"Date range":
530-
- skip:
531-
cluster_features: ["mapper.range.date_range_indexing_fix"]
532-
reason: "tests prior to rounding fixes in 8.16.0 that caused non-intuitive indexing and query because ranges were assumed to always index with 0's as the default such as when time is missing 00:00:00.000 time was assumed but for lte indexing and query missing time should be 23:59:59.999 as per docs here: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html"
533-
534-
- do:
535-
index:
536-
index: synthetic_source_test
537-
id: "1"
538-
body: { "date_range" : { "gte": "2017-09-01", "lte": "2017-09-05" } }
539-
540-
- do:
541-
index:
542-
index: synthetic_source_test
543-
id: "2"
544-
body: { "date_range" : { "gt": "2017-09-01", "lte": "2017-09-03" } }
545-
546-
- do:
547-
index:
548-
index: synthetic_source_test
549-
id: "3"
550-
body: { "date_range" : [ { "gte": "2017-09-04", "lt": "2017-09-05" } ] }
551-
552-
- do:
553-
index:
554-
index: synthetic_source_test
555-
id: "4"
556-
body: { "date_range" : [ { "gt": "2017-09-04", "lt": "2017-09-08" }, { "gt": "2017-09-04", "lt": "2017-09-07" } ] }
557-
558-
- do:
559-
index:
560-
index: synthetic_source_test
561-
id: "5"
562-
body: { "date_range" : { "gte": 1504224000000, "lte": 1504569600000 } }
563-
564-
- do:
565-
index:
566-
index: synthetic_source_test
567-
id: "6"
568-
body: { "date_range" : { "gte": "2017-09-01T10:20:30.123Z", "lte": "2017-09-05T03:04:05.789Z" } }
569-
570-
- do:
571-
index:
572-
index: synthetic_source_test
573-
id: "7"
574-
body: { "date_range" : null }
575-
576-
- do:
577-
index:
578-
index: synthetic_source_test
579-
id: "8"
580-
body: { "date_range": { "gte": null, "lte": "2017-09-05" } }
581-
582-
- do:
583-
index:
584-
index: synthetic_source_test
585-
id: "9"
586-
body: { "date_range": { "gte": "2017-09-05" } }
587-
588-
- do:
589-
indices.refresh: {}
590-
591-
- do:
592-
get:
593-
index: synthetic_source_test
594-
id: "1"
595-
- match:
596-
_source:
597-
date_range: { "gte": "2017-09-01T00:00:00.000Z", "lte": "2017-09-05T00:00:00.000Z" }
598-
599-
- do:
600-
get:
601-
index: synthetic_source_test
602-
id: "2"
603-
- match:
604-
_source:
605-
date_range: { "gte": "2017-09-01T00:00:00.001Z", "lte": "2017-09-03T00:00:00.000Z" }
606-
607-
- do:
608-
get:
609-
index: synthetic_source_test
610-
id: "3"
611-
- match:
612-
_source:
613-
date_range: { "gte": "2017-09-04T00:00:00.000Z", "lte": "2017-09-04T23:59:59.999Z" }
614-
615-
- do:
616-
get:
617-
index: synthetic_source_test
618-
id: "4"
619-
- match:
620-
_source:
621-
date_range: [ { "gte": "2017-09-04T00:00:00.001Z", "lte": "2017-09-06T23:59:59.999Z" }, { "gte": "2017-09-04T00:00:00.001Z", "lte": "2017-09-07T23:59:59.999Z" } ]
622-
623-
- do:
624-
get:
625-
index: synthetic_source_test
626-
id: "5"
627-
- match:
628-
_source:
629-
date_range: { "gte": "2017-09-01T00:00:00.000Z", "lte": "2017-09-05T00:00:00.000Z" }
630-
631-
- do:
632-
get:
633-
index: synthetic_source_test
634-
id: "6"
635-
- match:
636-
_source:
637-
date_range: { "gte": "2017-09-01T10:20:30.123Z", "lte": "2017-09-05T03:04:05.789Z" }
638-
639-
- do:
640-
get:
641-
index: synthetic_source_test
642-
id: "7"
643-
- match:
644-
_source: {}
645-
646-
- do:
647-
get:
648-
index: synthetic_source_test
649-
id: "8"
650-
- match:
651-
_source:
652-
date_range: { "gte": null, "lte": "2017-09-05T00:00:00.000Z" }
653-
654-
- do:
655-
get:
656-
index: synthetic_source_test
657-
id: "9"
658-
- match:
659-
_source:
660-
date_range: { "gte": "2017-09-05T00:00:00.000Z", "lte": null }
661-
662528
---
663529
"Date range Rounding Fixes":
664530
- requires:

0 commit comments

Comments
 (0)