use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.network.AwsNetworkV4Parameters in project cloudbreak by hortonworks.
the class NetworkV4BaseTest method testAwsNetworkPublicIpIsEmpty.
@Test
void testAwsNetworkPublicIpIsEmpty() {
AwsNetworkV4Parameters networkParameters = new AwsNetworkV4Parameters();
underTest.setAws(networkParameters);
assertTrue(underTest.isNoPublicIp().isEmpty());
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.network.AwsNetworkV4Parameters in project cloudbreak by hortonworks.
the class InstanceGroupV1ToInstanceGroupV4ConverterTest method getNetworkV4Request.
private NetworkV4Request getNetworkV4Request() {
NetworkV4Request networkV4Request = new NetworkV4Request();
AwsNetworkV4Parameters awsNetworkV4Parameters = new AwsNetworkV4Parameters();
awsNetworkV4Parameters.setSubnetId("aws-123");
networkV4Request.setAws(awsNetworkV4Parameters);
return networkV4Request;
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.network.AwsNetworkV4Parameters in project cloudbreak by hortonworks.
the class NetworkV1ToNetworkV4ConverterTest method createAwsNetworkV4Parameters.
private AwsNetworkV4Parameters createAwsNetworkV4Parameters() {
AwsNetworkV4Parameters p = new AwsNetworkV4Parameters();
p.setSubnetId(SUBNET_ID);
p.setVpcId(VPC_ID);
p.setInternetGatewayId("someInternetGatewayId");
return p;
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.network.AwsNetworkV4Parameters in project cloudbreak by hortonworks.
the class NetworkValidationServiceTest method testNetworkIfAwsRequestHasSubnetIdThenShouldReturnFalse.
@Test
public void testNetworkIfAwsRequestHasSubnetIdThenShouldReturnFalse() {
NetworkV4Request networkV4Request = new NetworkV4Request();
AwsNetworkV4Parameters awsNetworkV4Parameters = new AwsNetworkV4Parameters();
awsNetworkV4Parameters.setSubnetId("subnet");
networkV4Request.setAws(awsNetworkV4Parameters);
Assert.assertFalse(underTest.shouldAddNetwork(CloudPlatform.AWS.name(), networkV4Request));
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.network.AwsNetworkV4Parameters in project cloudbreak by hortonworks.
the class NetworkValidationServiceTest method testNetworkIfAwsRequestEmptyThenShouldReturnTrue.
@Test
public void testNetworkIfAwsRequestEmptyThenShouldReturnTrue() {
NetworkV4Request networkV4Request = new NetworkV4Request();
AwsNetworkV4Parameters awsNetworkV4Parameters = new AwsNetworkV4Parameters();
networkV4Request.setAws(awsNetworkV4Parameters);
Assert.assertTrue(underTest.shouldAddNetwork(CloudPlatform.AWS.name(), networkV4Request));
}
Aggregations