> + BucketAccessControls bucketacl =
> BucketAccessControls.builder().bucket(BUCKET_NAME)
> + .entity("allAuthenticatedUsers").role(Role.OWNER).build();
> + BucketTemplate template = new
> BucketTemplate().name(BUCKET_NAME).addAcl(bucketacl);
> + Bucket response = api().updateBuckets(BUCKET_NAME, template);
> +
> + assertNotNull(response);
> + assertEquals(response.getName(), BUCKET_NAME);
> + assertNotNull(response.getAcl());
> + }
> +
> + @Test(groups = "live", dependsOnMethods = "testCreateBucketWithOptions")
> + public void testUpdateBucketWithOptions() {
> + BucketAccessControls bucketacl =
> BucketAccessControls.builder().bucket(BUCKET_NAME_WITHOPTIONS)
> + .entity("allAuthenticatedUsers").role(Role.OWNER).build();
> + UpdateBucketOptions options = new
> UpdateBucketOptions().projection(Projection.FULL);
> + BucketTemplate template = new
> BucketTemplate().name(BUCKET_NAME_WITHOPTIONS).addAcl(bucketacl);
Use the builder?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/31/files#r14533656