|
@@ -740,6 +740,83 @@
|
|
|
</comparator>
|
|
|
</comparators>
|
|
|
</test>
|
|
|
+ <test>
|
|
|
+ <!-- Added to verify HDFS-14359 -->
|
|
|
+ <description>setfacl : check inherit default ACL to ancestor dir with mkdir -p</description>
|
|
|
+ <test-commands>
|
|
|
+ <command>-fs NAMENODE -mkdir /dir1</command>
|
|
|
+ <command>-fs NAMENODE -setfacl -m default:user:charlie:r-x,default:group:admin:rwx /dir1</command>
|
|
|
+ <command>-fs NAMENODE -mkdir -p /dir1/dir2/dir3</command>
|
|
|
+ <command>-fs NAMENODE -getfacl /dir1/dir2</command>
|
|
|
+ </test-commands>
|
|
|
+ <cleanup-commands>
|
|
|
+ <command>-fs NAMENODE -rm -R /dir1</command>
|
|
|
+ </cleanup-commands>
|
|
|
+ <comparators>
|
|
|
+ <comparator>
|
|
|
+ <type>SubstringComparator</type>
|
|
|
+ <expected-output># file: /dir1/dir2</expected-output>
|
|
|
+ </comparator>
|
|
|
+ <comparator>
|
|
|
+ <type>SubstringComparator</type>
|
|
|
+ <expected-output># owner: USERNAME</expected-output>
|
|
|
+ </comparator>
|
|
|
+ <comparator>
|
|
|
+ <type>SubstringComparator</type>
|
|
|
+ <expected-output># group: supergroup</expected-output>
|
|
|
+ </comparator>
|
|
|
+ <comparator>
|
|
|
+ <type>SubstringComparator</type>
|
|
|
+ <expected-output>user::rwx</expected-output>
|
|
|
+ </comparator>
|
|
|
+ <comparator>
|
|
|
+ <!-- Ensure there is no #effective comment after the permissions, masking them -->
|
|
|
+ <type>RegexpComparator</type>
|
|
|
+ <expected-output>^user:charlie:r-x$</expected-output>
|
|
|
+ </comparator>
|
|
|
+ <comparator>
|
|
|
+ <type>SubstringComparator</type>
|
|
|
+ <expected-output>group::r-x</expected-output>
|
|
|
+ </comparator>
|
|
|
+ <comparator>
|
|
|
+ <!-- Ensure there is no #effective comment after the permissions, masking them -->
|
|
|
+ <type>RegexpComparator</type>
|
|
|
+ <expected-output>^group:admin:rwx$</expected-output>
|
|
|
+ </comparator>
|
|
|
+ <comparator>
|
|
|
+ <type>RegexpComparator</type>
|
|
|
+ <expected-output>^mask::rwx$</expected-output>
|
|
|
+ </comparator>
|
|
|
+ <comparator>
|
|
|
+ <type>SubstringComparator</type>
|
|
|
+ <expected-output>default:user::rwx</expected-output>
|
|
|
+ </comparator>
|
|
|
+ <comparator>
|
|
|
+ <type>SubstringComparator</type>
|
|
|
+ <expected-output>default:user:charlie:r-x</expected-output>
|
|
|
+ </comparator>
|
|
|
+ <comparator>
|
|
|
+ <type>SubstringComparator</type>
|
|
|
+ <expected-output>default:group::r-x</expected-output>
|
|
|
+ </comparator>
|
|
|
+ <comparator>
|
|
|
+ <type>SubstringComparator</type>
|
|
|
+ <expected-output>default:group:admin:rwx</expected-output>
|
|
|
+ </comparator>
|
|
|
+ <comparator>
|
|
|
+ <type>SubstringComparator</type>
|
|
|
+ <expected-output>default:mask::rwx</expected-output>
|
|
|
+ </comparator>
|
|
|
+ <comparator>
|
|
|
+ <type>SubstringComparator</type>
|
|
|
+ <expected-output>default:other::r-x</expected-output>
|
|
|
+ </comparator>
|
|
|
+ <comparator>
|
|
|
+ <type>SubstringComparator</type>
|
|
|
+ <expected-output>other::r-x</expected-output>
|
|
|
+ </comparator>
|
|
|
+ </comparators>
|
|
|
+ </test>
|
|
|
<test>
|
|
|
<description>getfacl -R : recursive</description>
|
|
|
<test-commands>
|