Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions hadoop-ozone/dist/src/main/smoketest/s3/bucketcreate.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion hadoop-ozone/dist/src/main/smoketest/s3/commonawslib.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down