jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject Re: [jclouds/jclouds-labs] JCLOUDS-1005: Backblaze B2 skeleton and bucket ops (#270)
Date Sat, 28 May 2016 20:08:31 GMT
> +      server.enqueue(new MockResponse().setBody(stringFromResource("/bucket.json")));
> +
> +      try {
> +         BucketApi api = api(server.getUrl("/").toString(), "b2").getBucketApi();
> +         Bucket response = api.deleteBucket("4a48fe8875c6214145260818");
> +         assertThat(response.bucketId()).isEqualTo("4a48fe8875c6214145260818");
> +         assertThat(response.bucketName()).isEqualTo("any_name_you_pick");
> +         assertThat(response.bucketType()).isEqualTo(BucketType.ALL_PRIVATE);
> +
> +         assertThat(server.getRequestCount()).isEqualTo(2);
> +         assertAuthentication(server);
> +         assertRequest(server.takeRequest(), "POST", "/b2api/v1/b2_delete_bucket", "/delete_bucket_request.json");
> +      } finally {
> +         server.shutdown();
> +      }
> +   }

Done.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/270/files/2a136008e73694853e887a138883638321393bdd#r64993412
Mime
View raw message