use of com.sequenceiq.cloudbreak.api.endpoint.v4.common.StackType in project cloudbreak by hortonworks.
the class StackCreatorServiceTest method testDetermineStackTypeBasedOnTheUsedApiShouldReturnWhenWorkloadStackTypeAndNotDistroXRequest.
@Test
public void testDetermineStackTypeBasedOnTheUsedApiShouldReturnWhenWorkloadStackTypeAndNotDistroXRequest() {
Stack stack = new Stack();
stack.setType(StackType.WORKLOAD);
StackType actual = underTest.determineStackTypeBasedOnTheUsedApi(stack, false);
assertEquals(StackType.LEGACY, actual);
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.common.StackType in project cloudbreak by hortonworks.
the class StackCreatorServiceTest method testDetermineStackTypeBasedOnTheUsedApiShouldReturnWhenDatalakeStackTypeAndNotDistroXRequest.
@Test
public void testDetermineStackTypeBasedOnTheUsedApiShouldReturnWhenDatalakeStackTypeAndNotDistroXRequest() {
Stack stack = new Stack();
stack.setType(StackType.DATALAKE);
StackType actual = underTest.determineStackTypeBasedOnTheUsedApi(stack, false);
assertEquals(StackType.DATALAKE, actual);
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.common.StackType in project cloudbreak by hortonworks.
the class StackCreatorServiceTest method testDetermineStackTypeBasedOnTheUsedApiShouldReturnWhenDatalakeStackTypeAndDistroXRequest.
@Test
public void testDetermineStackTypeBasedOnTheUsedApiShouldReturnWhenDatalakeStackTypeAndDistroXRequest() {
Stack stack = new Stack();
stack.setType(StackType.DATALAKE);
StackType actual = underTest.determineStackTypeBasedOnTheUsedApi(stack, true);
assertEquals(StackType.DATALAKE, actual);
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.common.StackType in project cloudbreak by hortonworks.
the class StackCreatorServiceTest method testDetermineStackTypeBasedOnTheUsedApiShouldReturnWhenWorkloadStackTypeAndDistroXRequest.
@Test
public void testDetermineStackTypeBasedOnTheUsedApiShouldReturnWhenWorkloadStackTypeAndDistroXRequest() {
Stack stack = new Stack();
stack.setType(StackType.WORKLOAD);
StackType actual = underTest.determineStackTypeBasedOnTheUsedApi(stack, true);
assertEquals(StackType.WORKLOAD, actual);
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.common.StackType in project cloudbreak by hortonworks.
the class BlueprintBasedUpgradeValidatorTest method createImageFilterParams.
private ImageFilterParams createImageFilterParams(String blueprintName, StackType stackType) {
Blueprint blueprint = new Blueprint();
blueprint.setName(blueprintName);
return new ImageFilterParams(null, true, null, stackType, blueprint, null, new InternalUpgradeSettings(true, true, true), null);
}
Aggregations