Test: Temporarily change delete/put_mapping to wait for green

Delete and update mapping execution order has changed with #6762
This commit is contained in:
Clinton Gormley 2014-07-07 19:02:09 +02:00
parent 135404fffc
commit 34893c0570
4 changed files with 28 additions and 6 deletions

View File

@ -4,6 +4,8 @@
indices.create:
index: test_index
body:
settings:
number_of_replicas: 0
mappings:
test_type:
properties:
@ -13,7 +15,7 @@
- do:
cluster.health:
wait_for_status: yellow
wait_for_status: green
- do:
indices.exists_type:

View File

@ -5,21 +5,24 @@ setup:
index: test_index1
body:
mappings: { test_type1: { }}
settings: { number_of_replicas: 0 }
- do:
indices.create:
index: test_index2
body:
mappings: { test_type2: { }}
settings: { number_of_replicas: 0 }
- do:
indices.create:
index: foo
body:
mappings: { test_type2: { }}
settings: { number_of_replicas: 0 }
- do:
cluster.health:
wait_for_status: yellow
wait_for_status: green
---
"delete with _all index":
- do:

View File

@ -3,6 +3,12 @@
- do:
indices.create:
index: test_index
body:
settings:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: green
- do:
indices.put_mapping:

View File

@ -2,13 +2,24 @@ setup:
- do:
indices.create:
index: test_index1
body:
settings:
number_of_replicas: 0
- do:
indices.create:
index: test_index2
body:
settings:
number_of_replicas: 0
- do:
indices.create:
index: foo
body:
settings:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: green
---
"put one mapping per index":