File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
elasticsearch-api/api-spec-testing Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -79,12 +79,20 @@ def wipe_cluster(client)
79
79
# clear_ml_filters(client)
80
80
# clear_tasks(client)
81
81
# clear_transforms(client)
82
+ wipe_calendars ( client )
82
83
end
83
84
84
85
def ensure_no_initializing_shards ( client )
85
86
client . cluster . health ( wait_for_no_initializing_shards : true , timeout : '70s' , level : 'shards' )
86
87
end
87
88
89
+ def wipe_calendars ( client )
90
+ calendars = client . ml . get_calendars ( calendar_id : '_all' ) . body [ 'calendars' ]
91
+ calendars . each do |calendar |
92
+ client . ml . delete_calendar ( calendar_id : calendar [ 'calendar_id' ] )
93
+ end
94
+ end
95
+
88
96
def check_for_unexpectedly_recreated_objects ( client )
89
97
unexpected_ilm_policies = client . index_lifecycle_management . get_lifecycle
90
98
unexpected_ilm_policies . reject! { |k , _ | PRESERVE_ILM_POLICY_IDS . include? k }
You can’t perform that action at this time.
0 commit comments