anmolanmol1234 commented on code in PR #7868:
URL: https://github.com/apache/hadoop/pull/7868#discussion_r2281359848
##########
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAzureBlobFilesystemAcl.java:
##########
@@ -238,41 +276,46 @@ public void testModifyAclEntriesStickyBit() throws
Exception {
fs.modifyAclEntries(path, aclSpec);
AclStatus s = fs.getAclStatus(path);
AclEntry[] returned = s.getEntries().toArray(new AclEntry[0]);
- assertArrayEquals(new AclEntry[]{aclEntry(ACCESS, USER, FOO, READ_EXECUTE),
- aclEntry(ACCESS, GROUP, READ_EXECUTE), aclEntry(DEFAULT, USER, ALL),
- aclEntry(DEFAULT, USER, FOO, READ_EXECUTE), aclEntry(DEFAULT, GROUP,
READ_EXECUTE),
- aclEntry(DEFAULT, MASK, READ_EXECUTE), aclEntry(DEFAULT, OTHER, NONE)},
+ assertArrayEquals(new AclEntry[]{
+ aclEntry(ACCESS, USER, FOO, READ_EXECUTE),
+ aclEntry(ACCESS, GROUP, READ_EXECUTE),
+ aclEntry(DEFAULT, USER, ALL),
+ aclEntry(DEFAULT, USER, FOO, READ_EXECUTE),
+ aclEntry(DEFAULT, GROUP, READ_EXECUTE),
+ aclEntry(DEFAULT, MASK, READ_EXECUTE),
+ aclEntry(DEFAULT, OTHER, NONE)
+ },
returned);
assertPermission(fs, (short) 01750);
}
@Test
public void testModifyAclEntriesPathNotFound() throws Exception {
- Assertions.assertThrows(FileNotFoundException.class, () -> {
- final AzureBlobFileSystem fs = this.getFileSystem();
- assumeTrue(getIsNamespaceEnabled(fs));
- path = new Path(testRoot, UUID.randomUUID().toString());
- List<AclEntry> aclSpec = Lists.newArrayList(
- aclEntry(ACCESS, USER, ALL),
- aclEntry(ACCESS, USER, FOO, ALL),
- aclEntry(ACCESS, GROUP, READ_EXECUTE),
- aclEntry(ACCESS, OTHER, NONE));
- fs.modifyAclEntries(path, aclSpec);
- });
+ assumeTrue(getIsNamespaceEnabled(getFileSystem()));
+ Assertions.assertThrows(FileNotFoundException.class, () -> {
+ final AzureBlobFileSystem fs = this.getFileSystem();
+ path = new Path(testRoot, UUID.randomUUID().toString());
+ List<AclEntry> aclSpec = Lists.newArrayList(
+ aclEntry(ACCESS, USER, ALL),
+ aclEntry(ACCESS, USER, FOO, ALL),
+ aclEntry(ACCESS, GROUP, READ_EXECUTE),
+ aclEntry(ACCESS, OTHER, NONE));
+ fs.modifyAclEntries(path, aclSpec);
+ });
}
@Test
public void testModifyAclEntriesDefaultOnFile() throws Exception {
- Assertions.assertThrows(Exception.class, () -> {
- final AzureBlobFileSystem fs = this.getFileSystem();
- assumeTrue(getIsNamespaceEnabled(fs));
- path = new Path(testRoot, UUID.randomUUID().toString());
- fs.create(path).close();
- fs.setPermission(path, FsPermission.createImmutable((short) RW_R));
- List<AclEntry> aclSpec = Lists.newArrayList(
- aclEntry(DEFAULT, USER, FOO, ALL));
- fs.modifyAclEntries(path, aclSpec);
- });
+ Assertions.assertThrows(Exception.class, () -> {
+ final AzureBlobFileSystem fs = this.getFileSystem();
Review Comment:
same as above, only space changes can be reverted
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]