You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ga...@apache.org on 2014/06/13 22:15:29 UTC

git commit: JCLOUDS-457: Use random vault names in live tests

Repository: jclouds-labs-aws
Updated Branches:
  refs/heads/master c781a1dfa -> 690364b8a


JCLOUDS-457: Use random vault names in live tests

Now the live tests are not conditioned by the current state of the
account used.


Project: http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/commit/690364b8
Tree: http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/tree/690364b8
Diff: http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/diff/690364b8

Branch: refs/heads/master
Commit: 690364b8a3268c8f900727bbd0ea824c80830651
Parents: c781a1d
Author: Roman C. Coedo <ro...@gmail.com>
Authored: Fri Jun 13 14:00:06 2014 +0200
Committer: Andrew Gaul <ga...@apache.org>
Committed: Fri Jun 13 13:14:32 2014 -0700

----------------------------------------------------------------------
 .../java/org/jclouds/glacier/GlacierClientLiveTest.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/blob/690364b8/glacier/src/test/java/org/jclouds/glacier/GlacierClientLiveTest.java
----------------------------------------------------------------------
diff --git a/glacier/src/test/java/org/jclouds/glacier/GlacierClientLiveTest.java b/glacier/src/test/java/org/jclouds/glacier/GlacierClientLiveTest.java
index 6ba9e1a..100d990 100644
--- a/glacier/src/test/java/org/jclouds/glacier/GlacierClientLiveTest.java
+++ b/glacier/src/test/java/org/jclouds/glacier/GlacierClientLiveTest.java
@@ -36,9 +36,9 @@ public class GlacierClientLiveTest extends BaseApiLiveTest<GlacierClient>{
       this.provider = "glacier";
    }
 
-   private static final String VAULT_NAME1 = "testV1";
-   private static final String VAULT_NAME2 = "testV2";
-   private static final String VAULT_NAME3 = "testV3";
+   private final String VAULT_NAME1 = UUID.randomUUID().toString();
+   private final String VAULT_NAME2 = UUID.randomUUID().toString();
+   private final String VAULT_NAME3 = UUID.randomUUID().toString();
 
    @Test(groups = { "integration", "live" })
    public void testDeleteVaultIfEmptyOrNotFound() throws Exception {
@@ -70,8 +70,8 @@ public class GlacierClientLiveTest extends BaseApiLiveTest<GlacierClient>{
 
    @Test(groups = { "integration", "live" }, dependsOnMethods = { "testListAndDescribeVaults" })
    public void testDeleteVault() throws Exception {
-      api.deleteVault(VAULT_NAME1);
-      api.deleteVault(VAULT_NAME2);
-      api.deleteVault(VAULT_NAME3);
+      assertTrue(api.deleteVault(VAULT_NAME1));
+      assertTrue(api.deleteVault(VAULT_NAME2));
+      assertTrue(api.deleteVault(VAULT_NAME3));
    }
 }