Search in sources :

Example 1 with EncryptionResources

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);
}
Also used : EncryptionResources(com.sequenceiq.cloudbreak.cloud.EncryptionResources) CloudPlatformVariant(com.sequenceiq.cloudbreak.cloud.model.CloudPlatformVariant) Test(org.junit.jupiter.api.Test)

Example 2 with 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));
}
Also used : EncryptionResources(com.sequenceiq.cloudbreak.cloud.EncryptionResources)

Aggregations

EncryptionResources (com.sequenceiq.cloudbreak.cloud.EncryptionResources)2 CloudPlatformVariant (com.sequenceiq.cloudbreak.cloud.model.CloudPlatformVariant)1 Test (org.junit.jupiter.api.Test)1