use of com.sequenceiq.distrox.api.v1.distrox.model.upgrade.DistroXCcmUpgradeV1Response in project cloudbreak by hortonworks.
the class DistroXUpgradeV1ControllerTest method testCcmUpgrade.
@Test
public void testCcmUpgrade() {
FlowIdentifier expected = new FlowIdentifier(FlowType.FLOW, "1");
when(stackCcmUpgradeService.upgradeCcm(NameOrCrn.ofCrn(DATAHUB_CRN))).thenReturn(expected);
DistroXCcmUpgradeV1Response result = underTest.upgradeCcmByCrnInternal(DATAHUB_CRN, USER_CRN);
Assertions.assertSame(expected, result.getFlowIdentifier());
}
Aggregations