Skip to content

Commit 8601fd3

Browse files
committedApr 5, 2023
[API] Test Runner: Updates templates and policies in wipe cluster
1 parent 42aa48c commit 8601fd3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
 

‎elasticsearch-api/api-spec-testing/wipe_cluster.rb

+7-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ module WipeCluster
2727
'watch-history-ilm-policy-16', 'ml-size-based-ilm-policy', 'logs', 'metrics', 'synthetics',
2828
'7-days-default', '30-days-default', '90-days-default', '180-days-default',
2929
'365-days-default', '.fleet-actions-results-ilm-policy', '.fleet-file-data-ilm-policy',
30-
'.fleet-files-ilm-policy', '.deprecation-indexing-ilm-policy', '.monitoring-8-ilm-policy'
30+
'.fleet-files-ilm-policy', '.deprecation-indexing-ilm-policy', '.monitoring-8-ilm-policy',
31+
'behavioral_analytics-events-default_policy'
3132
].freeze
3233

3334
PLATINUM_TEMPLATES = [
@@ -250,7 +251,11 @@ def wipe_all_templates(client)
250251
end
251252

252253
def platinum_template?(template)
253-
platinum_prefixes = ['.monitoring', '.watch', '.triggered-watches', '.data-frame', '.ml-', '.transform', '.deprecation', 'data-streams-mappings', '.fleet'].freeze
254+
platinum_prefixes = [
255+
'.monitoring', '.watch', '.triggered-watches', '.data-frame', '.ml-',
256+
'.transform', '.deprecation', 'data-streams-mappings', '.fleet',
257+
'behavioral_analytics-'
258+
].freeze
254259
return true if template.start_with?(*platinum_prefixes)
255260

256261
PLATINUM_TEMPLATES.include? template

0 commit comments

Comments
 (0)
Please sign in to comment.