> +
> + assertEquals(this.server.getRequestCount(), 1);
> + assertSent(this.server, "GET", "/snapshots/some-id?depth=5");
> + }
> +
> +
> + public void testGetSnapshotWith404() throws InterruptedException {
> + server.enqueue(response404());
> +
> + Snapshot snapshot = snapshotApi().getSnapshot("some-id");
> +
> + assertEquals(snapshot, null);
> +
> + assertEquals(server.getRequestCount(), 1);
> + assertSent(server, "GET", "/snapshots/some-id");
> + }
Add a test for the 404 fallback for the other `getSnapshot` too.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/244/files#r55018274