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 Tue, 24 May 2016 23:59:25 GMT
> +   @Named("b2_create_bucket")
> +   @POST
> +   @Path("/b2api/v1/b2_create_bucket")
> +   @MapBinder(BindToJsonPayload.class)
> +   @PayloadParams(keys = {"accountId"}, values = {"{jclouds.identity}"})
> +   @Consumes(APPLICATION_JSON)
> +   @Produces(APPLICATION_JSON)
> +   Bucket createBucket(@PayloadParam("bucketName") String bucketName, @PayloadParam("bucketType")
BucketType bucketType);
> +
> +   @Named("b2_delete_bucket")
> +   @POST
> +   @Path("/b2api/v1/b2_delete_bucket")
> +   @MapBinder(BindToJsonPayload.class)
> +   @PayloadParams(keys = {"accountId"}, values = {"{jclouds.identity}"})
> +   @Consumes(APPLICATION_JSON)
> +   @Produces(APPLICATION_JSON)

I added `testDeleteAlreadyDeletedBucket` to test this.  B2 return 400 with a `bad_bucket_id`.
 I modified `ParseB2ErrorFromJsonContent` to turn this into `ContainerNotFoundException`.

---
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/8bb355e1b286b2bbf77fd8d3cb75cd2d1aa6bc69#r64495966
Mime
View raw message