Skip to content

Commit dc70b62

Browse files
committed
[API] Tests Runner - Always wipe datastreams, renames cleanup method
1 parent efd8ba5 commit dc70b62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def wipe_cluster(client)
187187
wipe_searchable_snapshot_indices(client)
188188
end
189189
clear_snapshots_and_repositories(client)
190-
clear_datastreams(client) if platinum?
190+
wipe_datastreams(client)
191191
clear_indices(client)
192192
if platinum?
193193
clear_templates_platinum(client)
@@ -420,7 +420,7 @@ def clear_transforms(client)
420420
end
421421
end
422422

423-
def clear_datastreams(client)
423+
def wipe_datastreams(client)
424424
datastreams = client.indices.get_data_stream(name: '*', expand_wildcards: 'all')
425425
datastreams['data_streams'].each do |datastream|
426426
client.indices.delete_data_stream(name: datastream['name'], expand_wildcards: 'all')

0 commit comments

Comments
 (0)