Search in sources :

Example 6 with ListenerDescription

use of com.amazonaws.services.elasticloadbalancing.model.ListenerDescription 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

ListenerDescription (com.amazonaws.services.elasticloadbalancing.model.ListenerDescription)6 LoadBalancerDescription (com.amazonaws.services.elasticloadbalancing.model.LoadBalancerDescription)6 ArrayList (java.util.ArrayList)5 Test (org.junit.Test)5 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 BootstrapException (com.kixeye.chassis.bootstrap.BootstrapException)1 List (java.util.List)1