Fixed bad YAML, and changed to wait for yellow instead of green, because REST tests usually run on a single node
@@ -1,16 +1,16 @@
---
"Index seal rest test":
-- do:
- indices.create:
- index: testing
+ - do:
+ indices.create:
+ index: testing
- cluster.health:
- wait_for_status: green
- indices.seal:
- indices.stats: {level: shards}
+ cluster.health:
+ wait_for_status: yellow
+ indices.seal:
+ indices.stats: {level: shards}
-- is_true: indices.testing.shards.0.0.commit.user_data.sync_id
+ - is_true: indices.testing.shards.0.0.commit.user_data.sync_id