Search in sources :

Example 21 with EnvironmentCreationDto

use of com.sequenceiq.environment.environment.dto.EnvironmentCreationDto in project cloudbreak by hortonworks.

the class EnvironmentValidatorServiceTest method testValidateGcpEncryptionKeyNotSpecified.

@Test
void testValidateGcpEncryptionKeyNotSpecified() {
    EnvironmentCreationDto creationDto = EnvironmentCreationDto.builder().withAccountId(ACCOUNT_ID).withCloudPlatform("GCP").build();
    ValidationResult validationResult = underTest.validateEncryptionKey(creationDto);
    assertFalse(validationResult.hasError());
}
Also used : ValidationResult(com.sequenceiq.cloudbreak.validation.ValidationResult) EnvironmentCreationDto(com.sequenceiq.environment.environment.dto.EnvironmentCreationDto) Test(org.junit.jupiter.api.Test) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest)

Aggregations

EnvironmentCreationDto (com.sequenceiq.environment.environment.dto.EnvironmentCreationDto)21 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)18 Test (org.junit.jupiter.api.Test)16 Environment (com.sequenceiq.environment.environment.domain.Environment)11 Credential (com.sequenceiq.environment.credential.domain.Credential)10 EnvironmentAuthentication (com.sequenceiq.environment.environment.domain.EnvironmentAuthentication)9 NetworkDto (com.sequenceiq.environment.network.dto.NetworkDto)9 EnvironmentRequest (com.sequenceiq.environment.api.v1.environment.model.request.EnvironmentRequest)8 ExperimentalFeatures (com.sequenceiq.environment.environment.domain.ExperimentalFeatures)8 FreeIpaCreationDto (com.sequenceiq.environment.environment.dto.FreeIpaCreationDto)8 EnvironmentTelemetry (com.sequenceiq.environment.environment.dto.telemetry.EnvironmentTelemetry)8 ValidationResultBuilder (com.sequenceiq.cloudbreak.validation.ValidationResult.ValidationResultBuilder)7 Features (com.sequenceiq.common.api.telemetry.model.Features)7 ParametersDto (com.sequenceiq.environment.parameter.dto.ParametersDto)6 AccountTelemetry (com.sequenceiq.environment.telemetry.domain.AccountTelemetry)6 AwsDiskEncryptionParametersDto (com.sequenceiq.environment.parameter.dto.AwsDiskEncryptionParametersDto)5 AwsParametersDto (com.sequenceiq.environment.parameter.dto.AwsParametersDto)5 AzureParametersDto (com.sequenceiq.environment.parameter.dto.AzureParametersDto)5 AzureResourceEncryptionParametersDto (com.sequenceiq.environment.parameter.dto.AzureResourceEncryptionParametersDto)5 EnvironmentBackup (com.sequenceiq.environment.environment.dto.EnvironmentBackup)4