Search in sources :

Example 21 with InstanceGroupV2Request

use of com.sequenceiq.cloudbreak.api.model.v2.InstanceGroupV2Request in project cloudbreak by hortonworks.

the class CloudProviderHelper method worker.

InstanceGroupV2Request worker(String securityGroupId) {
    InstanceGroupV2Request r = new InstanceGroupV2Request();
    r.setNodeCount(1);
    r.setGroup("worker");
    r.setType(InstanceGroupType.CORE);
    SecurityGroupV2Request s = new SecurityGroupV2Request();
    s.setSecurityGroupId(securityGroupId);
    r.setSecurityGroup(s);
    r.setTemplate(template());
    return r;
}
Also used : InstanceGroupV2Request(com.sequenceiq.cloudbreak.api.model.v2.InstanceGroupV2Request) SecurityGroupV2Request(com.sequenceiq.cloudbreak.api.model.v2.SecurityGroupV2Request)

Example 22 with InstanceGroupV2Request

use of com.sequenceiq.cloudbreak.api.model.v2.InstanceGroupV2Request in project cloudbreak by hortonworks.

the class CloudProviderHelper method compute.

InstanceGroupV2Request compute() {
    InstanceGroupV2Request r = new InstanceGroupV2Request();
    r.setNodeCount(1);
    r.setGroup("compute");
    r.setType(InstanceGroupType.CORE);
    SecurityGroupV2Request s = new SecurityGroupV2Request();
    s.setSecurityRules(rules());
    r.setSecurityGroup(s);
    r.setTemplate(template());
    return r;
}
Also used : InstanceGroupV2Request(com.sequenceiq.cloudbreak.api.model.v2.InstanceGroupV2Request) SecurityGroupV2Request(com.sequenceiq.cloudbreak.api.model.v2.SecurityGroupV2Request)

Aggregations

InstanceGroupV2Request (com.sequenceiq.cloudbreak.api.model.v2.InstanceGroupV2Request)22 SecurityGroupV2Request (com.sequenceiq.cloudbreak.api.model.v2.SecurityGroupV2Request)9 IntegrationTestContext (com.sequenceiq.it.IntegrationTestContext)9 Parameters (org.testng.annotations.Parameters)9 BeforeClass (org.testng.annotations.BeforeClass)5 BeforeMethod (org.testng.annotations.BeforeMethod)4 TemplateV2Request (com.sequenceiq.cloudbreak.api.model.v2.TemplateV2Request)3 HostGroupRequest (com.sequenceiq.cloudbreak.api.model.HostGroupRequest)2 StackV2Request (com.sequenceiq.cloudbreak.api.model.v2.StackV2Request)2 ClusterRequest (com.sequenceiq.cloudbreak.api.model.ClusterRequest)1 ConstraintJson (com.sequenceiq.cloudbreak.api.model.ConstraintJson)1 InstanceGroupRequest (com.sequenceiq.cloudbreak.api.model.InstanceGroupRequest)1 NetworkRequest (com.sequenceiq.cloudbreak.api.model.NetworkRequest)1 OrchestratorRequest (com.sequenceiq.cloudbreak.api.model.OrchestratorRequest)1 SecurityRuleRequest (com.sequenceiq.cloudbreak.api.model.SecurityRuleRequest)1 StackAuthenticationRequest (com.sequenceiq.cloudbreak.api.model.StackAuthenticationRequest)1 StackRequest (com.sequenceiq.cloudbreak.api.model.StackRequest)1 UpdateClusterJson (com.sequenceiq.cloudbreak.api.model.UpdateClusterJson)1 ClusterV2Request (com.sequenceiq.cloudbreak.api.model.v2.ClusterV2Request)1 GeneralSettings (com.sequenceiq.cloudbreak.api.model.v2.GeneralSettings)1