From e849674f5ce3b694ba3138c4fc2da2ef16a9b550 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Wed, 13 Jan 2016 23:11:35 +0100 Subject: [PATCH] add required plugin to PrimaryAllocationIT --- .../cluster/routing/PrimaryAllocationIT.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/src/test/java/org/elasticsearch/cluster/routing/PrimaryAllocationIT.java b/core/src/test/java/org/elasticsearch/cluster/routing/PrimaryAllocationIT.java index 340fdcc3c99..dc468ded962 100644 --- a/core/src/test/java/org/elasticsearch/cluster/routing/PrimaryAllocationIT.java +++ b/core/src/test/java/org/elasticsearch/cluster/routing/PrimaryAllocationIT.java @@ -22,11 +22,14 @@ package org.elasticsearch.cluster.routing; import org.elasticsearch.cluster.ClusterState; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.gateway.GatewayAllocator; +import org.elasticsearch.plugins.Plugin; import org.elasticsearch.test.ESIntegTestCase; import org.elasticsearch.test.InternalTestCluster; import org.elasticsearch.test.disruption.NetworkDisconnectPartition; +import org.elasticsearch.test.transport.MockTransportService; import java.util.Arrays; +import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.List; @@ -41,6 +44,12 @@ import static org.hamcrest.Matchers.equalTo; @ESIntegTestCase.SuppressLocalMode public class PrimaryAllocationIT extends ESIntegTestCase { + @Override + protected Collection> nodePlugins() { + // disruption tests need MockTransportService + return pluginList(MockTransportService.TestPlugin.class); + } + public void testDoNotAllowStaleReplicasToBePromotedToPrimary() throws Exception { logger.info("--> starting 3 nodes, 1 master, 2 data"); String master = internalCluster().startMasterOnlyNode(Settings.EMPTY);