jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <notificati...@github.com>
Subject Re: [jclouds-labs] Profitbricks REST - Snapshot API (#244)
Date Fri, 04 Mar 2016 11:07:11 GMT
> +      List<Snapshot> snapshots = snapshotApi().getList();
> +
> +      assertNotNull(snapshots);
> +      assertFalse(snapshots.isEmpty());
> +   }
> +
> +   @Test
> +   public void testGetSnapshot() {
> +      Snapshot snapshot = snapshotApi().getSnapshot(testSnapshot.id());
> +
> +      assertNotNull(snapshot);
> +      assertEquals(snapshot.id(), testSnapshot.id());
> +      assertEquals(snapshot.properties().name(), "test-snapshot");
> +   }  
> +   
> +   @Test(dependsOnMethods = "testGetSnapshot")

Consider changing this to depend on the create snapshot test once it exists.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/244/files#r55017544
Mime
View raw message