> + api.snapshotApi().updateSnapshot(
> + Snapshot.Request.updatingBuilder()
> + .id("some-id")
> + .name("new-snapshot-name")
> + .description("description...")
> + .build());
> +
> + assertEquals(server.getRequestCount(), 1);
> + assertSent(server, "PATCH", "/rest/snapshots/some-id", "{\"name\":
> \"new-snapshot-name\", \"description\": \"description...\"}");
> + }
> +
> + @Test
> + public void testDelete() throws InterruptedException {
> + server.enqueue(
> + new MockResponse().setBody("")
> + );
Instead of an empty body, wouldn't it be better to configure a response with
the 204 status code?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/244/files#r55018161