Skip to content

Commit edd4ebf

Browse files
authored
Fix new logsdb tests (#116108)
1 parent f5c7b48 commit edd4ebf

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

muted-tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,6 @@ tests:
279279
- class: org.elasticsearch.indexing.IndexActionIT
280280
method: testAutoGenerateIdNoDuplicates
281281
issue: https://github.com/elastic/elasticsearch/issues/115716
282-
- class: org.elasticsearch.smoketest.SmokeTestMultiNodeClientYamlTestSuiteIT
283-
method: test {yaml=logsdb/10_settings/logsdb with default ignore dynamic beyond limit and subobjects false}
284-
issue: https://github.com/elastic/elasticsearch/issues/116054
285-
- class: org.elasticsearch.smoketest.SmokeTestMultiNodeClientYamlTestSuiteIT
286-
method: test {yaml=logsdb/10_settings/logsdb with default ignore dynamic beyond limit and default sorting}
287-
issue: https://github.com/elastic/elasticsearch/issues/116062
288282
- class: org.elasticsearch.xpack.application.connector.ConnectorIndexServiceTests
289283
issue: https://github.com/elastic/elasticsearch/issues/116087
290284
- class: org.elasticsearch.compute.operator.FilterOperatorTests

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/logsdb/10_settings.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,7 @@ logsdb with default ignore dynamic beyond limit and default sorting:
704704
body:
705705
query:
706706
match_all: {}
707+
sort: "@timestamp"
707708

708709
- match: { hits.total.value: 2 }
709710
- match: { hits.hits.0._source.name: "bar" }
@@ -765,15 +766,16 @@ logsdb with default ignore dynamic beyond limit and non-default sorting:
765766
body:
766767
query:
767768
match_all: {}
769+
sort: "@timestamp"
768770

769771
- match: { hits.total.value: 2 }
770-
- match: { hits.hits.0._source.name: "foo" }
771-
- match: { hits.hits.0._source.value: 10 }
772-
- match: { hits.hits.0._source.message: "the quick brown fox" }
772+
- match: { hits.hits.0._source.name: "bar" }
773+
- match: { hits.hits.0._source.value: 20 }
774+
- match: { hits.hits.0._source.message: "jumps over the lazy dog" }
773775
- match: { hits.hits.0._ignored: [ "host", "message", "pid", "region", "value" ] }
774-
- match: { hits.hits.1._source.name: "bar" }
775-
- match: { hits.hits.1._source.value: 20 }
776-
- match: { hits.hits.1._source.message: "jumps over the lazy dog" }
776+
- match: { hits.hits.1._source.name: "foo" }
777+
- match: { hits.hits.1._source.value: 10 }
778+
- match: { hits.hits.1._source.message: "the quick brown fox" }
777779
- match: { hits.hits.1._ignored: [ "host", "message", "pid", "region", "value" ] }
778780

779781
---
@@ -870,6 +872,7 @@ logsdb with default ignore dynamic beyond limit and subobjects false:
870872
body:
871873
query:
872874
match_all: {}
875+
sort: "@timestamp"
873876

874877
- match: { hits.total.value: 2 }
875878
- match: { hits.hits.0._source.name: "bar" }

0 commit comments

Comments
 (0)