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)
7979 # clear_ml_filters(client)
8080 # clear_tasks(client)
8181 # clear_transforms(client)
82+ wipe_calendars ( client )
8283 end
8384
8485 def ensure_no_initializing_shards ( client )
8586 client . cluster . health ( wait_for_no_initializing_shards : true , timeout : '70s' , level : 'shards' )
8687 end
8788
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+
8896 def check_for_unexpectedly_recreated_objects ( client )
8997 unexpected_ilm_policies = client . index_lifecycle_management . get_lifecycle
9098 unexpected_ilm_policies . reject! { |k , _ | PRESERVE_ILM_POLICY_IDS . include? k }
You can’t perform that action at this time.
0 commit comments