> + String path = client.createVault("testCreateVault").toString();
> + assertTrue(path.contains("https://glacier.us-east-1.amazonaws.com/"));
> + assertTrue(path.contains("/vaults/testCreateVault"));
> + client.deleteVaultIfEmpty("testCreateVault");
> + }
> +
> + @Test(groups = { "integration", "live" })
> + public void testDescribeVault() throws Exception {
> + GlacierClient client = getGlacierClient();
> + client.createVault("testDescribeVault");
> + VaultMetadata vault =
> getGlacierClient().describeVault("testDescribeVault");
> + assertEquals(vault.getVaultName(), "testDescribeVault");
> + assertEquals(vault.getNumberOfArchives(), 0);
> + assertEquals(vault.getSizeInBytes(), 0);
> + assertEquals(vault.getLastInventoryDate(), null);
> + client.deleteVaultIfEmpty("testDescribeVault");
Same here, enclose the delete in a `finally` block to make sure it is always
deleted.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/4/files#r12843896