mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
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:
parent
135404fffc
commit
34893c0570
@ -4,6 +4,8 @@
|
|||||||
indices.create:
|
indices.create:
|
||||||
index: test_index
|
index: test_index
|
||||||
body:
|
body:
|
||||||
|
settings:
|
||||||
|
number_of_replicas: 0
|
||||||
mappings:
|
mappings:
|
||||||
test_type:
|
test_type:
|
||||||
properties:
|
properties:
|
||||||
@ -13,7 +15,7 @@
|
|||||||
|
|
||||||
- do:
|
- do:
|
||||||
cluster.health:
|
cluster.health:
|
||||||
wait_for_status: yellow
|
wait_for_status: green
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
indices.exists_type:
|
indices.exists_type:
|
||||||
@ -26,7 +28,7 @@
|
|||||||
indices.delete_mapping:
|
indices.delete_mapping:
|
||||||
index: test_index
|
index: test_index
|
||||||
type: test_type
|
type: test_type
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
indices.exists_type:
|
indices.exists_type:
|
||||||
index: test_index
|
index: test_index
|
||||||
|
@ -5,21 +5,24 @@ setup:
|
|||||||
index: test_index1
|
index: test_index1
|
||||||
body:
|
body:
|
||||||
mappings: { test_type1: { }}
|
mappings: { test_type1: { }}
|
||||||
|
settings: { number_of_replicas: 0 }
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
indices.create:
|
indices.create:
|
||||||
index: test_index2
|
index: test_index2
|
||||||
body:
|
body:
|
||||||
mappings: { test_type2: { }}
|
mappings: { test_type2: { }}
|
||||||
|
settings: { number_of_replicas: 0 }
|
||||||
- do:
|
- do:
|
||||||
indices.create:
|
indices.create:
|
||||||
index: foo
|
index: foo
|
||||||
body:
|
body:
|
||||||
mappings: { test_type2: { }}
|
mappings: { test_type2: { }}
|
||||||
|
settings: { number_of_replicas: 0 }
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
cluster.health:
|
cluster.health:
|
||||||
wait_for_status: yellow
|
wait_for_status: green
|
||||||
---
|
---
|
||||||
"delete with _all index":
|
"delete with _all index":
|
||||||
- do:
|
- do:
|
||||||
|
@ -3,6 +3,12 @@
|
|||||||
- do:
|
- do:
|
||||||
indices.create:
|
indices.create:
|
||||||
index: test_index
|
index: test_index
|
||||||
|
body:
|
||||||
|
settings:
|
||||||
|
number_of_replicas: 0
|
||||||
|
- do:
|
||||||
|
cluster.health:
|
||||||
|
wait_for_status: green
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
indices.put_mapping:
|
indices.put_mapping:
|
||||||
@ -21,7 +27,7 @@
|
|||||||
- do:
|
- do:
|
||||||
indices.get_mapping:
|
indices.get_mapping:
|
||||||
index: test_index
|
index: test_index
|
||||||
|
|
||||||
- match: {test_index.mappings.test_type.properties.text1.type: string}
|
- 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.text1.analyzer: whitespace}
|
||||||
- match: {test_index.mappings.test_type.properties.text2.type: string}
|
- match: {test_index.mappings.test_type.properties.text2.type: string}
|
||||||
@ -55,7 +61,7 @@
|
|||||||
- do:
|
- do:
|
||||||
indices.get_mapping:
|
indices.get_mapping:
|
||||||
index: test_index
|
index: test_index
|
||||||
|
|
||||||
- match: {test_index.mappings.test_type.properties.text1.type: string}
|
- 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.text1.fields.text_raw.index: not_analyzed}
|
||||||
- match: {test_index.mappings.test_type.properties.text2.type: string}
|
- match: {test_index.mappings.test_type.properties.text2.type: string}
|
||||||
|
@ -2,13 +2,24 @@ setup:
|
|||||||
- do:
|
- do:
|
||||||
indices.create:
|
indices.create:
|
||||||
index: test_index1
|
index: test_index1
|
||||||
|
body:
|
||||||
|
settings:
|
||||||
|
number_of_replicas: 0
|
||||||
- do:
|
- do:
|
||||||
indices.create:
|
indices.create:
|
||||||
index: test_index2
|
index: test_index2
|
||||||
|
body:
|
||||||
|
settings:
|
||||||
|
number_of_replicas: 0
|
||||||
- do:
|
- do:
|
||||||
indices.create:
|
indices.create:
|
||||||
index: foo
|
index: foo
|
||||||
|
body:
|
||||||
|
settings:
|
||||||
|
number_of_replicas: 0
|
||||||
|
- do:
|
||||||
|
cluster.health:
|
||||||
|
wait_for_status: green
|
||||||
|
|
||||||
---
|
---
|
||||||
"put one mapping per index":
|
"put one mapping per index":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user