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());
}
Aggregations