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] Added Bucket Access Control with Tests (#27)
Date Wed, 17 Sep 2014 18:04:05 GMT
> + * @author Bhathiya Supun
> + */
> +public class BucketAccessControlsApiLiveTest extends BaseGoogleCloudStorageApiLiveTest
{
> +
> +   private BucketAccessControlsApi api() {
> +      return api.getBucketAccessControlsApi();
> +   }
> +
> +   @Test(groups = "live")
> +   public void testCreateBucketacl() {
> +      BucketAccessControls bucketacl = BucketAccessControls.builder().bucket(BUCKET_NAME).entity("allUsers")
> +               .role(Role.READER).build();
> +      BucketAccessControls response = api().createBucketAccessControls(BUCKET_NAME,
bucketacl);
> +
> +      assertNotNull(response);
> +      assertEquals(response.getId(), BUCKET_NAME + "/allUsers");

Should we also check the Role here?

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