use of com.sequenceiq.redbeams.domain.stack.SslConfig in project cloudbreak by hortonworks.
the class DatabaseServerSslCertificateSyncServiceTest method verifyDbStackCaptured.
private void verifyDbStackCaptured(Integer sslCertificateVersionExpected, Set<Object> sslCertificatesExpected) {
DBStack dbStackCaptured = dbStackArgumentCaptor.getValue();
assertThat(dbStackCaptured).isNotNull();
SslConfig sslConfigCaptured = dbStackCaptured.getSslConfig();
assertThat(sslConfigCaptured).isNotNull();
assertThat(sslConfigCaptured.getSslCertificateType()).isEqualTo(SslCertificateType.CLOUD_PROVIDER_OWNED);
assertThat(sslConfigCaptured.getSslCertificateActiveCloudProviderIdentifier()).isEqualTo(CERT_ID_2);
assertThat(sslConfigCaptured.getSslCertificateActiveVersion()).isEqualTo(sslCertificateVersionExpected);
assertThat(sslConfigCaptured.getSslCertificates()).isEqualTo(sslCertificatesExpected);
}
Aggregations