> +      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();
> +      }
> +   }

Add a test that exercises the fallback?

---
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#r64876192

Reply via email to