Fix SecurityTribeIT to properly add mock plugins in tribe node

Original commit: elastic/x-pack-elasticsearch@e82c39c5c4
This commit is contained in:
Boaz Leskes 2016-10-18 22:00:03 +02:00
parent 966600fc90
commit 9bfd1721ca
1 changed files with 3 additions and 3 deletions

View File

@ -158,9 +158,9 @@ public class SecurityTribeIT extends NativeRealmIntegTestCase {
.put("node.name", "tribe_node") // make sure we can identify threads from this node
.build();
final Collection<Class<? extends Plugin>> plugins = new ArrayList<>(nodePlugins());
plugins.add(MockZenPing.TestPlugin.class);
tribeNode = new MockNode(merged, plugins).start();
final List<Class<? extends Plugin>> classpathPlugins = new ArrayList<>(nodePlugins());
classpathPlugins.addAll(getMockPlugins());
tribeNode = new MockNode(merged, classpathPlugins).start();
tribeClient = getClientWrapper().apply(tribeNode.client());
}