Skip to content

Commit 5714b98

Browse files
authored
Do not run lookup index YAML with two shards (elastic#115608)
We can randomly inject a global template that defaults to 2 shards instead of 1. This causes the lookup index YAML tests to fail. To avoid this, the change requires specifying the default_shards setting for these tests
1 parent c556a29 commit 5714b98

File tree

1 file changed

+2
-2
lines changed
  • rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.create

1 file changed

+2
-2
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.create/10_basic.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
---
154154
"Create lookup index":
155155
- requires:
156-
test_runner_features: [ capabilities ]
156+
test_runner_features: [ capabilities, default_shards ]
157157
capabilities:
158158
- method: PUT
159159
path: /{index}
@@ -176,7 +176,7 @@
176176
---
177177
"Create lookup index with one shard":
178178
- requires:
179-
test_runner_features: [ capabilities ]
179+
test_runner_features: [ capabilities, default_shards ]
180180
capabilities:
181181
- method: PUT
182182
path: /{index}

0 commit comments

Comments
 (0)