Ejemplo n.º 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"
         ),
     )
Ejemplo n.º 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
Ejemplo n.º 3
0
Archivo: hdfs.py Proyecto: 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
Ejemplo n.º 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"))