use of com.sequenceiq.cloudbreak.cloud.EncryptionResources in project cloudbreak by hortonworks.
the class EnvironmentEncryptionServiceTest method testShouldNotThrowExceptionWhenCloudPlatformAzure.
@Test
void testShouldNotThrowExceptionWhenCloudPlatformAzure() {
when(cloudPlatformConnectors.get(any(CloudPlatformVariant.class))).thenReturn(cloudConnector);
when(cloudConnector.encryptionResources()).thenReturn(encryptionResources);
EncryptionResources encryptionResources = underTest.getEncryptionResources(CLOUD_PLATFORM);
assertNotNull(encryptionResources);
}
use of com.sequenceiq.cloudbreak.cloud.EncryptionResources in project cloudbreak by hortonworks.
the class EnvironmentEncryptionService method deleteEncryptionResources.
public void deleteEncryptionResources(EnvironmentDto environmentDto) {
EncryptionResources encryptionResources = getEncryptionResources(environmentDto.getCloudPlatform());
encryptionResources.deleteDiskEncryptionSet(createEncryptionResourcesDeletionRequest(environmentDto));
}
Aggregations