|
@@ -144,60 +144,29 @@ tasks.named("yamlRestCompatTest").configure {
|
|
|
'get_source/86_source_missing_with_types/Missing document source with catch',
|
|
|
'get_source/86_source_missing_with_types/Missing document source with ignore',
|
|
|
'indices.create/10_basic/Create index without soft deletes',
|
|
|
- // 5 below await retrofitting Removes typed URLs from mapping APIs #41676
|
|
|
- 'indices.create/11_basic_with_types/Create index with mappings',
|
|
|
- 'indices.create/20_mix_typeless_typeful/Create a typed index while there is a typeless template',
|
|
|
- 'indices.create/20_mix_typeless_typeful/Create a typeless index while there is a typed template',
|
|
|
+ // type information about the type is removed and not passed down. The logic to check for this is also removed.
|
|
|
'indices.create/20_mix_typeless_typeful/Implicitly create a typed index while there is a typeless template',
|
|
|
'indices.create/20_mix_typeless_typeful/Implicitly create a typeless index while there is a typed template',
|
|
|
//
|
|
|
'indices.flush/10_basic/Index synced flush rest test',
|
|
|
'indices.forcemerge/10_basic/Check deprecation warning when incompatible only_expunge_deletes and max_num_segments values are both set',
|
|
|
- 'indices.get_field_mapping/10_basic/Get field mapping with local is deprecated',// awaits #41676
|
|
|
- 'indices.get_field_mapping/11_basic_with_types/Get field mapping by index only',// awaits #41676
|
|
|
- 'indices.get_field_mapping/11_basic_with_types/Get field mapping by type & field',// awaits #41676
|
|
|
- 'indices.get_field_mapping/11_basic_with_types/Get field mapping by type & field, with another field that doesn\'t exist',// awaits #41676
|
|
|
- 'indices.get_field_mapping/11_basic_with_types/Get field mapping should work without index specifying type and fields',// awaits #41676
|
|
|
- 'indices.get_field_mapping/11_basic_with_types/Get field mapping with include_defaults',// awaits #41676
|
|
|
- 'indices.get_field_mapping/11_basic_with_types/Get field mapping with no index and type',// awaits #41676
|
|
|
- 'indices.get_field_mapping/21_missing_field_with_types/Return empty object if field doesn\'t exist, but type and index do',// awaits #41676
|
|
|
- 'indices.get_field_mapping/30_missing_type/Raise 404 when type doesn\'t exist',// awaits #41676
|
|
|
- 'indices.get_field_mapping/51_field_wildcards_with_types/Get field mapping should work using \'*\' for indices and types',// awaits #41676
|
|
|
- 'indices.get_field_mapping/51_field_wildcards_with_types/Get field mapping should work using \'_all\' for indices and types',// awaits #41676
|
|
|
- 'indices.get_field_mapping/51_field_wildcards_with_types/Get field mapping should work using comma_separated values for indices and types',// awaits #41676
|
|
|
- 'indices.get_field_mapping/51_field_wildcards_with_types/Get field mapping with * for fields',// awaits #41676
|
|
|
- 'indices.get_field_mapping/51_field_wildcards_with_types/Get field mapping with *t1 for fields',// awaits #41676
|
|
|
- 'indices.get_field_mapping/51_field_wildcards_with_types/Get field mapping with t* for fields',// awaits #41676
|
|
|
- 'indices.get_field_mapping/51_field_wildcards_with_types/Get field mapping with wildcarded relative names',// awaits #41676
|
|
|
- 'indices.get_mapping/11_basic_with_types/Get /*/_mapping/{type}',
|
|
|
- 'indices.get_mapping/11_basic_with_types/Get /_all/_mapping/{type}',
|
|
|
- 'indices.get_mapping/11_basic_with_types/Get /_mapping',
|
|
|
- 'indices.get_mapping/11_basic_with_types/Get /_mapping/{type}',
|
|
|
- 'indices.get_mapping/11_basic_with_types/Get /index*/_mapping/{type}',
|
|
|
- 'indices.get_mapping/11_basic_with_types/Get /index,index/_mapping/{type}',
|
|
|
- 'indices.get_mapping/11_basic_with_types/Get /{index}/_mapping',
|
|
|
- 'indices.get_mapping/11_basic_with_types/Get /{index}/_mapping/*',
|
|
|
- 'indices.get_mapping/11_basic_with_types/Get /{index}/_mapping/_all',
|
|
|
- 'indices.get_mapping/11_basic_with_types/Get /{index}/_mapping/{type*}',
|
|
|
- 'indices.get_mapping/11_basic_with_types/Get /{index}/_mapping/{type}',
|
|
|
+ // This test returns test_index.mappings:{} when {} was expected. difference between 20_missing_field and 21_missing_field_with_types?
|
|
|
+ 'indices.get_field_mapping/21_missing_field_with_types/Return empty object if field doesn\'t exist, but type and index do',
|
|
|
+ // The information about the type is not present in the index. hence it cannot know if the type exist or not.
|
|
|
+ 'indices.get_field_mapping/30_missing_type/Raise 404 when type doesn\'t exist',
|
|
|
+ // The information about the type is not present in the index. hence it cannot know if the type exist or not.
|
|
|
'indices.get_mapping/20_missing_type/Existent and non-existent type returns 404 and the existing type',
|
|
|
'indices.get_mapping/20_missing_type/Existent and non-existent types returns 404 and the existing type',
|
|
|
'indices.get_mapping/20_missing_type/No type matching pattern returns 404',
|
|
|
'indices.get_mapping/20_missing_type/Non-existent type returns 404',
|
|
|
'indices.get_mapping/20_missing_type/Type missing when no types exist',
|
|
|
+ //
|
|
|
'indices.open/10_basic/?wait_for_active_shards default is deprecated',
|
|
|
'indices.open/10_basic/?wait_for_active_shards=index-setting',
|
|
|
- 'indices.put_mapping/10_basic/Put mappings with explicit _doc type',
|
|
|
- 'indices.put_mapping/11_basic_with_types/Test Create and update mapping',
|
|
|
+
|
|
|
+ // The information about the type is not present in the index. hence it cannot know if the type was already used or not
|
|
|
'indices.put_mapping/20_mix_typeless_typeful/PUT mapping with _doc on an index that has types',
|
|
|
'indices.put_mapping/20_mix_typeless_typeful/PUT mapping with typeless API on an index that has types',
|
|
|
- 'indices.put_mapping/all_path_options_with_types/post a mapping with default analyzer twice',
|
|
|
- 'indices.put_mapping/all_path_options_with_types/put mapping in * index',
|
|
|
- 'indices.put_mapping/all_path_options_with_types/put mapping in _all index',
|
|
|
- 'indices.put_mapping/all_path_options_with_types/put mapping in list of indices',
|
|
|
- 'indices.put_mapping/all_path_options_with_types/put mapping in prefix* index',
|
|
|
- 'indices.put_mapping/all_path_options_with_types/put mapping with blank index',
|
|
|
- 'indices.put_mapping/all_path_options_with_types/put one mapping per index',
|
|
|
// there is a small distinction between empty mappings and no mappings at all. The code to implement this test was refactored #54003
|
|
|
// not fixing this in #70966
|
|
|
'indices.put_template/11_basic_with_types/Put template with empty mappings',
|
|
@@ -297,8 +266,94 @@ tasks.named("transformV7RestTests").configure({ task ->
|
|
|
task.replaceValueInMatch("nodes.\$node_id.roles.9", "remote_cluster_client", "node_info role test")
|
|
|
task.removeMatch("nodes.\$node_id.roles.10", "node_info role test")
|
|
|
task.replaceIsTrue("test_index.mappings.type_1", "test_index.mappings._doc")
|
|
|
- task.replaceIsFalse("test_index.mappings.type_1", "test_index.mappings._doc")
|
|
|
- task.replaceIsFalse("test-1.mappings.my_type", "test-1.mappings._doc")
|
|
|
+ //override for indices.get and indices.create
|
|
|
+ //task.replaceIsFalse("test_index.mappings.type_1", "test_index.mappings._doc")
|
|
|
+ //overrides for indices.create/20_mix_typeless_typeful
|
|
|
+ task.replaceIsFalse("test-1.mappings._doc","false", "Create a typed index while there is a typeless template")
|
|
|
+ task.replaceIsFalse("test-1.mappings._doc","false", "Create a typeless index while there is a typed template")
|
|
|
+
|
|
|
+ task.replaceIsTrue("test-1.mappings.my_type", "test-1.mappings._doc")
|
|
|
+ task.replaceIsTrue("test-1.mappings.my_type.properties.foo", "test-1.mappings._doc.properties.foo")
|
|
|
+ task.replaceIsTrue("test-1.mappings.my_type.properties.bar", "test-1.mappings._doc.properties.bar")
|
|
|
+
|
|
|
+ // overrides for indices.get_field_mapping
|
|
|
+ task.replaceKeyInLength("test_index.mappings.test_type.text.mapping.text.type",
|
|
|
+ "test_index.mappings._doc.text.mapping.text.type"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index.mappings.test_type.text.mapping.text.analyzer",
|
|
|
+ "test_index.mappings._doc.text.mapping.text.analyzer"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index.mappings.test_type.t1.full_name",
|
|
|
+ "test_index.mappings._doc.t1.full_name"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index.mappings.test_type.t2.full_name",
|
|
|
+ "test_index.mappings._doc.t2.full_name"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index.mappings.test_type.obj\\.t1.full_name",
|
|
|
+ "test_index.mappings._doc.obj\\.t1.full_name"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index.mappings.test_type.obj\\.i_t1.full_name",
|
|
|
+ "test_index.mappings._doc.obj\\.i_t1.full_name"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index.mappings.test_type.obj\\.i_t3.full_name",
|
|
|
+ "test_index.mappings._doc.obj\\.i_t3.full_name"
|
|
|
+ )
|
|
|
+ task.replaceKeyInLength("test_index.mappings.test_type",
|
|
|
+ "test_index.mappings._doc"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index_2.mappings.test_type_2.t1.full_name",
|
|
|
+ "test_index.mappings._doc.t1.full_name"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index_2.mappings.test_type_2.t2.full_name",
|
|
|
+ "test_index.mappings._doc.t2.full_name"
|
|
|
+ )
|
|
|
+ task.replaceKeyInLength("test_index_2.mappings.test_type_2",
|
|
|
+ "test_index.mappings._doc"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index.mappings.test_type.text.mapping.text.type",
|
|
|
+ "test_index.mappings._doc.text.mapping.text.type"
|
|
|
+ )
|
|
|
+ // overrides for indices.put_mapping/11_basic_with_types
|
|
|
+ task.replaceKeyInMatch("test_index.mappings.test_type.properties.text1.type",
|
|
|
+ "test_index.mappings._doc.properties.text1.type"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index.mappings.test_type.properties.text1.analyzer",
|
|
|
+ "test_index.mappings._doc.properties.text1.analyzer"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index.mappings.test_type.properties.text2.type",
|
|
|
+ "test_index.mappings._doc.properties.text2.type"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index.mappings.test_type.properties.text2.analyzer",
|
|
|
+ "test_index.mappings._doc.properties.text2.analyzer"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index.mappings.test_type.properties.subfield.properties.text3.type",
|
|
|
+ "test_index.mappings._doc.properties.subfield.properties.text3.type"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index.mappings.test_type.properties.text1.fields.text_raw.type",
|
|
|
+ "test_index.mappings._doc.properties.text1.fields.text_raw.type"
|
|
|
+ )
|
|
|
+ // overrides for indices.put_mapping/all_path_options_with_types
|
|
|
+ task.replaceKeyInMatch("test_index1.mappings.test_type.properties.text.type",
|
|
|
+ "test_index1.mappings._doc.properties.text.type"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index1.mappings.test_type.properties.text.analyzer",
|
|
|
+ "test_index1.mappings._doc.properties.text.analyzer"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index2.mappings.test_type.properties.text.type",
|
|
|
+ "test_index2.mappings._doc.properties.text.type"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("test_index2.mappings.test_type.properties.text.analyzer",
|
|
|
+ "test_index2.mappings._doc.properties.text.analyzer"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("foo.mappings.test_type.properties.text.type",
|
|
|
+ "foo.mappings._doc.properties.text.type"
|
|
|
+ )
|
|
|
+ task.replaceKeyInMatch("foo.mappings.test_type.properties.text.analyzer",
|
|
|
+ "foo.mappings._doc.properties.text.analyzer"
|
|
|
+ )
|
|
|
+ // overrides for indices.get_mapping
|
|
|
+ task.replaceIsTrue("test_1.mappings.doc", "test_1.mappings._doc")
|
|
|
+ task.replaceIsTrue("test_2.mappings.doc", "test_2.mappings._doc")
|
|
|
})
|
|
|
|
|
|
tasks.register('enforceYamlTestConvention').configure {
|