gaul edited a comment on pull request #47:
URL: https://github.com/apache/jclouds/pull/47#issuecomment-740616788


   @didixith Sorry I overlooked this.  You need to write something similar to:
   
   ```java
      public void testCreateBucketNonDefaultRegion() throws Exception {
         MockWebServer server = new MockWebServer();
         server.enqueue(new 
MockResponse().setBody("").addHeader("x-amz-bucket-region", 
"sa-east-1").addHeader("Host", "testbucketsaeasttest-sa-east-1"));
         server.play();
   
         S3Client client = getS3Client(server.getUrl("/"));
         assertThat(client.putBucketInRegion(Region.US_EAST_1, 
"testbucketsaeasttest")).isTrue();
   
         RecordedRequest request = server.takeRequest();
         assertEquals(request.getHeaders("x-amz-bucket-region"), "sa-east-1");
         assertEquals(request.getHeaders(HOST), 
"testbucketsaeasttest-sa-east-1");
         server.shutdown();
      }
   ```
   
   Note that this presently fails.  Could you investigate this and complete the 
PR?  We plan to release 2.3.0 later this month.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to