Search in sources :

Example 1 with UpdateAwsDiskEncryptionParametersRequest

use of com.sequenceiq.environment.api.v1.environment.model.request.aws.UpdateAwsDiskEncryptionParametersRequest in project cloudbreak by hortonworks.

the class EnvironmentApiConverterTest method testConvertUpdateAwsDiskEncryptionParametersDto.

@Test
void testConvertUpdateAwsDiskEncryptionParametersDto() {
    UpdateAwsDiskEncryptionParametersRequest request = UpdateAwsDiskEncryptionParametersRequest.builder().withAwsDiskEncryptionParameters(AwsDiskEncryptionParameters.builder().withEncryptionKeyArn(ENCRYPTION_KEY_ARN).build()).build();
    UpdateAwsDiskEncryptionParametersDto actual = underTest.convertUpdateAwsDiskEncryptionParametersDto(request);
    assertEquals(ENCRYPTION_KEY_ARN, actual.getAwsDiskEncryptionParametersDto().getEncryptionKeyArn());
}
Also used : UpdateAwsDiskEncryptionParametersDto(com.sequenceiq.environment.environment.dto.UpdateAwsDiskEncryptionParametersDto) UpdateAwsDiskEncryptionParametersRequest(com.sequenceiq.environment.api.v1.environment.model.request.aws.UpdateAwsDiskEncryptionParametersRequest) Test(org.junit.jupiter.api.Test) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest)

Aggregations

UpdateAwsDiskEncryptionParametersRequest (com.sequenceiq.environment.api.v1.environment.model.request.aws.UpdateAwsDiskEncryptionParametersRequest)1 UpdateAwsDiskEncryptionParametersDto (com.sequenceiq.environment.environment.dto.UpdateAwsDiskEncryptionParametersDto)1 Test (org.junit.jupiter.api.Test)1 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)1