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 2015/05/29 23:43:33 UTC

jclouds-labs-google git commit: Remove bucket litter during integration tests

Repository: jclouds-labs-google
Updated Branches:
  refs/heads/master fdc317b9e -> 7586e8902


Remove bucket litter during integration tests


Project: http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/commit/7586e890
Tree: http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/tree/7586e890
Diff: http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/diff/7586e890

Branch: refs/heads/master
Commit: 7586e89021629f6406170498647eedc0c278ac4b
Parents: fdc317b
Author: Andrew Gaul <ga...@apache.org>
Authored: Fri May 29 14:11:51 2015 -0700
Committer: Andrew Gaul <ga...@apache.org>
Committed: Fri May 29 14:11:51 2015 -0700

----------------------------------------------------------------------
 .../jclouds/googlecloudstorage/features/BucketApiLiveTest.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/blob/7586e890/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/features/BucketApiLiveTest.java
----------------------------------------------------------------------
diff --git a/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/features/BucketApiLiveTest.java b/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/features/BucketApiLiveTest.java
index 9c81aa5..12226dc 100644
--- a/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/features/BucketApiLiveTest.java
+++ b/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/features/BucketApiLiveTest.java
@@ -116,6 +116,8 @@ public class BucketApiLiveTest extends BaseGoogleCloudStorageApiLiveTest {
       assertEquals(response.name(), BUCKET_NAME_STANDARD);
       assertEquals(response.location(), Location.US);
       assertThat(response.storageClass()).isEqualTo(StorageClass.STANDARD);
+
+      api().deleteBucket(BUCKET_NAME_STANDARD);
    }
 
    @Test(groups = "live")
@@ -131,6 +133,8 @@ public class BucketApiLiveTest extends BaseGoogleCloudStorageApiLiveTest {
       assertEquals(response.name(), BUCKET_NAME_NEARLINE);
       assertEquals(response.location(), Location.US);
       assertThat(response.storageClass()).isEqualTo(StorageClass.NEARLINE);
+
+      api().deleteBucket(BUCKET_NAME_NEARLINE);
    }
 
    @Test(groups = "live", dependsOnMethods = { "testCreateBucket" })