> + public void testCreateSnapshot() {
> + Snapshot snapshot =
> api.snapshotApi().createSnapshot(Snapshot.Request.CreatePayload.create(storageId,
> "my description", "test snapshot"));
> +
> + assertNotNull(snapshot);
> +
> + snapshotWaitingPredicate.apply(snapshot.id());
> +
> + snapshotId = snapshot.id();
> + }
> +
> + @Test
> + public void testGetAllSnapshots() {
> + List<Snapshot> snapshots = api.snapshotApi().getAllSnapshots();
> +
> + assertNotNull(snapshots);
> + assertTrue(snapshots.size() > 0);
This can fail if this test is executed *before* the `testCreateSnapshot`.
Configure the test dependency properly.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/138/files#r25327848