use of com.netflix.simianarmy.client.aws.AWSClient in project SimianArmy by Netflix.
the class TestELBJanitorCrawler method testElbsWithMultipleReferencedASGs.
@Test
public void testElbsWithMultipleReferencedASGs() {
boolean includeInstances = true;
boolean includeELbs = false;
AWSClient client = createMockAWSClient();
List<LoadBalancerDescription> elbs = createELBList(includeInstances);
List<AutoScalingGroup> asgs = createASGList(includeELbs);
asgs.get(0).setLoadBalancerNames(Arrays.asList("elb1", "elb2"));
addELBsToMock(client, elbs);
addASGsToMock(client, asgs);
ELBJanitorCrawler crawler = new ELBJanitorCrawler(client);
List<Resource> resources = crawler.resources();
verifyELBList(resources, elbs, 1);
}
use of com.netflix.simianarmy.client.aws.AWSClient in project SimianArmy by Netflix.
the class TestVSphereContext method shouldSetClientOfCorrectType.
@Test
public void shouldSetClientOfCorrectType() {
VSphereContext context = new VSphereContext();
AWSClient awsClient = context.awsClient();
assertNotNull(awsClient);
assertTrue(awsClient instanceof VSphereClient);
}
Aggregations