jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-labs-google] JCLOUDS-458: Live tests for BucketAccessControls, DefaultObjectAccessControls (#35)
Date Wed, 17 Sep 2014 18:25:06 GMT
> +   }
> +
> +   @Test(groups = "live", dependsOnMethods = "testPatchDefaultObjectAcl")
> +   public void testDeleteBucketAcl() {
> +      api().deleteDefaultObjectAccessControls(BUCKET_NAME, "allUsers");
> +      deleteBucket(BUCKET_NAME);
> +   }
> +
> +   @Test(groups = "live", dependsOnMethods = { "testDeleteBucketAcl" }, expectedExceptions
= { ResourceNotFoundException.class })
> +   public void testDeleteNotExistingBucketAccessControls() {
> +      api().deleteDefaultObjectAccessControls(BUCKET_NAME, "allUsers");
> +   }
> +
> +   private void deleteBucket(String bucketName) {
> +      api.getBucketApi().deleteBucket(bucketName);
> +   }

Have a method to clean up the bucket even if `testDeleteBucketAcl` fails?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/35/files#r17683343
Mime
View raw message