2013-07-15 08:53:32 -04:00
|
|
|
---
|
2013-09-18 09:29:40 -04:00
|
|
|
setup:
|
2013-07-15 08:53:32 -04:00
|
|
|
- do:
|
|
|
|
indices.create:
|
2014-01-14 16:31:42 -05:00
|
|
|
index: test_1
|
2013-07-15 08:53:32 -04:00
|
|
|
body:
|
|
|
|
mappings:
|
2014-01-14 16:31:42 -05:00
|
|
|
type_1: {}
|
|
|
|
type_2: {}
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_2
|
|
|
|
body:
|
|
|
|
mappings:
|
|
|
|
type_2: {}
|
|
|
|
type_3: {}
|
2013-07-15 08:53:32 -04:00
|
|
|
|
2013-09-18 09:29:40 -04:00
|
|
|
---
|
2014-01-14 16:31:42 -05:00
|
|
|
"Get /_mapping":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping: {}
|
2013-07-23 14:24:46 -04:00
|
|
|
|
2014-01-14 16:31:42 -05:00
|
|
|
- match: { test_1.mappings.type_1.properties: {}}
|
|
|
|
- match: { test_1.mappings.type_2.properties: {}}
|
|
|
|
- match: { test_2.mappings.type_2.properties: {}}
|
|
|
|
- match: { test_2.mappings.type_3.properties: {}}
|
2013-07-15 08:53:32 -04:00
|
|
|
|
2013-07-25 05:33:55 -04:00
|
|
|
---
|
2014-01-14 16:31:42 -05:00
|
|
|
"Get /{index}/_mapping":
|
2013-09-18 09:29:40 -04:00
|
|
|
|
2014-01-14 16:31:42 -05:00
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test_1
|
|
|
|
|
|
|
|
- match: { test_1.mappings.type_1.properties: {}}
|
|
|
|
- match: { test_1.mappings.type_2.properties: {}}
|
|
|
|
- is_false: test_2
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
"Get /{index}/_mapping/_all":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test_1
|
|
|
|
type: _all
|
|
|
|
|
|
|
|
- match: { test_1.mappings.type_1.properties: {}}
|
|
|
|
- match: { test_1.mappings.type_2.properties: {}}
|
|
|
|
- is_false: test_2
|
|
|
|
|
|
|
|
---
|
|
|
|
"Get /{index}/_mapping/*":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test_1
|
|
|
|
type: '*'
|
|
|
|
|
|
|
|
- match: { test_1.mappings.type_1.properties: {}}
|
|
|
|
- match: { test_1.mappings.type_2.properties: {}}
|
|
|
|
- is_false: test_2
|
|
|
|
|
|
|
|
---
|
|
|
|
"Get /{index}/_mapping/{type}":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test_1
|
|
|
|
type: type_1
|
|
|
|
|
|
|
|
- match: { test_1.mappings.type_1.properties: {}}
|
|
|
|
- is_false: test_1.mappings.type_2
|
|
|
|
- is_false: test_2
|
|
|
|
|
|
|
|
---
|
|
|
|
"Get /{index}/_mapping/{type,type}":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test_1
|
|
|
|
type: type_1,type_2
|
|
|
|
|
|
|
|
- match: { test_1.mappings.type_1.properties: {}}
|
|
|
|
- match: { test_1.mappings.type_2.properties: {}}
|
|
|
|
- is_false: test_2
|
|
|
|
|
|
|
|
---
|
|
|
|
"Get /{index}/_mapping/{type*}":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test_1
|
|
|
|
type: '*2'
|
|
|
|
|
|
|
|
- match: { test_1.mappings.type_2.properties: {}}
|
|
|
|
- is_false: test_1.mappings.type_1
|
|
|
|
- is_false: test_2
|
|
|
|
|
|
|
|
---
|
|
|
|
"Get /_mapping/{type}":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
type: type_2
|
|
|
|
|
|
|
|
- match: { test_1.mappings.type_2.properties: {}}
|
|
|
|
- match: { test_2.mappings.type_2.properties: {}}
|
|
|
|
- is_false: test_1.mappings.type_1
|
|
|
|
- is_false: test_2.mappings.type_3
|
|
|
|
|
|
|
|
---
|
|
|
|
"Get /_all/_mapping/{type}":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: _all
|
|
|
|
type: type_2
|
|
|
|
|
|
|
|
- match: { test_1.mappings.type_2.properties: {}}
|
|
|
|
- match: { test_2.mappings.type_2.properties: {}}
|
|
|
|
- is_false: test_1.mappings.type_1
|
|
|
|
- is_false: test_2.mappings.type_3
|
|
|
|
|
|
|
|
---
|
|
|
|
"Get /*/_mapping/{type}":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: '*'
|
|
|
|
type: type_2
|
|
|
|
|
|
|
|
- match: { test_1.mappings.type_2.properties: {}}
|
|
|
|
- match: { test_2.mappings.type_2.properties: {}}
|
|
|
|
- is_false: test_1.mappings.type_1
|
|
|
|
- is_false: test_2.mappings.type_3
|
|
|
|
|
|
|
|
---
|
|
|
|
"Get /index,index/_mapping/{type}":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test_1,test_2
|
|
|
|
type: type_2
|
|
|
|
|
|
|
|
- match: { test_1.mappings.type_2.properties: {}}
|
|
|
|
- match: { test_2.mappings.type_2.properties: {}}
|
|
|
|
- is_false: test_2.mappings.type_3
|
|
|
|
|
|
|
|
---
|
|
|
|
"Get /index*/_mapping/{type}":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: '*2'
|
|
|
|
type: type_2
|
2013-07-25 05:33:55 -04:00
|
|
|
|
2014-01-14 16:31:42 -05:00
|
|
|
- match: { test_2.mappings.type_2.properties: {}}
|
|
|
|
- is_false: test_1
|
|
|
|
- is_false: test_2.mappings.type_3
|