Search in sources :

Example 21 with ClusterV4Response

use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.cluster.ClusterV4Response in project cloudbreak by hortonworks.

the class MetricTest method getStackResponse.

private StackV4Response getStackResponse(Status stackStatus, Status clusterStatus) {
    StackV4Response stackResponse = new StackV4Response();
    stackResponse.setStatus(stackStatus);
    stackResponse.setCluster(new ClusterV4Response());
    stackResponse.getCluster().setStatus(clusterStatus);
    return stackResponse;
}
Also used : ClusterV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.cluster.ClusterV4Response) StackV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.StackV4Response)

Aggregations

ClusterV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.cluster.ClusterV4Response)19 StackV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.StackV4Response)14 SdxCluster (com.sequenceiq.datalake.entity.SdxCluster)6 Json (com.sequenceiq.cloudbreak.common.json.Json)4 AbstractEntityConverterTest (com.sequenceiq.cloudbreak.converter.AbstractEntityConverterTest)4 Stack (com.sequenceiq.cloudbreak.domain.stack.Stack)4 HashMap (java.util.HashMap)4 Test (org.junit.Test)4 ClouderaManagerProductV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.cluster.clouderamanager.ClouderaManagerProductV4Response)3 ClouderaManagerV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.cluster.clouderamanager.ClouderaManagerV4Response)3 Test (org.junit.jupiter.api.Test)3 BlueprintV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.blueprint.responses.BlueprintV4Response)2 CustomContainerV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.cluster.customcontainer.CustomContainerV4Response)2 GatewayV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.cluster.gateway.GatewayV4Response)2 ClusterExposedServiceV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.cluster.gateway.topology.ClusterExposedServiceV4Response)2 Cluster (com.sequenceiq.cloudbreak.domain.stack.cluster.Cluster)2 IOException (java.io.IOException)2 Collection (java.util.Collection)2 ArgumentMatchers.anyString (org.mockito.ArgumentMatchers.anyString)2 AuthorizationResourceType (com.sequenceiq.authorization.resource.AuthorizationResourceType)1