[TEST] Fixed get_source/60_realtime_refresh REST test to work against multiple nodes

Replaced also wait for yellow with wait for green when using no replicas.

get_source/60_realtime_refresh tests per shard refresh using refresh:true and realtime:true in get api. We might run into troubles though if we have a replica that gets initialized after a doc was indexed without a refresh, as that doc will be found when searching against that specific replica shard (as a refresh happens automatically before a replica gets exposed as started).
This commit is contained in:
Luca Cavanna 2014-02-10 11:31:26 +01:00
parent dc308db4fe
commit a3ad592198
4 changed files with 6 additions and 4 deletions

View File

@ -9,9 +9,10 @@
index:
refresh_interval: -1
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: yellow
wait_for_status: green
- do:
index:

View File

@ -12,7 +12,7 @@
- do:
cluster.health:
wait_for_status: yellow
wait_for_status: green
- do:
index:

View File

@ -8,10 +8,11 @@
body:
settings:
refresh_interval: -1
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: yellow
wait_for_status: green
- do:
index:

View File

@ -12,7 +12,7 @@
- do:
cluster.health:
wait_for_status: yellow
wait_for_status: green
- do:
index: