Skip to content

Commit 26344f5

Browse files
committed
[CI] Skip specific component templates in cleanup
1 parent f347192 commit 26344f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

api-spec-testing/test_file.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,11 @@ def wipe_cluster(client)
194194
else
195195
client.indices.delete_template(name: '*')
196196
client.indices.delete_index_template(name: '*')
197-
client.cluster.delete_component_template(name: '*')
197+
client.cluster.get_component_template['component_templates'].each do |template|
198+
next if xpack_template? template['name']
199+
200+
client.cluster.delete_component_template(name: template['name'], ignore: 404)
201+
end
198202
end
199203
clear_cluster_settings(client)
200204
return unless xpack?

0 commit comments

Comments
 (0)