Skip to content

Commit 25a3a93

Browse files
Bad date range tests rely on shard count (elastic#138963)
Search by default only fails if all shards fail, use `allow_partial_search_results: false` for tests validation that search fails.
1 parent b344a15 commit 25a3a93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search/500_date_range.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ setup:
133133
catch: /illegal_argument_exception/
134134
search:
135135
index: dates
136+
allow_partial_search_results: false
136137
body:
137138
sort: field
138139
query:
@@ -151,6 +152,7 @@ setup:
151152
catch: /illegal_argument_exception/
152153
search:
153154
index: dates
155+
allow_partial_search_results: false
154156
body:
155157
sort: field
156158
query:

0 commit comments

Comments
 (0)