Package org.soulwing.s2ks.aws
Class AwsKeyPairStorageTest
- java.lang.Object
-
- org.soulwing.s2ks.aws.AwsKeyPairStorageTest
-
public class AwsKeyPairStorageTest extends java.lang.Object
Unit tests forAwsKeyPairStorage
.- Author:
- Carl Harris
-
-
Field Summary
Fields Modifier and Type Field Description org.jmock.integration.junit4.JUnitRuleMockery
context
org.junit.rules.ExpectedException
expectedException
-
Constructor Summary
Constructors Constructor Description AwsKeyPairStorageTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
static void
setUpBeforeClass()
void
testFindCertificateChain()
void
testFindCertificateChainWhenCertificateIOException()
void
testFindCertificateChainWhenCertNotFound()
void
testFindCertificateChainWhenNoCacerts()
void
testFindCertificateChainWhenS3Exception()
void
testFullIntegration()
void
testRetrieve()
void
testRetrieveWhenPrivateKeyIOException()
void
testRetrieveWhenS3Exception()
void
testRetrieveWhenSecretContainsNoPassword()
void
testRetrieveWhenSecretsManagerException()
-
-
-
Method Detail
-
setUpBeforeClass
public static void setUpBeforeClass() throws java.lang.Exception
- Throws:
java.lang.Exception
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRetrieve
public void testRetrieve() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRetrieveWhenPrivateKeyIOException
public void testRetrieveWhenPrivateKeyIOException() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRetrieveWhenS3Exception
public void testRetrieveWhenS3Exception() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRetrieveWhenSecretsManagerException
public void testRetrieveWhenSecretsManagerException() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRetrieveWhenSecretContainsNoPassword
public void testRetrieveWhenSecretContainsNoPassword() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testFindCertificateChain
public void testFindCertificateChain() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testFindCertificateChainWhenNoCacerts
public void testFindCertificateChainWhenNoCacerts() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testFindCertificateChainWhenCertificateIOException
public void testFindCertificateChainWhenCertificateIOException() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testFindCertificateChainWhenCertNotFound
public void testFindCertificateChainWhenCertNotFound() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testFindCertificateChainWhenS3Exception
public void testFindCertificateChainWhenS3Exception() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testFullIntegration
public void testFullIntegration() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-