Skip to content

Commit

Permalink
[Rest Api Compatibility] Move won't fix tests from block list (#73912)
Browse files Browse the repository at this point in the history
block list at the moment contains a lot of tests that we already identified that won't be fixed.
This commit moves them out of the main block list so that it is easier to count progress.
  • Loading branch information
pgomulka committed Jun 14, 2021
1 parent 98169e8 commit 30b14f1
Showing 1 changed file with 42 additions and 95 deletions.
137 changes: 42 additions & 95 deletions rest-api-spec/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,106 +28,52 @@ testClusters.all {

tasks.named("test").configure { enabled = false }
tasks.named("jarHell").configure { enabled = false }

def v7compatiblityNotSupportedTests = {
return [
// Cat API are meant to be consumed by humans, so will not be supported by Compatible REST API
'cat*/*/*',
// type information about the type is removed and not passed down. The logic to check for this is also removed.
'delete/70_mix_typeless_typeful/DELETE with typeless API on an index that has types',
// WILL NOT BE FIXED - failing due to not recognising missing type (the type path param is ignored)
'get/100_mix_typeless_typeful/GET with typeless API on an index that has types',
// 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',
//
// 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',
//
// 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',
// there is a small distinction between empty mappings and no mappings at all. The code to implement this test was refactored #54003
// field search on _type field- not implementing. The data for _type is considered incorrect in this search
'search/160_exists_query/Test exists query on _type field',
//type information is not stored, hence the the index will be found
'termvectors/50_mix_typeless_typeful/Term vectors with typeless API on an index that has types',
// mget - these use cases are no longer valid, because we always default to _doc.
// This mean test cases where there is assertion on not finging by type won't work
'mget/11_default_index_type/Default index/type',
'mget/16_basic_with_types/Basic multi-get',
// asserting about type not found won't work as we ignore the type information
'explain/40_mix_typeless_typeful/Explain with typeless API on an index that has types',
]
}
tasks.named("yamlRestCompatTest").configure {
onlyIf {
// Skip these tests on Windows since the blacklist exceeds Windows CLI limits
OS.current() != OS.WINDOWS
}

systemProperty 'tests.rest.blacklist', [
'cat.aliases/10_basic/Alias against closed index',
'cat.aliases/10_basic/Alias name',
'cat.aliases/10_basic/Alias sorting',
'cat.aliases/10_basic/Column headers',
'cat.aliases/10_basic/Complex alias',
'cat.aliases/10_basic/Empty cluster',
'cat.aliases/10_basic/Multiple alias names',
'cat.aliases/10_basic/Select columns',
'cat.aliases/10_basic/Simple alias',
'cat.aliases/40_hidden/Test cat aliases output with a hidden index with a hidden alias',
'cat.aliases/40_hidden/Test cat aliases output with a hidden index with a visible alias',
'cat.aliases/40_hidden/Test cat aliases output with a visible index with a hidden alias',
'cat.allocation/10_basic/All Nodes',
'cat.allocation/10_basic/Bytes',
'cat.allocation/10_basic/Column headers',
'cat.allocation/10_basic/Empty cluster',
'cat.allocation/10_basic/Node ID',
'cat.allocation/10_basic/One index',
'cat.allocation/10_basic/Select columns',
'cat.count/10_basic/Test cat count output',
'cat.fielddata/10_basic/Test cat fielddata output',
'cat.health/10_basic/Empty cluster',
'cat.health/10_basic/With ts parameter',
'cat.indices/10_basic/Test cat indices output',
'cat.indices/10_basic/Test cat indices output (no indices)',
'cat.indices/10_basic/Test cat indices output for closed index',
'cat.indices/10_basic/Test cat indices sort',
'cat.indices/10_basic/Test cat indices using health status',
'cat.indices/10_basic/Test cat indices using wildcards',
'cat.indices/20_hidden/Test cat indices output for dot-hidden index and dot-prefixed pattern',
'cat.indices/20_hidden/Test cat indices output for hidden index',
'cat.indices/20_hidden/Test cat indices output with a hidden index with a hidden alias',
'cat.indices/20_hidden/Test cat indices output with a hidden index with a visible alias',
'cat.indices/20_hidden/Test cat indices output with a hidden index, dot-hidden alias and dot pattern',
'cat.nodeattrs/10_basic/Test cat nodes attrs output',
'cat.nodes/10_basic/Additional disk information',
'cat.nodes/10_basic/Test cat nodes output',
'cat.nodes/10_basic/Test cat nodes output with full_id set',
'cat.recovery/10_basic/Test cat recovery output',
'cat.recovery/10_basic/Test cat recovery output for closed index',
'cat.repositories/10_basic/Test cat repositories output',
'cat.repositories/10_basic/Test cat repositories sort',
'cat.segments/10_basic/Test cat segments output',
'cat.segments/10_basic/Test cat segments using wildcards',
'cat.shards/10_basic/Help',
'cat.shards/10_basic/Test cat shards output',
'cat.shards/10_basic/Test cat shards sort',
'cat.shards/10_basic/Test cat shards using wildcards',
'cat.snapshots/10_basic/Help',
'cat.snapshots/10_basic/Test cat snapshots output',
'cat.tasks/10_basic/Test cat tasks output',
'cat.tasks/10_basic/Test cat tasks output with X-Opaque-Id',
'cat.templates/10_basic/Column headers',
'cat.templates/10_basic/Filtered templates',
'cat.templates/10_basic/Mixture of legacy and composable templates',
'cat.templates/10_basic/Normal templates',
'cat.templates/10_basic/Select columns',
'cat.thread_pool/10_basic/Test cat thread_pool output',
// type information about the type is removed and not passed down. The logic to check for this is also removed.
'delete/70_mix_typeless_typeful/DELETE with typeless API on an index that has types',
// WILL NOT BE FIXED - failing due to not recognising missing type (the type path param is ignored)
'get/100_mix_typeless_typeful/GET with typeless API on an index that has types',
// 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',
//
// 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',
//
// 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',
// there is a small distinction between empty mappings and no mappings at all. The code to implement this test was refactored #54003
// field search on _type field- not implementing. The data for _type is considered incorrect in this search
'search/160_exists_query/Test exists query on _type field',
//type information is not stored, hence the the index will be found
'termvectors/50_mix_typeless_typeful/Term vectors with typeless API on an index that has types',
// mget - these use cases are no longer valid, because we always default to _doc.
// This mean test cases where there is assertion on not finging by type won't work
'mget/11_default_index_type/Default index/type',
'mget/16_basic_with_types/Basic multi-get',
// asserting about type not found won't work as we ignore the type information
'explain/40_mix_typeless_typeful/Explain with typeless API on an index that has types',
// 89 - 15 = 74 tests won't be fixed
systemProperty 'tests.rest.blacklist', ([
'cluster.voting_config_exclusions/10_basic/Throw exception when adding voting config exclusion and specifying both node_ids and node_names',
'cluster.voting_config_exclusions/10_basic/Throw exception when adding voting config exclusion without specifying nodes',
'count/11_basic_with_types/count body without query element',
Expand Down Expand Up @@ -192,7 +138,8 @@ tasks.named("yamlRestCompatTest").configure {
'snapshot.get/10_basic/Get snapshot info with metadata',
'snapshot.get/10_basic/Get snapshot info with index details',
'suggest/20_completion/Suggestions with source should work'
].join(',')
] + v7compatiblityNotSupportedTests())
.join(',')
}

tasks.named("transformV7RestTests").configure({ task ->
Expand Down

0 comments on commit 30b14f1

Please sign in to comment.