Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ELY-2070] CredentialStore is not able to get data from credential storage in file on IBM JDK 8 #1568

Merged
merged 1 commit into from Sep 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -52,7 +52,7 @@
* @author Hynek Švábek <hsvabek@redhat.com>
*/
public class CredentialStoreCommandTest extends AbstractCommandTest {

private static final boolean IS_IBM = System.getProperty("java.vendor").contains("IBM");
public static final String RSA_ALGORITHM = "RSA";
public static final String DSA_ALGORITHM = "DSA";
public static final String EC_ALGORITHM = "EC";
Expand Down Expand Up @@ -316,6 +316,7 @@ public void testGenerateKeyPairDSA() throws CredentialStoreException {

@Test
public void testGenerateKeyPairECDSA() throws CredentialStoreException {
Assume.assumeFalse(IS_IBM); //Don't run if using IBM JDK https://issues.redhat.com/browse/ELY-2214
String storageLocation = getStoragePathForNewFile();
String storagePassword = "cspassword";
String aliasName = "testalias";
Expand Down Expand Up @@ -353,6 +354,7 @@ public void testExportPublicKey() {

@Test
public void testImportOpenSSHKeyPairFromFile() throws CredentialStoreException {
Assume.assumeFalse(IS_IBM); //Don't run if using IBM JDK https://issues.redhat.com/browse/ELY-2214
String storageLocation = getStoragePathForNewFile();
String storagePassword = "cspassword";
String aliasName = "testalias";
Expand All @@ -372,9 +374,9 @@ public void testImportOpenSSHKeyPairFromFile() throws CredentialStoreException {
Assert.assertEquals(EC_ALGORITHM, keyPair.getPrivate().getAlgorithm());
Assert.assertEquals(EC_ALGORITHM, keyPair.getPublic().getAlgorithm());
}

@Test
public void testImportPKCSKeyPairFromFile() throws CredentialStoreException {
Assume.assumeFalse(IS_IBM); //Don't run if using IBM JDK https://issues.redhat.com/browse/ELY-2214
String storageLocation = getStoragePathForNewFile();
String storagePassword = "cspassword";
String aliasName = "testalias";
Expand All @@ -399,6 +401,7 @@ public void testImportPKCSKeyPairFromFile() throws CredentialStoreException {

@Test
public void testImportOpenSSHKeyPairFromString() throws CredentialStoreException {
Assume.assumeFalse(IS_IBM); //Don't run if using IBM JDK https://issues.redhat.com/browse/ELY-2214
String storageLocation = getStoragePathForNewFile();
String storagePassword = "cspassword";
String aliasName = "testalias";
Expand Down Expand Up @@ -429,6 +432,7 @@ public void testImportOpenSSHKeyPairFromString() throws CredentialStoreException

@Test
public void testImportPKCSKeyPairFromString() throws CredentialStoreException {
Assume.assumeFalse(IS_IBM); //Don't run if using IBM JDK https://issues.redhat.com/browse/ELY-2214
String storageLocation = getStoragePathForNewFile();
String storagePassword = "cspassword";
String aliasName = "testalias";
Expand Down