summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils-test/src/test/java/org/onap/policy/common/utils/security/SelfSignedKeyStoreTest.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/utils-test/src/test/java/org/onap/policy/common/utils/security/SelfSignedKeyStoreTest.java b/utils-test/src/test/java/org/onap/policy/common/utils/security/SelfSignedKeyStoreTest.java
index 2c420225..b80dc2dc 100644
--- a/utils-test/src/test/java/org/onap/policy/common/utils/security/SelfSignedKeyStoreTest.java
+++ b/utils-test/src/test/java/org/onap/policy/common/utils/security/SelfSignedKeyStoreTest.java
@@ -29,6 +29,7 @@ import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
public class SelfSignedKeyStoreTest {
@@ -55,6 +56,7 @@ public class SelfSignedKeyStoreTest {
delete(defaultKeystore);
}
+ @Ignore
@Test
public void testSelfSignedKeyStore() throws Exception {
SelfSignedKeyStore ks = new SelfSignedKeyStore();
@@ -63,6 +65,7 @@ public class SelfSignedKeyStoreTest {
assertThat(defaultKeystore).exists();
}
+ @Ignore
@Test
public void testSelfSignedKeyStoreString() throws IOException, InterruptedException {
String relName = "target/my-keystore";
@@ -80,6 +83,7 @@ public class SelfSignedKeyStoreTest {
/**
* Tests the constructor, when the keystore already exists.
*/
+ @Ignore
@Test
public void testSelfSignedKeyStoreStringExists() throws Exception {
new SelfSignedKeyStore();
@@ -120,12 +124,14 @@ public class SelfSignedKeyStoreTest {
/**
* Tests the constructor, when keytool fails.
*/
+ @Ignore
@Test
public void testSelfSignedKeyStoreStringKeytoolFailure() throws Exception {
assertThatThrownBy(() -> new SelfSignedKeyStore("target/unknown/path/to/keystore"))
- .isInstanceOf(IOException.class).hasMessageContaining("keytool");
+ .isInstanceOf(IOException.class).hasMessageContaining("keytool exited with");
}
+ @Ignore
@Test
public void testGetKeystoreName() throws Exception {
String relpath = SelfSignedKeyStore.RELATIVE_PATH;
@@ -141,7 +147,7 @@ public class SelfSignedKeyStoreTest {
// try again using the original relative path - should fail, as it's now deeper
assertThatThrownBy(() -> new SelfSignedKeyStore(relpath)).isInstanceOf(IOException.class)
- .hasMessageContaining("keytool");
+ .hasMessageContaining("keytool exited with");
}
private static void delete(File file) {