Skip to content

Commit

Permalink
Account for multiple nodes in cat indices test
Browse files Browse the repository at this point in the history
The cat indices health status test tests that the response can be
filtered based on the health status of an index. However, this test was
implicitly relying on the fact that there was only one data node. This
commit modifies this test to account for the fact that there could be
multiple data nodes active in the cluster under test.
  • Loading branch information
jasontedor committed Sep 13, 2016
1 parent 1034b42 commit b0ad122
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
---
"Test cat indices using health status":

- do:
cluster.health: {}

- set: { number_of_data_nodes: count }

- do:
indices.create:
index: foo
Expand All @@ -85,7 +91,7 @@
body:
settings:
number_of_shards: "1"
number_of_replicas: "1"
number_of_replicas: $count

- do:
cat.indices:
Expand Down

0 comments on commit b0ad122

Please sign in to comment.