Skip to content

Commit 849e31c

Browse files
committed
Add wait_for_no_initializing_shards in yaml rest
Similar to #114641
1 parent 032ea2e commit 849e31c

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/mtermvectors/30_routing.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ routing:
88
index:
99
number_of_shards: 5
1010

11+
- do:
12+
cluster.health:
13+
wait_for_no_initializing_shards: true
14+
1115
- do:
1216
index:
1317
index: test_1
@@ -51,6 +55,10 @@ requires routing:
5155
_routing:
5256
required: true
5357

58+
- do:
59+
cluster.health:
60+
wait_for_no_initializing_shards: true
61+
5462
- do:
5563
index:
5664
index: test_1

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/termvectors/20_issue7121.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
type : "text"
1515
term_vector : "with_positions_offsets"
1616

17+
- do:
18+
cluster.health:
19+
wait_for_no_initializing_shards: true
20+
1721
- do:
1822
index:
1923
index: testidx

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/termvectors/30_realtime.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
index:
99
refresh_interval: -1
1010

11+
- do:
12+
cluster.health:
13+
wait_for_no_initializing_shards: true
14+
1115
- do:
1216
index:
1317
index: test_1

0 commit comments

Comments
 (0)