jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trevor Flanagan <notificati...@github.com>
Subject Re: [jclouds/jclouds-labs] Adding Dimension Data ServerImageAPI (#380)
Date Mon, 10 Apr 2017 16:16:14 GMT
trevorflanagan commented on this pull request.



> +import static org.testng.Assert.assertNotNull;
+import static org.testng.Assert.assertNull;
+import static org.testng.Assert.assertTrue;
+
+/**
+ * Mock tests for the {@link ServerImageApi} class.
+ */
+@Test(groups = "unit", testName = "ServerImageApiMockTest", singleThreaded = true)
+public class ServerImageApiMockTest extends BaseAccountAwareCloudControlMockTest {
+
+   public void testGetOsImage() throws Exception {
+      server.enqueue(jsonResponse("/osImage.json"));
+      OsImage osImage = api.getServerImageApi().getOsImage("id");
+      assertNotNull(osImage);
+      assertSent(HttpMethod.GET, getImageUrl().appendPath("/osImage/id").toString());
+   }

@nacx I have completed that change and pushed. Hopefully that is everything you requested.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/380#discussion_r110698938
Mime
View raw message