Search in sources :

Example 1 with DistroXCcmUpgradeV1Response

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());
}
Also used : DistroXCcmUpgradeV1Response(com.sequenceiq.distrox.api.v1.distrox.model.upgrade.DistroXCcmUpgradeV1Response) FlowIdentifier(com.sequenceiq.flow.api.model.FlowIdentifier) Test(org.junit.jupiter.api.Test)

Aggregations

DistroXCcmUpgradeV1Response (com.sequenceiq.distrox.api.v1.distrox.model.upgrade.DistroXCcmUpgradeV1Response)1 FlowIdentifier (com.sequenceiq.flow.api.model.FlowIdentifier)1 Test (org.junit.jupiter.api.Test)1