mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-23 05:15:04 +00:00
Delete mapping tests
also testing exists_type
This commit is contained in:
parent
59af51838a
commit
817f24798a
31
rest-api-spec/test/indices.delete_mapping/10_basic.yaml
Normal file
31
rest-api-spec/test/indices.delete_mapping/10_basic.yaml
Normal 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: ''
|
Loading…
x
Reference in New Issue
Block a user