> + server.enqueue(
> + new MockResponse().setBody(stringFromResource("/volume/list.json"))
> + );
> +
> + List<Volume> list = volumeApi().getList("datacenter-id");
> +
> + assertNotNull(list);
> + assertEquals(list.size(), 6);
> + assertEquals(list.get(0).properties().name(), "Docker Registry
> Volume");
> +
> + assertEquals(server.getRequestCount(), 1);
> + assertSent(server, "GET", "/datacenters/datacenter-id/volumes");
> + }
> +
> + @Test
> + public void testGetListWith404() throws InterruptedException {
No need to test this (already expected to return an empty list, because of the
declared, already-tested fallback)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/233/files#r52559448