Skip to content

Commit 6ebc99e

Browse files
committed
[API] Test Runner: adds source type snapshot to delete_snapshots on wipe cluster
1 parent 59fdade commit 6ebc99e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def wipe_snapshots(client)
187187
break if repositories.empty?
188188

189189
repositories.each_key do |repository|
190-
if repositories[repository]['type'] == 'fs'
190+
if ['fs', 'source'].include? repositories[repository]['type']
191191
response = client.snapshot.get(repository: repository, snapshot: '_all', ignore_unavailable: true)
192192
response['snapshots'].each do |snapshot|
193193
if snapshot['state'] != 'SUCCESS'

0 commit comments

Comments
 (0)