Default include_type_name to false in the yml test harness. (#38058)

This PR removes the temporary change we made to the yml test harness in #37285
to automatically set `include_type_name` to `true` in index creation requests
if it's not already specified. This is possible now that the vast majority of
index creation requests were updated to be typeless in #37611. A few additional
tests also needed updating here.

Additionally, this PR updates the test harness to set `include_type_name` to
`false` in index creation requests when communicating with 6.x nodes. This
mirrors the logic added in #37611 to allow for typeless document write requests
in test set-up code. With this update in place, we can remove many references
to `include_type_name: false` from the yml tests.
This commit is contained in:
Julie Tibshirani 2019-02-01 11:44:13 -08:00 committed by GitHub
parent 9350da98a7
commit c2e9d13ebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
203 changed files with 516 additions and 741 deletions

View File

@ -2,7 +2,6 @@
"Empty Bucket Aggregation":
- do:
indices.create:
include_type_name: false
index: empty_bucket_idx
body:
settings:

View File

@ -3,7 +3,6 @@ setup:
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -3,7 +3,6 @@ setup:
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -23,7 +23,6 @@
- do:
indices.create:
include_type_name: false
index: test_deprecated_htmlstrip
body:
settings:

View File

@ -2,7 +2,6 @@
"validate query with synonyms":
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -5,7 +5,6 @@
# versions in the same position.
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -1,7 +1,6 @@
"ngram search":
- do:
indices.create:
include_type_name: false
index: test
body:
settings:
@ -44,7 +43,6 @@
"testNGramCopyField":
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -1,7 +1,6 @@
"ngram highlighting":
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -2,7 +2,6 @@
"Test query string with snowball":
- do:
indices.create:
include_type_name: false
index: test
body:
mappings:

View File

@ -2,7 +2,6 @@
"Test common terms query with stacked tokens":
- do:
indices.create:
include_type_name: false
index: test
body:
settings:
@ -220,7 +219,6 @@
"Test match query with synonyms - see #3881 for extensive description of the issue":
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -1,7 +1,6 @@
setup:
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -3,7 +3,6 @@
setup:
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -2,7 +2,6 @@
"suggestions with synonyms":
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -3,7 +3,6 @@
# because there are no token filters that support payloads in core.
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -127,14 +127,12 @@
body: >
{
"mappings" : {
"test" : {
"properties" : {
"geoip.location" : {
"type": "geo_point"
}
}
}
}
}
- match: { acknowledged: true }

View File

@ -2,7 +2,6 @@
setup:
- do:
indices.create:
include_type_name: false
index: test123
body:
mappings:

View File

@ -1,7 +1,6 @@
setup:
- do:
indices.put_template:
include_type_name: false
name: index_template
body:
index_patterns: test-*

View File

@ -3,7 +3,6 @@
setup:
- do:
indices.create:
include_type_name: false
index: test
body:
mappings:

View File

@ -1,7 +1,6 @@
setup:
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -4,7 +4,6 @@
features: ["headers"]
- do:
indices.create:
include_type_name: false
index: test
body:
mappings:

View File

@ -1,7 +1,6 @@
setup:
- do:
indices.create:
include_type_name: false
index: my-index
body:
mappings:

View File

@ -6,7 +6,6 @@ setup:
reason: "moving_fn added in 6.4.0"
- do:
indices.create:
include_type_name: false
index: test
body:
mappings:

View File

@ -80,7 +80,6 @@ setup:
"Random functions":
- do:
indices.create:
include_type_name: false
index: test
body:
settings:
@ -136,7 +135,6 @@ setup:
"Decay geo functions":
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -5,7 +5,6 @@ setup:
- do:
indices.create:
include_type_name: false
index: test
body:
mappings:

View File

@ -5,7 +5,6 @@ setup:
- do:
indices.create:
include_type_name: false
index: test-index
body:
settings:

View File

@ -5,7 +5,6 @@ setup:
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -5,7 +5,6 @@ setup:
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -1,7 +1,6 @@
setup:
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -5,7 +5,6 @@ setup:
- do:
indices.create:
include_type_name: false
index: test-index
body:
settings:

View File

@ -1,7 +1,6 @@
setup:
- do:
indices.create:
include_type_name: false
index: test
body:
mappings:

View File

@ -1,7 +1,6 @@
setup:
- do:
indices.create:
include_type_name: false
index: test
body:
mappings:

View File

@ -2,7 +2,6 @@
"Test percolator basics via rest":
- do:
indices.create:
include_type_name: false
index: queries_index
body:
mappings:

View File

@ -166,9 +166,8 @@
index: test
body:
mappings:
test:
_source:
enabled: false
_source:
enabled: false
- do:
index:
index: test
@ -178,7 +177,7 @@
indices.refresh: {}
- do:
catch: /\[test\]\[test\]\[1\] didn't store _source/
catch: /\[test\]\[_doc\]\[1\] didn't store _source/
reindex:
body:
source:

View File

@ -4,18 +4,16 @@ setup:
index: source
body:
mappings:
doc:
properties:
join_field: { "type": "join", "relations": { "parent": "child", "child": "grand_child" } }
properties:
join_field: { "type": "join", "relations": { "parent": "child", "child": "grand_child" } }
- do:
indices.create:
index: dest
body:
mappings:
doc:
properties:
join_field: { "type": "join", "relations": { "parent": "child", "child": "grand_child" } }
properties:
join_field: { "type": "join", "relations": { "parent": "child", "child": "grand_child" } }
- do:
index:

View File

@ -5,10 +5,9 @@
index: test
body:
mappings:
place:
properties:
name:
type: keyword
properties:
name:
type: keyword
- do:
index:
index: test
@ -18,7 +17,6 @@
- do:
indices.put_mapping:
include_type_name: false
index: test
body:
properties:

View File

@ -4,7 +4,6 @@
"Index ICU content":
- do:
indices.create:
include_type_name: false
index: test
body:
settings:

View File

@ -7,11 +7,10 @@
index: test
body:
mappings:
type:
properties:
text:
type: text
analyzer: kuromoji
properties:
text:
type: text
analyzer: kuromoji
- do:
index:

View File

@ -7,11 +7,10 @@
index: test
body:
mappings:
type:
properties:
text:
type: text
analyzer: nori
properties:
text:
type: text
analyzer: nori
- do:
index:

View File

@ -4,7 +4,6 @@
"Index phonetic content":
- do:
indices.create:
include_type_name: false
index: phonetic_sample
body:
settings:

View File

@ -4,7 +4,6 @@
"Index Smartcn content":
- do:
indices.create:
include_type_name: false
index: test
body:
mappings:

View File

@ -4,7 +4,6 @@
"Index Stempel content":
- do:
indices.create:
include_type_name: false
index: test
body:
mappings:

View File

@ -4,7 +4,6 @@
"Index Stempel content":
- do:
indices.create:
include_type_name: false
index: test
body:
mappings:

View File

@ -9,7 +9,6 @@
- do:
indices.create:
include_type_name: false
index: annotated
body:
settings:

View File

@ -6,7 +6,6 @@
- do:
indices.create:
include_type_name: false
index: test
body:
mappings:

View File

@ -6,7 +6,6 @@
- do:
indices.create:
include_type_name: false
index: test
body:
mappings:

View File

@ -14,15 +14,15 @@
bulk:
refresh: true
body:
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
- '{"index": {"_index": "test_index"}}'
- '{"f1": "local_cluster", "filter_field": 0}'
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
- '{"index": {"_index": "test_index"}}'
- '{"f1": "local_cluster", "filter_field": 1}'
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
- '{"index": {"_index": "test_index"}}'
- '{"f1": "local_cluster", "filter_field": 0}'
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
- '{"index": {"_index": "test_index"}}'
- '{"f1": "local_cluster", "filter_field": 1}'
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
- '{"index": {"_index": "test_index"}}'
- '{"f1": "local_cluster", "filter_field": 0}'
- do:

View File

@ -5,25 +5,24 @@
index: field_caps_index_2
body:
mappings:
t:
properties:
text:
type: text
keyword:
type: keyword
number:
type: double
geo:
type: geo_point
object:
type: object
properties:
nested1 :
type : text
index: true
nested2:
type: float
doc_values: true
properties:
text:
type: text
keyword:
type: keyword
number:
type: double
geo:
type: geo_point
object:
type: object
properties:
nested1 :
type : text
index: true
nested2:
type: float
doc_values: true
- do:
field_caps:

View File

@ -10,17 +10,16 @@
number_of_shards: 1
number_of_replicas: 0
mappings:
test_type:
properties:
created_at:
type: date
format: "yyyy-MM-dd"
properties:
created_at:
type: date
format: "yyyy-MM-dd"
- do:
bulk:
refresh: true
body:
- '{"index": {"_index": "skip_shards_index", "_type": "test_type"}}'
- '{"index": {"_index": "skip_shards_index"}}'
- '{"f1": "local_cluster", "sort_field": 0, "created_at" : "2017-01-01"}'
# check that we skip the remote shard

View File

@ -24,7 +24,7 @@ teardown:
bulk:
refresh: true
body:
- '{"index": {"_index": "single_doc_index", "_type": "test_type"}}'
- '{"index": {"_index": "single_doc_index"}}'
- '{"f1": "local_cluster", "sort_field": 0}'
- do:

View File

@ -10,17 +10,16 @@
number_of_shards: 1
number_of_replicas: 0
mappings:
test_type:
properties:
created_at:
type: date
format: "yyyy-MM-dd"
properties:
created_at:
type: date
format: "yyyy-MM-dd"
- do:
bulk:
refresh: true
body:
- '{"index": {"_index": "single_doc_index", "_type": "test_type"}}'
- '{"index": {"_index": "single_doc_index"}}'
- '{"f1": "remote_cluster", "sort_field": 1, "created_at" : "2016-01-01"}'
- do:
@ -30,25 +29,24 @@
settings:
index.number_of_shards: 1
mappings:
t:
properties:
text:
type: text
keyword:
type: keyword
number:
type: double
geo:
type: geo_point
object:
type: object
properties:
nested1 :
type : text
index: false
nested2:
type: float
doc_values: false
properties:
text:
type: text
keyword:
type: keyword
number:
type: double
geo:
type: geo_point
object:
type: object
properties:
nested1 :
type : text
index: false
nested2:
type: float
doc_values: false
- do:
indices.create:
index: field_caps_index_3
@ -56,25 +54,24 @@
settings:
index.number_of_shards: 1
mappings:
t:
properties:
text:
type: text
keyword:
type: keyword
number:
type: long
geo:
type: keyword
object:
type: object
properties:
nested1 :
type : long
index: false
nested2:
type: keyword
doc_values: false
properties:
text:
type: text
keyword:
type: keyword
number:
type: long
geo:
type: keyword
object:
type: object
properties:
nested1 :
type : long
index: false
nested2:
type: keyword
doc_values: false
- do:
indices.create:
index: test_index
@ -93,17 +90,17 @@
bulk:
refresh: true
body:
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
- '{"index": {"_index": "test_index"}}'
- '{"f1": "remote_cluster", "filter_field": 0}'
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
- '{"index": {"_index": "test_index"}}'
- '{"f1": "remote_cluster", "filter_field": 1}'
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
- '{"index": {"_index": "test_index"}}'
- '{"f1": "remote_cluster", "filter_field": 0}'
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
- '{"index": {"_index": "test_index"}}'
- '{"f1": "remote_cluster", "filter_field": 1}'
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
- '{"index": {"_index": "test_index"}}'
- '{"f1": "remote_cluster", "filter_field": 0}'
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
- '{"index": {"_index": "test_index"}}'
- '{"f1": "remote_cluster", "filter_field": 0}'
- do:

View File

@ -61,7 +61,6 @@
query:
percolate:
field: query
type: doc
document:
field2: value
field3: value

View File

@ -25,15 +25,15 @@
bulk:
refresh: true
body:
- '{"index": {"_index": "test_search_template", "_type": "doc"}}'
- '{"index": {"_index": "test_search_template"}}'
- '{"f1": "v1_old"}'
- '{"index": {"_index": "test_search_template", "_type": "doc"}}'
- '{"index": {"_index": "test_search_template"}}'
- '{"f1": "v2_old"}'
- '{"index": {"_index": "test_search_template", "_type": "doc"}}'
- '{"index": {"_index": "test_search_template"}}'
- '{"f1": "v3_old"}'
- '{"index": {"_index": "test_search_template", "_type": "doc"}}'
- '{"index": {"_index": "test_search_template"}}'
- '{"f1": "v4_old"}'
- '{"index": {"_index": "test_search_template", "_type": "doc"}}'
- '{"index": {"_index": "test_search_template"}}'
- '{"f1": "v5_old"}'
- do:
@ -65,21 +65,19 @@
index: queries
body:
mappings:
doc:
properties:
query:
type: percolator
field1:
type: keyword
field2:
type: keyword
field3:
type: keyword
properties:
query:
type: percolator
field1:
type: keyword
field2:
type: keyword
field3:
type: keyword
- do:
index:
index: queries
type: doc
id: q1
body:
query:
@ -89,7 +87,6 @@
- do:
index:
index: queries
type: doc
id: q2
body:
query:
@ -103,7 +100,6 @@
- do:
index:
index: queries
type: doc
id: q3
body:
query:
@ -176,15 +172,15 @@
bulk:
refresh: true
body:
- '{"index": {"_index": "reindexed_index", "_type": "doc"}}'
- '{"index": {"_index": "reindexed_index"}}'
- '{"f1": "1"}'
- '{"index": {"_index": "reindexed_index", "_type": "doc"}}'
- '{"index": {"_index": "reindexed_index"}}'
- '{"f1": "2"}'
- '{"index": {"_index": "reindexed_index", "_type": "doc"}}'
- '{"index": {"_index": "reindexed_index"}}'
- '{"f1": "3"}'
- '{"index": {"_index": "reindexed_index", "_type": "doc"}}'
- '{"index": {"_index": "reindexed_index"}}'
- '{"f1": "4"}'
- '{"index": {"_index": "reindexed_index", "_type": "doc"}}'
- '{"index": {"_index": "reindexed_index"}}'
- '{"f1": "5"}'
- do:
@ -215,9 +211,8 @@
index: all-index
body:
mappings:
type:
_all:
enabled: false
properties:
field:
type: text
_all:
enabled: false
properties:
field:
type: text

View File

@ -27,7 +27,6 @@
- do:
index:
index: queries
type: doc
id: q4
refresh: true
body:
@ -134,6 +133,7 @@
- do:
indices.get_mapping:
include_type_name: false
index: all-index
- is_true: all-index.mappings._all

View File

@ -9,7 +9,7 @@
index: timetest
body:
mappings:
test: { "properties": { "my_time": {"type": "date", "format": "strict_date_optional_time_nanos"}}}
"properties": { "my_time": {"type": "date", "format": "strict_date_optional_time_nanos"}}
- do:
ingest.put_pipeline:
@ -31,7 +31,6 @@
- do:
index:
index: timetest
type: test
id: 1
pipeline: "my_timely_pipeline"
body: {}

View File

@ -7,6 +7,7 @@
- do:
indices.create: # not using include_type_name: false on purpose
include_type_name: true
index: index
body:
mappings:

View File

@ -54,7 +54,6 @@
- do:
indices.create:
include_type_name: false
index: test
body:
mappings:

View File

@ -22,7 +22,6 @@
- do:
indices.create:
include_type_name: false
index: index
body:
settings:

View File

@ -2,7 +2,6 @@
"count with query_string parameters":
- do:
indices.create:
include_type_name: false
index: test
body:
mappings:

View File

@ -5,7 +5,6 @@ setup:
reason: types are required in requests before 7.0.0
- do:
indices.create:
include_type_name: false
index: test_1
body:
settings:

View File

@ -2,6 +2,7 @@
setup:
- do:
indices.create:
include_type_name: true
index: test_1
body:
settings:

View File

@ -7,7 +7,6 @@
- do:
indices.create:
include_type_name: false
index: foobar
body:
settings:

View File

@ -7,7 +7,6 @@
- do:
indices.create:
include_type_name: false
index: test_1
body:
settings:

View File

@ -7,7 +7,6 @@
- do:
indices.create:
include_type_name: false
index: test_1
body:
settings:

View File

@ -7,6 +7,7 @@
- do:
indices.create: # not using include_type_name: false on purpose
include_type_name: true
index: index
body:
mappings:

View File

@ -6,7 +6,6 @@
- do:
indices.create:
include_type_name: false
index: test
body:
mappings:

View File

@ -2,6 +2,7 @@
"explain with query_string parameters":
- do:
indices.create:
include_type_name: true
index: test
body:
mappings:

View File

@ -7,6 +7,7 @@
- do:
indices.create: # not using include_type_name: false on purpose
include_type_name: true
index: index
body:
mappings:

View File

@ -2,7 +2,6 @@
setup:
- do:
indices.create:
include_type_name: false
index: test1
body:
mappings:
@ -36,7 +35,6 @@ setup:
- do:
indices.create:
include_type_name: false
index: test2
body:
mappings:
@ -69,7 +67,6 @@ setup:
index: false
- do:
indices.create:
include_type_name: false
index: test3
body:
mappings:

View File

@ -7,6 +7,7 @@
- do:
indices.create: # not using include_type_name: false on purpose
include_type_name: true
index: index
body:
mappings:

View File

@ -6,7 +6,6 @@
reason: types are required in requests before 7.0.0
- do:
indices.create:
include_type_name: false
index: test_1
body:
mappings:

View File

@ -3,6 +3,7 @@
- do:
indices.create:
include_type_name: true
index: test_1
body:
mappings:

View File

@ -7,7 +7,6 @@
- do:
indices.create:
include_type_name: false
index: test_1
body:
settings:

View File

@ -7,7 +7,6 @@
- do:
indices.create:
include_type_name: false
index: test_1
body:
settings:

View File

@ -6,7 +6,6 @@
reason: types are required in requests before 7.0.0
- do:
indices.create:
include_type_name: false
index: test_1
body:
mappings:

View File

@ -3,6 +3,7 @@
- do:
indices.create:
include_type_name: true
index: test_1
body:
mappings:

View File

@ -7,7 +7,6 @@ setup:
- do:
indices.create:
include_type_name: false
index: test_1
body:
mappings:

View File

@ -3,6 +3,7 @@ setup:
- do:
indices.create:
include_type_name: true
index: test_1
body:
mappings:

View File

@ -6,7 +6,6 @@
reason: types are required in requests before 7.0.0
- do:
indices.create:
include_type_name: false
index: test_1
body:
settings:

View File

@ -7,7 +7,6 @@
- do:
indices.create:
include_type_name: false
index: test_1
body:
settings:

View File

@ -7,6 +7,7 @@
- do:
indices.create: # not using include_type_name: false on purpose
include_type_name: true
index: index
body:
mappings:
@ -70,6 +71,7 @@
- do:
indices.create: # not using include_type_name: false on purpose
include_type_name: true
index: index
body:
mappings:

View File

@ -11,7 +11,6 @@
"Index and field":
- do:
indices.create:
include_type_name: false
index: test
body:
mappings:

View File

@ -6,7 +6,6 @@
reason: include_type_name defaults to true before 7.0.0
- do:
indices.create:
include_type_name: false
index: test_index
body:
mappings:
@ -26,7 +25,6 @@
reason: include_type_name defaults to true before 7.0.0
- do:
indices.create:
include_type_name: false
index: test_index
body:
settings:
@ -46,7 +44,6 @@
reason: include_type_name defaults to true before 7.0.0
- do:
indices.create:
include_type_name: false
index: test_index
- match: { acknowledged: true }
@ -60,7 +57,6 @@
reason: include_type_name defaults to true before 7.0.0
- do:
indices.create:
include_type_name: false
index: test_index
wait_for_active_shards: all
body:
@ -78,7 +74,6 @@
reason: include_type_name defaults to true before 7.0.0
- do:
indices.create:
include_type_name: false
index: test_index
body:
mappings:
@ -112,7 +107,6 @@
reason: is_write_index is not implemented in ES <= 6.x
- do:
indices.create:
include_type_name: false
index: test_index
body:
aliases:
@ -135,7 +129,6 @@
- do:
catch: /illegal_argument_exception/
indices.create:
include_type_name: false
index: test_index
body:
mappings:

View File

@ -19,7 +19,6 @@
- do:
indices.create:
include_type_name: false
index: test-1
body:
mappings:

View File

@ -3,7 +3,6 @@ setup:
- do:
indices.create:
include_type_name: false
index: test_index
body:
aliases:

View File

@ -3,6 +3,7 @@ setup:
- do:
indices.create:
include_type_name: true
index: test_index
body:
aliases:

View File

@ -5,7 +5,6 @@ setup:
reason: include_type_name defaults to true before 7.0
- do:
indices.create:
include_type_name: false
index: test_index
body:
mappings:

View File

@ -2,6 +2,7 @@
setup:
- do:
indices.create:
include_type_name: true
index: test_index
body:
mappings:

View File

@ -5,7 +5,6 @@
reason: include_type_name defaults to true before 7.0
- do:
indices.create:
include_type_name: false
index: test_index
body:
mappings:

View File

@ -3,6 +3,7 @@
- do:
indices.create:
include_type_name: true
index: test_index
body:
mappings:

View File

@ -4,7 +4,6 @@
- do:
catch: missing
indices.get_field_mapping:
include_type_name: false
index: test_index
fields: field

View File

@ -5,7 +5,6 @@ setup:
reason: include_type_name defaults to true before 7.0
- do:
indices.create:
include_type_name: false
index: test_index
body:
mappings:
@ -25,7 +24,6 @@ setup:
- do:
indices.create:
include_type_name: false
index: test_index_2
body:
mappings:

View File

@ -2,6 +2,7 @@
setup:
- do:
indices.create:
include_type_name: true
index: test_index
body:
mappings:
@ -22,6 +23,7 @@ setup:
- do:
indices.create:
include_type_name: true
index: test_index_2
body:
mappings:

View File

@ -3,6 +3,7 @@
- do:
indices.create: # not using include_type_name: false on purpose
include_type_name: true
index: index
body:
mappings:

View File

@ -18,7 +18,6 @@ setup:
- do:
indices.create:
include_type_name: false
index: t
- do:

View File

@ -2,12 +2,14 @@
setup:
- do:
indices.create:
include_type_name: true
index: test_1
body:
mappings:
doc: {}
- do:
indices.create:
include_type_name: true
index: test_2
body:
mappings:

View File

@ -26,6 +26,7 @@
"No type matching pattern returns 404":
- do:
indices.create:
include_type_name: true
index: test_index
body:
mappings:
@ -50,6 +51,7 @@
"Existent and non-existent type returns 404 and the existing type":
- do:
indices.create:
include_type_name: true
index: test_index
body:
mappings:
@ -74,6 +76,7 @@
"Existent and non-existent types returns 404 and the existing type":
- do:
indices.create:
include_type_name: true
index: test_index
body:
mappings:

View File

@ -3,7 +3,6 @@
- do:
catch: missing
indices.get_mapping:
include_type_name: false
index: test_index
---
@ -20,7 +19,6 @@
reason: ignore_unavailable was ignored in previous versions
- do:
indices.get_mapping:
include_type_name: false
index: test_index
ignore_unavailable: true
@ -31,7 +29,6 @@
- do:
catch: missing
indices.get_mapping:
include_type_name: false
index: test_index
ignore_unavailable: true
allow_no_indices: false

View File

@ -3,7 +3,6 @@
- do:
indices.create:
include_type_name: false
index: test_index
body:
mappings:

View File

@ -2,7 +2,6 @@
setup:
- do:
indices.create:
include_type_name: false
index: test-xxx
body:
settings:
@ -14,7 +13,6 @@ setup:
type: keyword
- do:
indices.create:
include_type_name: false
index: test-xxy
body:
settings:
@ -26,7 +24,6 @@ setup:
type: keyword
- do:
indices.create:
include_type_name: false
index: test-xyy
body:
settings:
@ -38,7 +35,6 @@ setup:
type: keyword
- do:
indices.create:
include_type_name: false
index: test-yyy
body:
settings:
@ -66,7 +62,6 @@ setup:
- do:
indices.get_mapping:
include_type_name: false
index: test-x*
- is_true: test-xxx.mappings
@ -77,7 +72,6 @@ setup:
- do:
indices.get_mapping:
include_type_name: false
index: test-x*
expand_wildcards: all
@ -90,7 +84,6 @@ setup:
- do:
indices.get_mapping:
include_type_name: false
index: test-x*
expand_wildcards: open
@ -102,7 +95,6 @@ setup:
- do:
indices.get_mapping:
include_type_name: false
index: test-x*
expand_wildcards: closed
@ -115,7 +107,6 @@ setup:
reason: allow_no_indices (defaults to true) was ignored in previous versions
- do:
indices.get_mapping:
include_type_name: false
index: test-x*
expand_wildcards: none
@ -128,7 +119,6 @@ setup:
- do:
catch: missing
indices.get_mapping:
include_type_name: false
index: test-x*
expand_wildcards: none
allow_no_indices: false
@ -137,7 +127,6 @@ setup:
- do:
indices.get_mapping:
include_type_name: false
index: test-x*
expand_wildcards: open,closed

View File

@ -7,6 +7,7 @@
- do:
indices.create: # not using include_type_name: false on purpose
include_type_name: true
index: index
body:
mappings:
@ -17,7 +18,6 @@
- do:
indices.get_mapping:
include_type_name: false
index: index
- match: { index.mappings.properties.foo.type: "keyword" }

Some files were not shown because too many files have changed in this diff Show More