> +
> + Bucket response = api().createBuckets(PROJECT_NUMBER, template,
> options);
> +
> + assertNotNull(response);
> + assertNotNull(response.getCors());
> + assertEquals(response.getKind(), Kind.BUCKET);
> + assertEquals(response.getName(), BUCKET_NAME_WITHOPTIONS);
> + assertEquals(response.getLocation(), Location.US_CENTRAL2);
> + assertTrue(response.getVersioning().isEnabled());
> + }
> +
> + @Test(groups = "live", dependsOnMethods = "testCreateBucket")
> + public void testUpdateBucket() {
> + BucketAccessControls bucketacl =
> BucketAccessControls.builder().bucket(BUCKET_NAME)
> + .entity("allAuthenticatedUsers").role(Role.OWNER).build();
> + BucketTemplate template = new
> BucketTemplate().name(BUCKET_NAME).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#r14533651