Remove bucket litter during integration tests

This commit is contained in:
Andrew Gaul 2015-05-29 14:11:51 -07:00
parent 9d3a7bdd4d
commit ff2d150d7d
1 changed files with 4 additions and 0 deletions

View File

@ -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" })