Skip to content

Commit fa99159

Browse files
committed
[API] Test Runner: Wipe Cluster - renames wiping indices
1 parent ada3fab commit fa99159

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

elasticsearch-api/api-spec-testing/wipe_cluster.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def self.run(client)
4949
end
5050
clear_snapshots_and_repositories(client)
5151
wipe_datastreams(client)
52-
clear_indices(client)
52+
wipe_all_indices(client)
5353
if platinum?
5454
clear_templates_platinum(client)
5555
clear_datafeeds(client)
@@ -270,7 +270,7 @@ def clear_snapshots_and_repositories(client)
270270
raise e unless response.body['error']['root_cause'].first['reason'].match(regexp)
271271

272272
# Try again after clearing indices if we get a 500 error from delete repository
273-
clear_indices(client)
273+
wipe_all_indices(client)
274274
client.snapshot.delete_repository(repository: repository, ignore: 404)
275275
end
276276
end
@@ -302,7 +302,7 @@ def clear_ml_filters(client)
302302
end
303303
end
304304

305-
def clear_indices(client)
305+
def wipe_all_indices(client)
306306
client.indices.delete(index: '*,-.ds-ilm-history-*', expand_wildcards: 'open,closed,hidden', ignore: 404)
307307
end
308308

0 commit comments

Comments
 (0)