예제 #1
0
 def test_getfacl(self):
     hdfs_client.getfacl(
         "/tmp/test",
         executor=lambda command, *args: self.assertEqual(
             build_command(command, *args), "hadoop fs -getfacl /tmp/test"
         ),
     )
예제 #2
0
 def get_acls(self):
     """
     Returns the ACLs of files and directories.
     If a directory has a default ACL, getfacl also displays the default ACL.
     """
     _result = fs.getfacl(self.path)
     return str(_result.stdout).splitlines() if _result.is_ok() else None
예제 #3
0
파일: hdfs.py 프로젝트: epam/Merlin
 def get_acls(self):
     """
     Returns the ACLs of files and directories.
     If a directory has a default ACL, getfacl also displays the default ACL.
     """
     _result = fs.getfacl(self.path)
     return str(_result.stdout).splitlines() if _result.is_ok() else None
예제 #4
0
 def test_getfacl(self):
     hdfs_client.getfacl(
         "/tmp/test",
         executor=lambda command, *args: self.assertEqual(
             build_command(command, *args), "hadoop fs -getfacl /tmp/test"))