Replace refresh with cluster.health check

Possible to fail this test with a 500 NoShardsAvailable error, due
to the index not being fully allocated before the analyze call is
executed.

Changing for a wait_for_status: yellow fixes the occasional problem.
This commit is contained in:
Zachary Tong 2013-07-25 15:18:38 -04:00 committed by Karel Minarik
parent 4274e9df4f
commit b6d90d52bd
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@
---
"Analyze API JSON format - index and field":
- do:
cluster.health:
wait_for_status: yellow
- do:
indices.analyze:
field: text