Search in sources :

Example 6 with GroupGrantee

use of com.amazonaws.services.s3.model.GroupGrantee in project alluxio by Alluxio.

the class S3AUtilsTest method translateEveryoneWritePermission.

@Test
public void translateEveryoneWritePermission() {
    GroupGrantee allUsersGrantee = GroupGrantee.AllUsers;
    mAcl.grantPermission(allUsersGrantee, Permission.Write);
    Assert.assertEquals((short) 0200, S3AUtils.translateBucketAcl(mAcl, ID));
    Assert.assertEquals((short) 0200, S3AUtils.translateBucketAcl(mAcl, OTHER_ID));
}
Also used : GroupGrantee(com.amazonaws.services.s3.model.GroupGrantee) Test(org.junit.Test)

Aggregations

GroupGrantee (com.amazonaws.services.s3.model.GroupGrantee)6 Test (org.junit.Test)6