> +
> +   @Test(dependsOnMethods = "testCreateKey")
> +   public void testGetKey() {
> +      Key getKey = api().getKey(key);
> +      assertNotNull(getKey);
> +      assertTrue(getKey.action().equals("get"));
> +      assertTrue(getKey.node().value().equals(value));
> +   }
> +
> +   @Test(dependsOnMethods = "testGetKey")
> +   public void testDeleteKey() {
> +      Key deletedKey = api().deleteKey(key);
> +      assertNotNull(deletedKey);
> +      assertTrue(deletedKey.action().equals("delete"));
> +      assertTrue(deletedKey.prevNode().value().equals(value));
> +   }

Use `@Test(alwaysRun = true)` method to avoid leaking keys if get test fails.

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

Reply via email to