Merge branch 'stable-5.6' into stable-5.7
* stable-5.6: [test] Create keystore with the keytool of the running JDK ReachabilityCheckerTestCase: fix reachable from self test case Change-Id: I1f6b4fc26f6ee6f22cc0aacd032c1e73ba246dbc Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
This commit is contained in:
commit
ae56213210
|
@ -181,9 +181,12 @@ private SslContextFactory createTestSslContextFactory(String hostName) {
|
||||||
tmpDir.deleteOnExit();
|
tmpDir.deleteOnExit();
|
||||||
makePrivate(tmpDir);
|
makePrivate(tmpDir);
|
||||||
File keyStore = new File(tmpDir, "keystore.jks");
|
File keyStore = new File(tmpDir, "keystore.jks");
|
||||||
|
File keytool = new File(
|
||||||
|
new File(new File(System.getProperty("java.home")), "bin"),
|
||||||
|
"keytool");
|
||||||
Runtime.getRuntime().exec(
|
Runtime.getRuntime().exec(
|
||||||
new String[] {
|
new String[] {
|
||||||
"keytool", //
|
keytool.getAbsolutePath(), //
|
||||||
"-keystore", keyStore.getAbsolutePath(), //
|
"-keystore", keyStore.getAbsolutePath(), //
|
||||||
"-storepass", keyPassword,
|
"-storepass", keyPassword,
|
||||||
"-alias", hostName, //
|
"-alias", hostName, //
|
||||||
|
|
|
@ -55,7 +55,7 @@ public void reachable() throws Exception {
|
||||||
assertReachable("reachable from another tip",
|
assertReachable("reachable from another tip",
|
||||||
checker.areAllReachable(Arrays.asList(a), Stream.of(b2)));
|
checker.areAllReachable(Arrays.asList(a), Stream.of(b2)));
|
||||||
assertReachable("reachable from itself",
|
assertReachable("reachable from itself",
|
||||||
checker.areAllReachable(Arrays.asList(a), Stream.of(b2)));
|
checker.areAllReachable(Arrays.asList(a), Stream.of(a)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue