Skip to content

Commit

Permalink
Excluding ilm history from a data stream query in a yaml rest test (e…
Browse files Browse the repository at this point in the history
…lastic#99932)

In elastic#99837 we stopped setting `indices.lifecycle.history_index_enabled`
to false in the data streams yaml rest tests. I missed a place where we
do a wildcard datastream query that can include hidden indices. This PR
corrects that mistake. I searched all the .yml files and couldn't find
any other places we do a wildcard query that could match the ilm history
index. Closes elastic#99913 Closes elastic#99889
  • Loading branch information
masseyke authored Sep 26, 2023
1 parent c3f164a commit 09f999c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ setup:

- do:
indices.get_data_stream:
name: "*"
name: ['*', '-ilm-history*']
expand_wildcards: hidden
- length: { data_streams: 2 }
- match: { data_streams.0.name: .hidden-data-stream }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ setup:

- do:
indices.resolve_index:
name: ['*','-.ml*', '-.ds-ilm-history*']
name: ['*','-.ml*', '-.ds-ilm-history*', '-ilm-history*']
expand_wildcards: [all]

- match: {indices.0.name: "/\\.ds-simple-data-stream1-(\\d{4}\\.\\d{2}\\.\\d{2}-)?000001/"}
Expand Down

0 comments on commit 09f999c

Please sign in to comment.