Delete mapping tests

also testing exists_type
This commit is contained in:
Honza Kral 2013-07-15 15:01:48 +02:00
parent 59af51838a
commit 817f24798a

View File

@ -0,0 +1,31 @@
---
"delete mapping tests":
- do:
indices.create:
index: test_index
body:
mappings:
test_type:
properties:
text:
type: string
analyzer: whitespace
- do:
indices.exists_type:
index: test_index
type: test_type
- is_true: ''
- do:
indices.delete_mapping:
index: test_index
type: test_type
- do:
indices.exists_type:
index: test_index
type: test_type
- is_false: ''