use of com.amazonaws.services.ec2.model.Volume in project SimianArmy by Netflix.
the class TestEBSVolumeJanitorCrawler method testVolumesWithIds.
@Test
public void testVolumesWithIds() {
Date createTime = new Date();
List<Volume> volumeList = createVolumeList(createTime);
String[] ids = { "vol-12345678901234567", "vol-12345678901234567" };
EBSVolumeJanitorCrawler crawler = new EBSVolumeJanitorCrawler(createMockAWSClient(volumeList, ids));
List<Resource> resources = crawler.resources(ids);
verifyVolumeList(resources, volumeList, createTime);
}
Aggregations