Fix SecurityTribeIT to properly add mock plugins in tribe node
Original commit: elastic/x-pack-elasticsearch@e82c39c5c4
This commit is contained in:
parent
966600fc90
commit
9bfd1721ca
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue