Fix test compilation failures
Original commit: elastic/x-pack-elasticsearch@303df9b9dd
This commit is contained in:
parent
d27b9b4b41
commit
9c0ae6411c
|
@ -23,6 +23,7 @@ import org.elasticsearch.transport.Transport;
|
||||||
import org.elasticsearch.xpack.XPackPlugin;
|
import org.elasticsearch.xpack.XPackPlugin;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
|
@ -77,7 +78,7 @@ public class ServerTransportFilterIntegrationTests extends ShieldIntegTestCase {
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testThatConnectionToServerTypeConnectionWorks() {
|
public void testThatConnectionToServerTypeConnectionWorks() throws IOException {
|
||||||
Settings dataNodeSettings = internalCluster().getDataNodeInstance(Settings.class);
|
Settings dataNodeSettings = internalCluster().getDataNodeInstance(Settings.class);
|
||||||
String systemKeyFile = dataNodeSettings.get(InternalCryptoService.FILE_SETTING);
|
String systemKeyFile = dataNodeSettings.get(InternalCryptoService.FILE_SETTING);
|
||||||
|
|
||||||
|
@ -109,7 +110,7 @@ public class ServerTransportFilterIntegrationTests extends ShieldIntegTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testThatConnectionToClientTypeConnectionIsRejected() {
|
public void testThatConnectionToClientTypeConnectionIsRejected() throws IOException {
|
||||||
Settings dataNodeSettings = internalCluster().getDataNodeInstance(Settings.class);
|
Settings dataNodeSettings = internalCluster().getDataNodeInstance(Settings.class);
|
||||||
String systemKeyFile = dataNodeSettings.get(InternalCryptoService.FILE_SETTING);
|
String systemKeyFile = dataNodeSettings.get(InternalCryptoService.FILE_SETTING);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue