mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
Fix indices.get_field_mapping rest tests
After `field` has been renamed to `fields` in #13902
This commit is contained in:
parent
a0fa83e3df
commit
fd1cd60e78
@ -18,7 +18,7 @@ setup:
|
|||||||
|
|
||||||
- do:
|
- do:
|
||||||
indices.get_field_mapping:
|
indices.get_field_mapping:
|
||||||
field: text
|
fields: text
|
||||||
|
|
||||||
- match: {test_index.mappings.test_type.text.mapping.text.type: string}
|
- match: {test_index.mappings.test_type.text.mapping.text.type: string}
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ setup:
|
|||||||
- do:
|
- do:
|
||||||
indices.get_field_mapping:
|
indices.get_field_mapping:
|
||||||
index: test_index
|
index: test_index
|
||||||
field: text
|
fields: text
|
||||||
|
|
||||||
- match: {test_index.mappings.test_type.text.mapping.text.type: string}
|
- match: {test_index.mappings.test_type.text.mapping.text.type: string}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ setup:
|
|||||||
indices.get_field_mapping:
|
indices.get_field_mapping:
|
||||||
index: test_index
|
index: test_index
|
||||||
type: test_type
|
type: test_type
|
||||||
field: text
|
fields: text
|
||||||
|
|
||||||
- match: {test_index.mappings.test_type.text.mapping.text.type: string}
|
- match: {test_index.mappings.test_type.text.mapping.text.type: string}
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ setup:
|
|||||||
indices.get_field_mapping:
|
indices.get_field_mapping:
|
||||||
index: test_index
|
index: test_index
|
||||||
type: test_type
|
type: test_type
|
||||||
field: [ text , text1 ]
|
fields: [ text , text1 ]
|
||||||
|
|
||||||
- match: {test_index.mappings.test_type.text.mapping.text.type: string}
|
- match: {test_index.mappings.test_type.text.mapping.text.type: string}
|
||||||
- is_false: test_index.mappings.test_type.text1
|
- is_false: test_index.mappings.test_type.text1
|
||||||
@ -61,19 +61,19 @@ setup:
|
|||||||
indices.get_field_mapping:
|
indices.get_field_mapping:
|
||||||
index: test_index
|
index: test_index
|
||||||
type: test_type
|
type: test_type
|
||||||
field: text
|
fields: text
|
||||||
include_defaults: true
|
include_defaults: true
|
||||||
|
|
||||||
- match: {test_index.mappings.test_type.text.mapping.text.type: string}
|
- match: {test_index.mappings.test_type.text.mapping.text.type: string}
|
||||||
- match: {test_index.mappings.test_type.text.mapping.text.analyzer: default}
|
- match: {test_index.mappings.test_type.text.mapping.text.analyzer: default}
|
||||||
|
|
||||||
---
|
---
|
||||||
"Get field mapping should work without index specifying type and field":
|
"Get field mapping should work without index specifying type and fields":
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
indices.get_field_mapping:
|
indices.get_field_mapping:
|
||||||
type: test_type
|
type: test_type
|
||||||
field: text
|
fields: text
|
||||||
|
|
||||||
- match: {test_index.mappings.test_type.text.mapping.text.type: string}
|
- match: {test_index.mappings.test_type.text.mapping.text.type: string}
|
||||||
|
|
||||||
|
@ -19,6 +19,6 @@
|
|||||||
indices.get_field_mapping:
|
indices.get_field_mapping:
|
||||||
index: test_index
|
index: test_index
|
||||||
type: test_type
|
type: test_type
|
||||||
field: not_existent
|
fields: not_existent
|
||||||
|
|
||||||
- match: { '': {}}
|
- match: { '': {}}
|
||||||
|
@ -20,5 +20,5 @@
|
|||||||
indices.get_field_mapping:
|
indices.get_field_mapping:
|
||||||
index: test_index
|
index: test_index
|
||||||
type: not_test_type
|
type: not_test_type
|
||||||
field: text
|
fields: text
|
||||||
|
|
||||||
|
@ -6,6 +6,6 @@
|
|||||||
indices.get_field_mapping:
|
indices.get_field_mapping:
|
||||||
index: test_index
|
index: test_index
|
||||||
type: type
|
type: type
|
||||||
field: field
|
fields: field
|
||||||
|
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ setup:
|
|||||||
|
|
||||||
- do:
|
- do:
|
||||||
indices.get_field_mapping:
|
indices.get_field_mapping:
|
||||||
field: "*"
|
fields: "*"
|
||||||
|
|
||||||
- match: {test_index.mappings.test_type.t1.full_name: t1 }
|
- match: {test_index.mappings.test_type.t1.full_name: t1 }
|
||||||
- match: {test_index.mappings.test_type.t2.full_name: t2 }
|
- match: {test_index.mappings.test_type.t2.full_name: t2 }
|
||||||
@ -63,7 +63,7 @@ setup:
|
|||||||
- do:
|
- do:
|
||||||
indices.get_field_mapping:
|
indices.get_field_mapping:
|
||||||
index: test_index
|
index: test_index
|
||||||
field: "t*"
|
fields: "t*"
|
||||||
|
|
||||||
- match: {test_index.mappings.test_type.t1.full_name: t1 }
|
- match: {test_index.mappings.test_type.t1.full_name: t1 }
|
||||||
- match: {test_index.mappings.test_type.t2.full_name: t2 }
|
- match: {test_index.mappings.test_type.t2.full_name: t2 }
|
||||||
@ -75,7 +75,7 @@ setup:
|
|||||||
- do:
|
- do:
|
||||||
indices.get_field_mapping:
|
indices.get_field_mapping:
|
||||||
index: test_index
|
index: test_index
|
||||||
field: "*t1"
|
fields: "*t1"
|
||||||
- match: {test_index.mappings.test_type.t1.full_name: t1 }
|
- match: {test_index.mappings.test_type.t1.full_name: t1 }
|
||||||
- match: {test_index.mappings.test_type.obj\.t1.full_name: obj.t1 }
|
- match: {test_index.mappings.test_type.obj\.t1.full_name: obj.t1 }
|
||||||
- match: {test_index.mappings.test_type.obj\.i_t1.full_name: obj.i_t1 }
|
- match: {test_index.mappings.test_type.obj\.i_t1.full_name: obj.i_t1 }
|
||||||
@ -87,7 +87,7 @@ setup:
|
|||||||
- do:
|
- do:
|
||||||
indices.get_field_mapping:
|
indices.get_field_mapping:
|
||||||
index: test_index
|
index: test_index
|
||||||
field: "obj.i_*"
|
fields: "obj.i_*"
|
||||||
- match: {test_index.mappings.test_type.obj\.i_t1.full_name: obj.i_t1 }
|
- match: {test_index.mappings.test_type.obj\.i_t1.full_name: obj.i_t1 }
|
||||||
- match: {test_index.mappings.test_type.obj\.i_t3.full_name: obj.i_t3 }
|
- match: {test_index.mappings.test_type.obj\.i_t3.full_name: obj.i_t3 }
|
||||||
- length: {test_index.mappings.test_type: 2}
|
- length: {test_index.mappings.test_type: 2}
|
||||||
@ -99,7 +99,7 @@ setup:
|
|||||||
indices.get_field_mapping:
|
indices.get_field_mapping:
|
||||||
index: _all
|
index: _all
|
||||||
type: _all
|
type: _all
|
||||||
field: "t*"
|
fields: "t*"
|
||||||
- match: {test_index.mappings.test_type.t1.full_name: t1 }
|
- match: {test_index.mappings.test_type.t1.full_name: t1 }
|
||||||
- match: {test_index.mappings.test_type.t2.full_name: t2 }
|
- match: {test_index.mappings.test_type.t2.full_name: t2 }
|
||||||
- length: {test_index.mappings.test_type: 2}
|
- length: {test_index.mappings.test_type: 2}
|
||||||
@ -114,7 +114,7 @@ setup:
|
|||||||
indices.get_field_mapping:
|
indices.get_field_mapping:
|
||||||
index: '*'
|
index: '*'
|
||||||
type: '*'
|
type: '*'
|
||||||
field: "t*"
|
fields: "t*"
|
||||||
- match: {test_index.mappings.test_type.t1.full_name: t1 }
|
- match: {test_index.mappings.test_type.t1.full_name: t1 }
|
||||||
- match: {test_index.mappings.test_type.t2.full_name: t2 }
|
- match: {test_index.mappings.test_type.t2.full_name: t2 }
|
||||||
- length: {test_index.mappings.test_type: 2}
|
- length: {test_index.mappings.test_type: 2}
|
||||||
@ -129,7 +129,7 @@ setup:
|
|||||||
indices.get_field_mapping:
|
indices.get_field_mapping:
|
||||||
index: 'test_index,test_index_2'
|
index: 'test_index,test_index_2'
|
||||||
type: 'test_type,test_type_2'
|
type: 'test_type,test_type_2'
|
||||||
field: "t*"
|
fields: "t*"
|
||||||
- match: {test_index.mappings.test_type.t1.full_name: t1 }
|
- match: {test_index.mappings.test_type.t1.full_name: t1 }
|
||||||
- match: {test_index.mappings.test_type.t2.full_name: t2 }
|
- match: {test_index.mappings.test_type.t2.full_name: t2 }
|
||||||
- length: {test_index.mappings.test_type: 2}
|
- length: {test_index.mappings.test_type: 2}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user