Tests: Remove randomized unsupported code upgrading two indices at once
Original commit: elastic/x-pack-elasticsearch@f49ec64b41379504664d6d02d4b73b939bcccbbe
@@ -236,13 +236,6 @@ public class WatchBackwardsCompatibilityIT extends ESRestTestCase {
logger.info("stopped watcher manually before starting upgrade");
}
- if (randomBoolean() &&
- "upgrade".equals(watchIndexUpgradeRequired) && "upgrade".equals(triggeredWatchIndexUpgradeRequired)) {
- Response upgradeResponse =
- client.performRequest("POST", "_xpack/migration/upgrade/.watches,.triggered_watches", params);
- logger.info("Upgrade .watches/.triggered_watches response is: [{}]",
- EntityUtils.toString(upgradeResponse.getEntity()));
- } else {
if ("upgrade".equals(watchIndexUpgradeRequired)) {
Response upgradeResponse = client.performRequest("POST", "_xpack/migration/upgrade/.watches", params);
logger.info("Upgrade .watches response is: [{}]", EntityUtils.toString(upgradeResponse.getEntity()));
@@ -252,7 +245,6 @@ public class WatchBackwardsCompatibilityIT extends ESRestTestCase {
Response upgradeResponse = client.performRequest("POST", "_xpack/migration/upgrade/.triggered_watches", params);
logger.info("Upgrade .triggered_watches response is: [{}]", EntityUtils.toString(upgradeResponse.getEntity()));
}
- }
// show templates after upgrade
executeAgainstMasterNode(c -> {
