use of com.sequenceiq.cloudbreak.cloud.model.ResizeRecommendation in project cloudbreak by hortonworks.
the class CmTemplateProcessorTest method recommendResize.
@Test
public void recommendResize() {
Versioned blueprintVersion = () -> "7.2.11";
underTest = new CmTemplateProcessor(getBlueprintText("input/kafka.bp"));
assertEquals(new ResizeRecommendation(Set.of("quorum"), Set.of("quorum")), underTest.recommendResize(List.of(), blueprintVersion));
underTest = new CmTemplateProcessor(getBlueprintText("input/de-ha.bp"));
Set<String> hostGroups = Set.of("gateway", "compute", "worker");
assertEquals(new ResizeRecommendation(hostGroups, hostGroups), underTest.recommendResize(List.of(), blueprintVersion));
underTest = new CmTemplateProcessor(getBlueprintText("input/cb5660.bp"));
hostGroups = Set.of("gateway", "quorum", "worker", "compute");
assertEquals(new ResizeRecommendation(hostGroups, hostGroups), underTest.recommendResize(List.of(), blueprintVersion));
underTest = new CmTemplateProcessor(getBlueprintText("input/nifi.bp"));
assertEquals(new ResizeRecommendation(Set.of(), Set.of()), underTest.recommendResize(List.of(), blueprintVersion));
}
Aggregations