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:22:08 GMT
> +
> +   @Test(groups = "live", dependsOnMethods = "testUpdateBucketacl")
> +   public void testPatchBucketacl() {
> +      BucketAccessControls bucketacl = BucketAccessControls.builder().bucket(BUCKET_NAME).entity("allUsers")
> +               .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() {
> +      api().deleteBucketAccessControls(BUCKET_NAME, "allUsers");
> +      deleteBucket(BUCKET_NAME);

Inline this?

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