Search in sources :

Example 11 with Snapshot

use of com.amazonaws.services.ec2.model.Snapshot in project SimianArmy by Netflix.

the class TestEBSSnapshotJanitorCrawler method verifySnapshotList.

private void verifySnapshotList(List<Resource> resources, List<Snapshot> snapshotList, Date startTime) {
    Assert.assertEquals(resources.size(), snapshotList.size());
    for (int i = 0; i < resources.size(); i++) {
        Snapshot snapshot = snapshotList.get(i);
        verifySnapshot(resources.get(i), snapshot.getSnapshotId(), startTime);
    }
}
Also used : Snapshot(com.amazonaws.services.ec2.model.Snapshot)

Aggregations

Snapshot (com.amazonaws.services.ec2.model.Snapshot)6 Resource (com.netflix.simianarmy.Resource)4 AWSResource (com.netflix.simianarmy.aws.AWSResource)4 Date (java.util.Date)4 Test (org.testng.annotations.Test)4 AmazonEC2 (com.amazonaws.services.ec2.AmazonEC2)2 DescribeSnapshotsRequest (com.amazonaws.services.ec2.model.DescribeSnapshotsRequest)2 DescribeSnapshotsResult (com.amazonaws.services.ec2.model.DescribeSnapshotsResult)2 BlockDeviceMapping (com.amazonaws.services.ec2.model.BlockDeviceMapping)1 CreateSnapshotRequest (com.amazonaws.services.ec2.model.CreateSnapshotRequest)1 CreateSnapshotResult (com.amazonaws.services.ec2.model.CreateSnapshotResult)1 EbsBlockDevice (com.amazonaws.services.ec2.model.EbsBlockDevice)1 Filter (com.amazonaws.services.ec2.model.Filter)1 Image (com.amazonaws.services.ec2.model.Image)1 Tag (com.amazonaws.services.ec2.model.Tag)1 AWSResourceType (com.netflix.simianarmy.aws.AWSResourceType)1 AWSClient (com.netflix.simianarmy.client.aws.AWSClient)1 AWSUtils.getAWSNonTerminatedInstancesFilter (com.vmware.photon.controller.model.adapters.awsadapter.AWSUtils.getAWSNonTerminatedInstancesFilter)1 LinkedList (java.util.LinkedList)1