[TEST] blacklist get aliases test against closed indices
Shield expands wildcards to concrete names (aliases or indices) before each request gets executed in es core. It never resolves aliases to concrete indices though, as permissions may be set against aliases rather than indices. During this resolution, it also looks at the state of the indices and the current indices options (expand_wildcards) to expand only to indices with the relevant state. When it comes to aliases though, they may point to multiple indices each one having a different state, so it always expands ignoring expand_wildcards. At that point the request will contain the explicit name of the alias, no wildcards, thus the expand_wildcards option will have no effect in core. ignore_unavailable could be used instead when interacting with shield, which would affect how aliases are resolved to multiple indices. In this case we can only blacklist the test in shield, as it will return both the closed index and the open one. Original commit: elastic/x-pack-elasticsearch@54c11dfc31
This commit is contained in:
parent
af60f45c4a
commit
389b2be08a
|
@ -27,7 +27,8 @@ integTest {
|
|||
'indices.recovery/10_basic/Indices recovery test*',
|
||||
'indices.shard_stores/10_basic/no indices test',
|
||||
'cat.nodeattrs/10_basic/Test cat nodes attrs output',
|
||||
'bulk/40_fields/Fields'].join(',')
|
||||
'bulk/40_fields/Fields',
|
||||
'indices.get_alias/10_basic/Get alias against closed indices'].join(',')
|
||||
|
||||
cluster {
|
||||
plugin 'x-pack', project(':x-plugins:elasticsearch:x-pack')
|
||||
|
|
Loading…
Reference in New Issue