use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.cluster.ClusterV4Request in project cloudbreak by hortonworks.
the class SharedServiceValidatorTest method getStackV4Request.
private StackV4Request getStackV4Request(CloudPlatform cloudPlatform) {
ClusterV4Request clusterRequest = new ClusterV4Request();
clusterRequest.setDatabases(Sets.newHashSet(RANGER_DB_NAME, HIVE_DB_NAME));
clusterRequest.setBlueprintName("test-blueprint");
StackV4Request stackRequest = new StackV4Request();
stackRequest.setSharedService(new SharedServiceV4Request());
stackRequest.getSharedService().setDatalakeName(DATALAKE_NAME);
stackRequest.setCluster(clusterRequest);
stackRequest.setCloudPlatform(cloudPlatform);
stackRequest.setEnvironmentCrn("env");
stackRequest.setName("teststack");
return stackRequest;
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.cluster.ClusterV4Request in project cloudbreak by hortonworks.
the class DistroXClusterToClusterConverterTest method testConvertWithEnvTheExecutionTypeShouldBeSetToDefault.
@Test
void testConvertWithEnvTheExecutionTypeShouldBeSetToDefault() {
ClusterV4Request result = testConvertDistroXV1RequestWithEnvironment();
assertNotNull(result);
assertEquals(ExecutorType.DEFAULT, result.getExecutorType());
}
Aggregations