|
@@ -1,166 +0,0 @@
|
|
|
----
|
|
|
-setup:
|
|
|
-
|
|
|
- - skip:
|
|
|
- # this will only run in a mixed cluster environment with at least 1 5.x node
|
|
|
- version: "5.99.99 - "
|
|
|
- reason: multiple types are not supported on 6.x indices onwards
|
|
|
-
|
|
|
- - do:
|
|
|
- indices.create:
|
|
|
- index: test_1
|
|
|
- body:
|
|
|
- mappings:
|
|
|
- type_1: {}
|
|
|
- type_2: {}
|
|
|
- - do:
|
|
|
- indices.create:
|
|
|
- index: test_2
|
|
|
- body:
|
|
|
- mappings:
|
|
|
- type_2: {}
|
|
|
- type_3: {}
|
|
|
-
|
|
|
----
|
|
|
-"Get /_mapping":
|
|
|
-
|
|
|
- - do:
|
|
|
- indices.get_mapping: {}
|
|
|
-
|
|
|
- - is_true: test_1.mappings.type_1
|
|
|
- - is_true: test_1.mappings.type_2
|
|
|
- - is_true: test_2.mappings.type_2
|
|
|
- - is_true: test_2.mappings.type_3
|
|
|
-
|
|
|
----
|
|
|
-"Get /{index}/_mapping":
|
|
|
-
|
|
|
- - do:
|
|
|
- indices.get_mapping:
|
|
|
- index: test_1
|
|
|
-
|
|
|
- - is_true: test_1.mappings.type_1
|
|
|
- - is_true: test_1.mappings.type_2
|
|
|
- - is_false: test_2
|
|
|
-
|
|
|
-
|
|
|
----
|
|
|
-"Get /{index}/_mapping/_all":
|
|
|
-
|
|
|
- - do:
|
|
|
- indices.get_mapping:
|
|
|
- index: test_1
|
|
|
- type: _all
|
|
|
-
|
|
|
- - is_true: test_1.mappings.type_1
|
|
|
- - is_true: test_1.mappings.type_2
|
|
|
- - is_false: test_2
|
|
|
-
|
|
|
----
|
|
|
-"Get /{index}/_mapping/*":
|
|
|
-
|
|
|
- - do:
|
|
|
- indices.get_mapping:
|
|
|
- index: test_1
|
|
|
- type: '*'
|
|
|
-
|
|
|
- - is_true: test_1.mappings.type_1
|
|
|
- - is_true: test_1.mappings.type_2
|
|
|
- - is_false: test_2
|
|
|
-
|
|
|
----
|
|
|
-"Get /{index}/_mapping/{type}":
|
|
|
-
|
|
|
- - do:
|
|
|
- indices.get_mapping:
|
|
|
- index: test_1
|
|
|
- type: type_1
|
|
|
-
|
|
|
- - 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
|
|
|
-
|
|
|
- - is_true: test_1.mappings.type_1
|
|
|
- - is_true: test_1.mappings.type_2
|
|
|
- - is_false: test_2
|
|
|
-
|
|
|
----
|
|
|
-"Get /{index}/_mapping/{type*}":
|
|
|
-
|
|
|
- - do:
|
|
|
- indices.get_mapping:
|
|
|
- index: test_1
|
|
|
- type: '*2'
|
|
|
-
|
|
|
- - is_true: test_1.mappings.type_2
|
|
|
- - is_false: test_1.mappings.type_1
|
|
|
- - is_false: test_2
|
|
|
-
|
|
|
----
|
|
|
-"Get /_mapping/{type}":
|
|
|
-
|
|
|
- - do:
|
|
|
- indices.get_mapping:
|
|
|
- type: type_2
|
|
|
-
|
|
|
- - is_true: test_1.mappings.type_2
|
|
|
- - is_true: test_2.mappings.type_2
|
|
|
- - 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
|
|
|
-
|
|
|
- - is_true: test_1.mappings.type_2
|
|
|
- - is_true: test_2.mappings.type_2
|
|
|
- - 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
|
|
|
-
|
|
|
- - is_true: test_1.mappings.type_2
|
|
|
- - is_true: test_2.mappings.type_2
|
|
|
- - 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
|
|
|
-
|
|
|
- - is_true: test_1.mappings.type_2
|
|
|
- - is_true: test_2.mappings.type_2
|
|
|
- - is_false: test_2.mappings.type_3
|
|
|
-
|
|
|
----
|
|
|
-"Get /index*/_mapping/{type}":
|
|
|
-
|
|
|
- - do:
|
|
|
- indices.get_mapping:
|
|
|
- index: '*2'
|
|
|
- type: type_2
|
|
|
-
|
|
|
- - is_true: test_2.mappings.type_2
|
|
|
- - is_false: test_1
|
|
|
- - is_false: test_2.mappings.type_3
|