Search in sources :

Example 1 with SdxInternalClusterRequest

use of com.sequenceiq.sdx.api.model.SdxInternalClusterRequest in project cloudbreak by hortonworks.

the class YcloudHybridCloudTest method validateRequestParameters.

private SdxInternalTestDto validateRequestParameters(TestContext tc, SdxInternalTestDto dto, SdxClient client) {
    assertNotNull(dto);
    SdxInternalClusterRequest sdxRequest = dto.getRequest();
    assertNotNull(sdxRequest);
    StackV4Request stackRequest = sdxRequest.getStackV4Request();
    assertNotNull(stackRequest);
    ClusterV4Request clusterRequest = stackRequest.getCluster();
    assertNotNull(clusterRequest);
    ClouderaManagerV4Request cmRequest = clusterRequest.getCm();
    assertNotNull(cmRequest);
    validateInstanceGroups(stackRequest.getInstanceGroups());
    validateRepository(cmRequest.getRepository());
    validateProducts(cmRequest.getProducts());
    return dto;
}
Also used : ClusterV4Request(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.cluster.ClusterV4Request) SdxInternalClusterRequest(com.sequenceiq.sdx.api.model.SdxInternalClusterRequest) StackV4Request(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.StackV4Request) ClouderaManagerV4Request(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.cluster.cm.ClouderaManagerV4Request)

Aggregations

StackV4Request (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.StackV4Request)1 ClusterV4Request (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.cluster.ClusterV4Request)1 ClouderaManagerV4Request (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.cluster.cm.ClouderaManagerV4Request)1 SdxInternalClusterRequest (com.sequenceiq.sdx.api.model.SdxInternalClusterRequest)1