Skip to content

Commit 6858b64

Browse files
committed
Test Runner: expand_wildcards on xpack indices clean up
1 parent e7ef22b commit 6858b64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api-spec-testing/test_file.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ def clear_indices(client)
225225
end
226226

227227
def clear_indices_xpack(client)
228-
indices = client.indices.get(index: '_all').keys.reject do |i|
229-
i.start_with?('.security') || i.start_with?('.watches')
228+
indices = client.indices.get(index: '_all', expand_wildcards: 'all').keys.reject do |i|
229+
i.start_with?('.security') || i.start_with?('.watches') || i.start_with?('.ds-')
230230
end
231231
indices.each do |index|
232232
client.indices.delete_alias(index: index, name: '*', ignore: 404)

0 commit comments

Comments
 (0)