+
+
S3 gateway
+
+
This is an endpoint of Apache Hadoop Ozone S3 gateway. Use it with any
+ AWS S3 compatible tool
+ with setting this url as an endpoint
+
+
For example with aws-cli:
+
+
aws s3api --endpoint create-bucket --bucket=wordcount
+
+
For more information, please check the documentation.
+
+
+
+
+
+
diff --git a/hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/s3/endpoint/TestRootList.java b/hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/s3/endpoint/TestRootList.java
index 8759fff0d00..2e5944c6244 100644
--- a/hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/s3/endpoint/TestRootList.java
+++ b/hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/s3/endpoint/TestRootList.java
@@ -58,14 +58,14 @@ public class TestRootList {
public void testListBucket() throws Exception {
// List operation should succeed even there is no bucket.
- ListBucketResponse response = rootEndpoint.get();
+ ListBucketResponse response = (ListBucketResponse) rootEndpoint.get().getEntity();
assertEquals(0, response.getBucketsNum());
String bucketBaseName = "bucket-" + getClass().getName();
for(int i = 0; i < 10; i++) {
objectStoreStub.createS3Bucket(userName, bucketBaseName + i);
}
- response = rootEndpoint.get();
+ response = (ListBucketResponse) rootEndpoint.get().getEntity();
assertEquals(10, response.getBucketsNum());
}