From 26c5766a0da84538285664b57a0113f691d9904d Mon Sep 17 00:00:00 2001 From: Alexander Reelsen Date: Fri, 11 Aug 2017 14:11:50 +0200 Subject: [PATCH] Tests: Do not delete index templates on bwc tests In order to run the bwc tests there is no need to delete the index template at the end of a test run which results in recreation of those due to all the cluster state listener. Relates elastic/x-pack-elasticsearch#2228 Original commit: elastic/x-pack-elasticsearch@702d1c61edeb94ae4061c1c4a2efcb96e2af0f63 --- .../upgrades/WatchBackwardsCompatibilityIT.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/WatchBackwardsCompatibilityIT.java b/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/WatchBackwardsCompatibilityIT.java index 4ef57a77d0b..2ca4eb4fd5c 100644 --- a/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/WatchBackwardsCompatibilityIT.java +++ b/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/WatchBackwardsCompatibilityIT.java @@ -121,6 +121,11 @@ public class WatchBackwardsCompatibilityIT extends ESRestTestCase { return true; } + @Override + protected boolean preserveTemplatesUponCompletion() { + return true; + } + @Override protected Settings restClientSettings() { String token = "Basic " + Base64.getEncoder()