Search in sources :

Example 16 with LoadBalancerDescription

use of com.amazonaws.services.elasticloadbalancing.model.LoadBalancerDescription in project chassis by Kixeye.

the class ZookeeperElbFilterTest method matchingEnvironmentNoMatchingName.

@Test
public void matchingEnvironmentNoMatchingName() {
    LoadBalancerDescription loadBalancer = new LoadBalancerDescription();
    loadBalancer.setLoadBalancerName(ENVIRONMENT + "-Asgard-whatever");
    Assert.assertFalse(filter.accept(loadBalancer));
}
Also used : LoadBalancerDescription(com.amazonaws.services.elasticloadbalancing.model.LoadBalancerDescription) Test(org.junit.Test)

Example 17 with LoadBalancerDescription

use of com.amazonaws.services.elasticloadbalancing.model.LoadBalancerDescription in project chassis by Kixeye.

the class ZookeeperElbFilterTest method externalExhibitor.

@Test
public void externalExhibitor() {
    LoadBalancerDescription loadBalancer = new LoadBalancerDescription();
    List<ListenerDescription> listenerDescriptions = new ArrayList<>();
    listenerDescriptions.add(new ListenerDescription());
    loadBalancer.setListenerDescriptions(listenerDescriptions);
    loadBalancer.setLoadBalancerName("exhibitor-" + ENVIRONMENT);
    Assert.assertFalse(filter.accept(loadBalancer));
}
Also used : ListenerDescription(com.amazonaws.services.elasticloadbalancing.model.ListenerDescription) ArrayList(java.util.ArrayList) LoadBalancerDescription(com.amazonaws.services.elasticloadbalancing.model.LoadBalancerDescription) Test(org.junit.Test)

Aggregations

LoadBalancerDescription (com.amazonaws.services.elasticloadbalancing.model.LoadBalancerDescription)17 Test (org.junit.Test)7 ListenerDescription (com.amazonaws.services.elasticloadbalancing.model.ListenerDescription)6 Resource (com.netflix.simianarmy.Resource)6 AWSClient (com.netflix.simianarmy.client.aws.AWSClient)6 ArrayList (java.util.ArrayList)6 Test (org.testng.annotations.Test)5 AutoScalingGroup (com.amazonaws.services.autoscaling.model.AutoScalingGroup)3 Instance (com.amazonaws.services.elasticloadbalancing.model.Instance)2 Regions (com.amazonaws.regions.Regions)1 AmazonEC2 (com.amazonaws.services.ec2.AmazonEC2)1 DescribeRegionsResult (com.amazonaws.services.ec2.model.DescribeRegionsResult)1 DescribeTagsRequest (com.amazonaws.services.ec2.model.DescribeTagsRequest)1 DescribeTagsResult (com.amazonaws.services.ec2.model.DescribeTagsResult)1 Region (com.amazonaws.services.ec2.model.Region)1 AmazonElasticLoadBalancing (com.amazonaws.services.elasticloadbalancing.AmazonElasticLoadBalancing)1 DescribeLoadBalancersResult (com.amazonaws.services.elasticloadbalancing.model.DescribeLoadBalancersResult)1 Listener (com.amazonaws.services.elasticloadbalancing.model.Listener)1 Tag (com.amazonaws.services.elasticloadbalancing.model.Tag)1 TagDescription (com.amazonaws.services.elasticloadbalancing.model.TagDescription)1