Search in sources :

Example 11 with ImageComponentVersions

use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.image.ImageComponentVersions in project cloudbreak by hortonworks.

the class DistroXUpgradeImageSelectorTest method createImageResponse.

private ImageInfoV4Response createImageResponse(String id, long creation, String cdp) {
    ImageInfoV4Response image = new ImageInfoV4Response();
    image.setImageId(id);
    image.setCreated(creation);
    image.setComponentVersions(new ImageComponentVersions("a", "b", cdp, "d", "g", "a", List.of()));
    return image;
}
Also used : ImageInfoV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.image.ImageInfoV4Response) ImageComponentVersions(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.image.ImageComponentVersions)

Aggregations

ImageComponentVersions (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.image.ImageComponentVersions)11 ImageInfoV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.image.ImageInfoV4Response)5 UpgradeV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.upgrade.UpgradeV4Response)3 BadRequestException (com.sequenceiq.cloudbreak.common.exception.BadRequestException)3 Test (org.junit.jupiter.api.Test)3 ArgumentMatchers.anyString (org.mockito.ArgumentMatchers.anyString)3 StackV4Endpoint (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.StackV4Endpoint)2 ClouderaManagerLicenseProvider (com.sequenceiq.cloudbreak.auth.ClouderaManagerLicenseProvider)2 JsonCMLicense (com.sequenceiq.cloudbreak.auth.JsonCMLicense)2 PaywallAccessChecker (com.sequenceiq.cloudbreak.auth.PaywallAccessChecker)2 ThreadBasedUserCrnProvider (com.sequenceiq.cloudbreak.auth.ThreadBasedUserCrnProvider)2 EntitlementService (com.sequenceiq.cloudbreak.auth.altus.EntitlementService)2 Crn (com.sequenceiq.cloudbreak.auth.crn.Crn)2 RegionAwareInternalCrnGenerator (com.sequenceiq.cloudbreak.auth.crn.RegionAwareInternalCrnGenerator)2 RegionAwareInternalCrnGeneratorFactory (com.sequenceiq.cloudbreak.auth.crn.RegionAwareInternalCrnGeneratorFactory)2 RestClientFactory (com.sequenceiq.cloudbreak.client.RestClientFactory)2 CloudbreakMessagesService (com.sequenceiq.cloudbreak.message.CloudbreakMessagesService)2 SdxUpgradeClusterConverter (com.sequenceiq.datalake.controller.sdx.SdxUpgradeClusterConverter)2 SdxCluster (com.sequenceiq.datalake.entity.SdxCluster)2 SdxReactorFlowManager (com.sequenceiq.datalake.flow.SdxReactorFlowManager)2