We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3648342 commit 7354265Copy full SHA for 7354265
api-spec-testing/wipe_cluster_8.rb
@@ -76,6 +76,7 @@ def wipe_cluster(client)
76
delete_all_ilm_policies(client) if @has_ilm
77
delete_all_follow_patterns(client) if @has_ccr
78
delete_all_node_shutdown_metadata(client)
79
+ wipe_calendars(client)
80
end
81
82
def ensure_no_initializing_shards(client)
@@ -380,6 +381,13 @@ def delete_all_node_shutdown_metadata(client)
380
381
client.shutdown.delete_node(node['node_id'])
382
383
384
+
385
+ def wipe_calendars(client)
386
+ calendars = client.ml.get_calendars(calendar_id: '_all')['calendars']
387
+ calendars.each do |calendar|
388
+ client.ml.delete_calendar(calendar_id: calendar['calendar_id'])
389
+ end
390
391
392
393
0 commit comments