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:
@ -26,7 +28,7 @@
indices.delete_mapping:
index: test_index
type: test_type
- do:
indices.exists_type:
index: test_index

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:
@ -21,7 +27,7 @@
- do:
indices.get_mapping:
index: test_index
- match: {test_index.mappings.test_type.properties.text1.type: string}
- match: {test_index.mappings.test_type.properties.text1.analyzer: whitespace}
- match: {test_index.mappings.test_type.properties.text2.type: string}
@ -55,7 +61,7 @@
- do:
indices.get_mapping:
index: test_index
- match: {test_index.mappings.test_type.properties.text1.type: string}
- match: {test_index.mappings.test_type.properties.text1.fields.text_raw.index: not_analyzed}
- match: {test_index.mappings.test_type.properties.text2.type: string}

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":