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 2017/05/08 18:10:06 UTC

[04/50] jclouds git commit: Remove bucket litter during integration tests

Remove bucket litter during integration tests


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

Branch: refs/heads/master
Commit: ff2d150d7db73c9742e8b5aad1a86e2535974a8c
Parents: 9d3a7bd
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/blob/ff2d150d/providers/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/features/BucketApiLiveTest.java
----------------------------------------------------------------------
diff --git a/providers/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/features/BucketApiLiveTest.java b/providers/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/features/BucketApiLiveTest.java
index 9c81aa5..12226dc 100644
--- a/providers/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/features/BucketApiLiveTest.java
+++ b/providers/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" })