Class AwsKeyPairStorageTest


  • public class AwsKeyPairStorageTest
    extends java.lang.Object
    Unit tests for AwsKeyPairStorage.
    Author:
    Carl Harris
    • Field Detail

      • context

        public final org.jmock.integration.junit4.JUnitRuleMockery context
      • expectedException

        public final org.junit.rules.ExpectedException expectedException
    • Constructor Detail

      • AwsKeyPairStorageTest

        public AwsKeyPairStorageTest()
    • 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