diff --git a/hadoop-ozone/dist/src/main/smoketest/s3/bucketcreate.robot b/hadoop-ozone/dist/src/main/smoketest/s3/bucketcreate.robot index 9b9077fab5fc..aaf0da4b77cd 100644 --- a/hadoop-ozone/dist/src/main/smoketest/s3/bucketcreate.robot +++ b/hadoop-ozone/dist/src/main/smoketest/s3/bucketcreate.robot @@ -40,3 +40,13 @@ Create bucket with invalid bucket name ${randStr} = Generate Ozone String ${result} = Execute AWSS3APICli and checkrc create-bucket --bucket invalid_bucket_${randStr} 255 Should contain ${result} InvalidBucketName +Create new bucket and check no group ACL + ${bucket} = Create bucket + ${acl} = Execute ozone sh bucket getacl s3v/${bucket} + ${group} = Get Regexp Matches ${acl} "GROUP" + IF '${group}' is not '[]' + ${json} = Evaluate json.loads('''${acl}''') json + # make sure this check is for group acl + Should contain ${json}[1][type] GROUP + Should contain ${json}[1][aclList] NONE + END \ No newline at end of file diff --git a/hadoop-ozone/dist/src/main/smoketest/s3/commonawslib.robot b/hadoop-ozone/dist/src/main/smoketest/s3/commonawslib.robot index 6f3bbef175d1..0b03f3c75e30 100644 --- a/hadoop-ozone/dist/src/main/smoketest/s3/commonawslib.robot +++ b/hadoop-ozone/dist/src/main/smoketest/s3/commonawslib.robot @@ -65,7 +65,8 @@ Setup v4 headers Setup secure v4 headers ${result} = Execute ozone s3 getsecret ${OM_HA_PARAM} ${accessKey} = Get Regexp Matches ${result} (?<=awsAccessKey=).* - ${accessKey} = Get Variable Value ${accessKey} sdsdasaasdasd + # Use a valid user that are created in the Docket image Ex: testuser if it is not a secure cluster + ${accessKey} = Get Variable Value ${accessKey} testuser ${secret} = Get Regexp Matches ${result} (?<=awsSecret=).* ${accessKey} = Set Variable ${accessKey[0]} ${secret} = Set Variable ${secret[0]} diff --git a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/OzoneClientProducer.java b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/OzoneClientProducer.java index ca8d32b48d4f..4df235cca323 100644 --- a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/OzoneClientProducer.java +++ b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/OzoneClientProducer.java @@ -66,6 +66,7 @@ public class OzoneClientProducer { @Produces public synchronized OzoneClient createClient() throws WebApplicationException, IOException { + ozoneConfiguration.set("ozone.om.group.rights", "NONE"); client = getClient(ozoneConfiguration); return client; }