use of com.sequenceiq.cloudbreak.domain.stack.loadbalancer.azure.AzureLoadBalancerConfigDb in project cloudbreak by hortonworks.
the class LoadBalancerConfigConverter method buildAzureConfig.
private LoadBalancerConfigDbWrapper buildAzureConfig(AzureLoadBalancerMetadataView azureMetadata) {
LoadBalancerConfigDbWrapper cloudLoadBalancerConfigDbWrapper = new LoadBalancerConfigDbWrapper();
AzureLoadBalancerConfigDb azureLoadBalancerConfigDb = new AzureLoadBalancerConfigDb();
azureLoadBalancerConfigDb.setName(azureMetadata.getLoadbalancerName());
cloudLoadBalancerConfigDbWrapper.setAzureConfig(azureLoadBalancerConfigDb);
return cloudLoadBalancerConfigDbWrapper;
}
use of com.sequenceiq.cloudbreak.domain.stack.loadbalancer.azure.AzureLoadBalancerConfigDb in project cloudbreak by hortonworks.
the class LoadBalancerToLoadBalancerResponseConverterTest method createAzureLoadBalancerConfig.
private LoadBalancerConfigDbWrapper createAzureLoadBalancerConfig() {
AzureLoadBalancerConfigDb azureLoadBalancerConfigDb = new AzureLoadBalancerConfigDb();
azureLoadBalancerConfigDb.setName(AZURE_LB_NAME);
LoadBalancerConfigDbWrapper cloudLoadBalancerConfigDbWrapper = new LoadBalancerConfigDbWrapper();
cloudLoadBalancerConfigDbWrapper.setAzureConfig(azureLoadBalancerConfigDb);
return cloudLoadBalancerConfigDbWrapper;
}
use of com.sequenceiq.cloudbreak.domain.stack.loadbalancer.azure.AzureLoadBalancerConfigDb in project cloudbreak by hortonworks.
the class LoadBalancerConfigConverterTest method testConvertAzureLoadBalancer.
@Test
public void testConvertAzureLoadBalancer() {
CloudLoadBalancerMetadata cloudLoadBalancerMetadata = new CloudLoadBalancerMetadata.Builder().withParameters(createAzureParams(0)).build();
LoadBalancerConfigDbWrapper cloudLoadBalancerConfigDbWrapper = underTest.convertLoadBalancer(AZURE, cloudLoadBalancerMetadata);
assertNotNull(cloudLoadBalancerConfigDbWrapper.getAzureConfig());
AzureLoadBalancerConfigDb azureLoadBalancerConfigDb = cloudLoadBalancerConfigDbWrapper.getAzureConfig();
assertEquals(LB_NAME, azureLoadBalancerConfigDb.getName());
}
Aggregations