use of com.sequenceiq.environment.api.v1.environment.model.response.TagResponse in project cloudbreak by hortonworks.
the class AllocateDatabaseServerV4RequestToDBStackConverterTest method setupMinimalValid.
private void setupMinimalValid(SslConfigV4Request sslConfigV4Request, CloudPlatform cloudPlatform) {
allocateRequest.setEnvironmentCrn(ENVIRONMENT_CRN);
allocateRequest.setTags(new HashMap<>());
allocateRequest.setClusterCrn(CLUSTER_CRN);
allocateRequest.setSslConfig(sslConfigV4Request);
DetailedEnvironmentResponse environment = DetailedEnvironmentResponse.builder().withCloudPlatform(cloudPlatform.name()).withCrn(ENVIRONMENT_CRN).withLocation(LocationResponse.LocationResponseBuilder.aLocationResponse().withName(REGION).build()).withName(ENVIRONMENT_NAME).withTag(new TagResponse()).build();
when(environmentService.getByCrn(ENVIRONMENT_CRN)).thenReturn(environment);
databaseServerRequest.setDatabaseVendor(DATABASE_VENDOR);
}
Aggregations