> +   @Test
> +   public void testListCdroms() throws InterruptedException {
> +      server.enqueue(
> +         new 
> MockResponse().setBody(stringFromResource("/server/cdroms.json"))
> +      );
> +      
> +      List<Image> cdroms = serverApi().listAttachedCdroms("datacenter-id", 
> "some-id");
> +      assertEquals(cdroms.size(), 1);
> +      
> +      assertEquals(server.getRequestCount(), 1);
> +      assertSent(server, "GET", 
> "/datacenters/datacenter-id/servers/some-id/cdroms");
> +   }
> +     
> +   private ServerApi serverApi() {
> +      return api.serverApi();
> +   }

Add the missing tests for the attachCD, detachCD, rebootServer, getVolume.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/227/files#r51543418

Reply via email to