Search in sources :

Example 6 with ListServerCertificatesResult

use of com.amazonaws.services.identitymanagement.model.ListServerCertificatesResult in project Synapse-Stack-Builder by Sage-Bionetworks.

the class SSLSetupTest method testDescribeSSLCertificateNoCertificate.

@Test(expected = IllegalStateException.class)
public void testDescribeSSLCertificateNoCertificate() {
    ListServerCertificatesResult expectedLstssr = new ListServerCertificatesResult();
    when(mockAmznIamClient.listServerCertificates()).thenReturn(expectedLstssr);
    SSLSetup sslSetup = new SSLSetup(factory, config, resources);
    sslSetup.describeSSLCertificate(StackEnvironmentType.REPO);
}
Also used : ListServerCertificatesResult(com.amazonaws.services.identitymanagement.model.ListServerCertificatesResult) Test(org.junit.Test)

Aggregations

ListServerCertificatesResult (com.amazonaws.services.identitymanagement.model.ListServerCertificatesResult)6 ServerCertificateMetadata (com.amazonaws.services.identitymanagement.model.ServerCertificateMetadata)5 LinkedList (java.util.LinkedList)4 Test (org.junit.Test)4 ListServerCertificatesRequest (com.amazonaws.services.identitymanagement.model.ListServerCertificatesRequest)2 AmazonIdentityManagement (com.amazonaws.services.identitymanagement.AmazonIdentityManagement)1 UploadServerCertificateRequest (com.amazonaws.services.identitymanagement.model.UploadServerCertificateRequest)1 UploadServerCertificateResult (com.amazonaws.services.identitymanagement.model.UploadServerCertificateResult)1