Skip to content

Commit 6b7098a

Browse files
committed
[API] Test Runner: Deletes data frame analytics on wipe cluster (8.x)
1 parent 7354265 commit 6b7098a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

api-spec-testing/wipe_cluster_8.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def wipe_cluster(client)
7272
if platinum?
7373
clear_ml_jobs(client)
7474
clear_datafeeds(client)
75+
delete_data_frame_analytics(client)
7576
end
7677
delete_all_ilm_policies(client) if @has_ilm
7778
delete_all_follow_patterns(client) if @has_ccr
@@ -388,6 +389,14 @@ def wipe_calendars(client)
388389
client.ml.delete_calendar(calendar_id: calendar['calendar_id'])
389390
end
390391
end
392+
393+
def delete_data_frame_analytics(client)
394+
dfs = client.ml.get_data_frame_analytics
395+
396+
dfs['data_frame_analytics'].each do |df|
397+
client.ml.delete_data_frame_analytics(id: df['id'], force: true)
398+
end
399+
end
391400
end
392401
end
393402
end

0 commit comments

Comments
 (0)