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 f347192 commit 26344f5Copy full SHA for 26344f5
api-spec-testing/test_file.rb
@@ -194,7 +194,11 @@ def wipe_cluster(client)
194
else
195
client.indices.delete_template(name: '*')
196
client.indices.delete_index_template(name: '*')
197
- client.cluster.delete_component_template(name: '*')
+ 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
202
end
203
clear_cluster_settings(client)
204
return unless xpack?
0 commit comments