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:08:14 GMT
> +               .role(Role.READER).build();
> +      BucketAccessControls response = api().patchBucketAccessControls(BUCKET_NAME, "allUsers",
bucketacl);
> +
> +      assertNotNull(response);
> +      assertEquals(response.getId(), BUCKET_NAME + "/allUsers");
> +      assertEquals(response.getRole(), Role.READER);
> +   }
> +   
> +   @Test(groups = "live", dependsOnMethods = "testPatchBucketacl")
> +   public void testDeleteBucketacl() {
> +
> +      HttpResponse response = api().deleteBucketAccessControls(BUCKET_NAME, "allUsers");
> +
> +      assertNotNull(response);
> +      assertEquals(response.getStatusCode(), 204);
> +   }

We need a cleanup method here that deletes the bucket if it still exists, I guess?

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