Skip to content

Fix indices.get_field_mapping rest tests #13962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 6, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ setup:

- do:
indices.get_field_mapping:
field: text
fields: text

- match: {test_index.mappings.test_type.text.mapping.text.type: string}

Expand All @@ -27,7 +27,7 @@ setup:
- do:
indices.get_field_mapping:
index: test_index
field: text
fields: text

- match: {test_index.mappings.test_type.text.mapping.text.type: string}

Expand All @@ -38,7 +38,7 @@ setup:
indices.get_field_mapping:
index: test_index
type: test_type
field: text
fields: text

- match: {test_index.mappings.test_type.text.mapping.text.type: string}

Expand All @@ -49,7 +49,7 @@ setup:
indices.get_field_mapping:
index: test_index
type: test_type
field: [ text , text1 ]
fields: [ text , text1 ]

- match: {test_index.mappings.test_type.text.mapping.text.type: string}
- is_false: test_index.mappings.test_type.text1
Expand All @@ -61,19 +61,19 @@ setup:
indices.get_field_mapping:
index: test_index
type: test_type
field: text
fields: text
include_defaults: true

- match: {test_index.mappings.test_type.text.mapping.text.type: string}
- 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:
indices.get_field_mapping:
type: test_type
field: text
fields: text

- match: {test_index.mappings.test_type.text.mapping.text.type: string}

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
indices.get_field_mapping:
index: test_index
type: test_type
field: not_existent
fields: not_existent

- match: { '': {}}
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
indices.get_field_mapping:
index: test_index
type: not_test_type
field: text
fields: text

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
indices.get_field_mapping:
index: test_index
type: type
field: field
fields: field


Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ setup:

- do:
indices.get_field_mapping:
field: "*"
fields: "*"

- match: {test_index.mappings.test_type.t1.full_name: t1 }
- match: {test_index.mappings.test_type.t2.full_name: t2 }
Expand All @@ -63,7 +63,7 @@ setup:
- do:
indices.get_field_mapping:
index: test_index
field: "t*"
fields: "t*"

- match: {test_index.mappings.test_type.t1.full_name: t1 }
- match: {test_index.mappings.test_type.t2.full_name: t2 }
Expand All @@ -75,7 +75,7 @@ setup:
- do:
indices.get_field_mapping:
index: test_index
field: "*t1"
fields: "*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\.i_t1.full_name: obj.i_t1 }
Expand All @@ -87,7 +87,7 @@ setup:
- do:
indices.get_field_mapping:
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_t3.full_name: obj.i_t3 }
- length: {test_index.mappings.test_type: 2}
Expand All @@ -99,7 +99,7 @@ setup:
indices.get_field_mapping:
index: _all
type: _all
field: "t*"
fields: "t*"
- match: {test_index.mappings.test_type.t1.full_name: t1 }
- match: {test_index.mappings.test_type.t2.full_name: t2 }
- length: {test_index.mappings.test_type: 2}
Expand All @@ -114,7 +114,7 @@ setup:
indices.get_field_mapping:
index: '*'
type: '*'
field: "t*"
fields: "t*"
- match: {test_index.mappings.test_type.t1.full_name: t1 }
- match: {test_index.mappings.test_type.t2.full_name: t2 }
- length: {test_index.mappings.test_type: 2}
Expand All @@ -129,7 +129,7 @@ setup:
indices.get_field_mapping:
index: 'test_index,test_index_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.t2.full_name: t2 }
- length: {test_index.mappings.test_type: 2}
Expand Down