> @@ -160,6 +163,24 @@ void testCreateVolumeFromSnapshotInAvailabilityZone() {
> }
>
> @Test(dependsOnMethods = "testCreateSnapshotInRegion")
> + void testCreateVolumeFromSnapshotInAvailabilityZoneWithOptions() {
> + Volume volume = client.createVolumeInAvailabilityZone(defaultZone,
> + CreateVolumeOptions.Builder.fromSnapshotId(snapshot.getId()));
> + assertNotNull(volume);
> +
> + Predicate<Volume> availabile = retry(new VolumeAvailable(client), 600,
> 10, SECONDS);
> + assert availabile.apply(volume);
> +
> + Volume result =
> Iterables.getOnlyElement(client.describeVolumesInRegion(snapshot.getRegion(),
> volume.getId()));
> + assertEquals(volume.getId(), result.getId());
aside: start using (or writing custom) assertj assertions
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/408/files#r13947874