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:Added ObjectAccessControls with expect tests (#36)
Date Wed, 17 Sep 2014 18:57:26 GMT
> +
> +   protected static final String BUCKET_NAME = "jcloudtestbucketdefaultoacl" + UUID.randomUUID();
> +
> +   private DefaultObjectAccessControlsApi api() {
> +      return api.getDefaultObjectAccessControlsApi();
> +   }
> +
> +   private void createBucket(String BucketName) {
> +      BucketTemplate template = new BucketTemplate().name(BucketName);
> +      Bucket response = api.getBucketApi().createBucket(PROJECT_NUMBER, template);
> +      assertNotNull(response);
> +   }
> +
> +   @Test(groups = "live")
> +   public void testCreateDefaultObjectacl() {
> +      createBucket(BUCKET_NAME);

Move this out into a "before test" class, and ensure the bucket is cleaned up again in an
"after test" class?

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