Handle node validation exception when starting
Node#start can now throw a checked NodeValidationException; this commit adapts x-plugins for this new API. Relates elastic/elasticsearch#3381 Original commit: elastic/x-pack-elasticsearch@660c5ab8c1
This commit is contained in:
parent
20fce3280e
commit
9baf88dfaa
|
@ -14,6 +14,7 @@ import org.elasticsearch.common.unit.TimeValue;
|
|||
import org.elasticsearch.discovery.MasterNotDiscoveredException;
|
||||
import org.elasticsearch.node.MockNode;
|
||||
import org.elasticsearch.node.Node;
|
||||
import org.elasticsearch.node.NodeValidationException;
|
||||
import org.elasticsearch.test.SecurityIntegTestCase;
|
||||
import org.elasticsearch.transport.Transport;
|
||||
import org.elasticsearch.xpack.XPackPlugin;
|
||||
|
@ -78,7 +79,7 @@ public class ServerTransportFilterIntegrationTests extends SecurityIntegTestCase
|
|||
.build();
|
||||
}
|
||||
|
||||
public void testThatConnectionToServerTypeConnectionWorks() throws IOException {
|
||||
public void testThatConnectionToServerTypeConnectionWorks() throws IOException, NodeValidationException {
|
||||
Path home = createTempDir();
|
||||
Path xpackConf = home.resolve("config").resolve(XPackPlugin.NAME);
|
||||
Files.createDirectories(xpackConf);
|
||||
|
@ -109,7 +110,7 @@ public class ServerTransportFilterIntegrationTests extends SecurityIntegTestCase
|
|||
}
|
||||
}
|
||||
|
||||
public void testThatConnectionToClientTypeConnectionIsRejected() throws IOException {
|
||||
public void testThatConnectionToClientTypeConnectionIsRejected() throws IOException, NodeValidationException {
|
||||
Path home = createTempDir();
|
||||
Path xpackConf = home.resolve("config").resolve(XPackPlugin.NAME);
|
||||
Files.createDirectories(xpackConf);
|
||||
|
|
Loading…
Reference in New Issue