> + public void testCreateKey() {
> + Key createdKey = api().createKey(key, value);
> + assertNotNull(createdKey);
> + assertTrue(createdKey.action().equals("set"));
> + assertTrue(createdKey.node().value().equals(value));
> + }
> +
> + @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")
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#r52988914