use of com.sequenceiq.cloudbreak.domain.stack.loadbalancer.aws.AwsLoadBalancerConfigDb in project cloudbreak by hortonworks.
the class LoadBalancerToLoadBalancerResponseConverterTest method createAwsLoadBalancerConfig.
private LoadBalancerConfigDbWrapper createAwsLoadBalancerConfig() {
AwsLoadBalancerConfigDb awsLoadBalancerConfigDb = new AwsLoadBalancerConfigDb();
awsLoadBalancerConfigDb.setArn(LB_ARN);
LoadBalancerConfigDbWrapper cloudLoadBalancerConfigDbWrapper = new LoadBalancerConfigDbWrapper();
cloudLoadBalancerConfigDbWrapper.setAwsConfig(awsLoadBalancerConfigDb);
return cloudLoadBalancerConfigDbWrapper;
}
use of com.sequenceiq.cloudbreak.domain.stack.loadbalancer.aws.AwsLoadBalancerConfigDb in project cloudbreak by hortonworks.
the class LoadBalancerConfigConverterTest method testConvertAwsLoadBalancer.
@Test
public void testConvertAwsLoadBalancer() {
CloudLoadBalancerMetadata cloudLoadBalancerMetadata = new CloudLoadBalancerMetadata.Builder().withParameters(createAwsParams(0)).build();
LoadBalancerConfigDbWrapper cloudLoadBalancerConfigDbWrapper = underTest.convertLoadBalancer(AWS, cloudLoadBalancerMetadata);
assertNotNull(cloudLoadBalancerConfigDbWrapper.getAwsConfig());
AwsLoadBalancerConfigDb awsLoadBalancerConfigDb = cloudLoadBalancerConfigDbWrapper.getAwsConfig();
assertEquals(LB_ARN, awsLoadBalancerConfigDb.getArn());
}
use of com.sequenceiq.cloudbreak.domain.stack.loadbalancer.aws.AwsLoadBalancerConfigDb in project cloudbreak by hortonworks.
the class LoadBalancerConfigConverter method buildAwsConfig.
private LoadBalancerConfigDbWrapper buildAwsConfig(AwsLoadBalancerMetadataView awsMetadata) {
LoadBalancerConfigDbWrapper cloudLoadBalancerConfigDbWrapper = new LoadBalancerConfigDbWrapper();
AwsLoadBalancerConfigDb awsLoadBalancerConfigDb = new AwsLoadBalancerConfigDb();
awsLoadBalancerConfigDb.setArn(awsMetadata.getLoadbalancerArn());
cloudLoadBalancerConfigDbWrapper.setAwsConfig(awsLoadBalancerConfigDb);
return cloudLoadBalancerConfigDbWrapper;
}
Aggregations