Search in sources :

Example 6 with SecurityRuleRequest

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

the class SecurityRuleRequestToSecurityRuleConverterTest method createRequest.

private SecurityRuleRequest createRequest(String ports) {
    SecurityRuleRequest request = new SecurityRuleRequest();
    request.setPorts(ports);
    request.setModifiable(true);
    request.setProtocol("tcp");
    request.setSubnet("0.0.0.0/0");
    return request;
}
Also used : SecurityRuleRequest(com.sequenceiq.cloudbreak.api.model.SecurityRuleRequest)

Aggregations

SecurityRuleRequest (com.sequenceiq.cloudbreak.api.model.SecurityRuleRequest)6 Parameters (org.testng.annotations.Parameters)2 SecurityGroupRequest (com.sequenceiq.cloudbreak.api.model.SecurityGroupRequest)1 SecurityGroupResponse (com.sequenceiq.cloudbreak.api.model.SecurityGroupResponse)1 InstanceGroupV2Request (com.sequenceiq.cloudbreak.api.model.v2.InstanceGroupV2Request)1 SecurityGroupV2Request (com.sequenceiq.cloudbreak.api.model.v2.SecurityGroupV2Request)1 IntegrationTestContext (com.sequenceiq.it.IntegrationTestContext)1 ArrayList (java.util.ArrayList)1 Test (org.junit.Test)1 TypeDescriptor (org.springframework.core.convert.TypeDescriptor)1 BeforeMethod (org.testng.annotations.BeforeMethod)1 Test (org.testng.annotations.Test)1