use of com.amazonaws.services.autoscaling.model.AutoScalingInstanceDetails in project SimianArmy by Netflix.
the class TestInstanceJanitorCrawler method testInstancesNotExistingInASG.
@Test
public void testInstancesNotExistingInASG() {
List<AutoScalingInstanceDetails> instanceDetailsList = Collections.emptyList();
List<Instance> instanceList = createInstanceList();
AWSClient awsMock = createMockAWSClient(instanceDetailsList, instanceList);
InstanceJanitorCrawler crawler = new InstanceJanitorCrawler(awsMock);
List<Resource> resources = crawler.resources();
Assert.assertEquals(resources.size(), instanceList.size());
}
Aggregations