Explorar el Código

[filebrowser] Abstract DEFAULT_HDFS_SUPERUSER in the tests

Romain Rigaux hace 12 años
padre
commit
48295c5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      desktop/libs/hadoop/src/hadoop/fs/webhdfs.py

+ 1 - 1
desktop/libs/hadoop/src/hadoop/fs/webhdfs.py

@@ -766,7 +766,7 @@ def test_fs_configuration(fs_config):
   # Access root
   try:
     statbuf = fs.stats('/')
-    if statbuf.user != 'hdfs':
+    if statbuf.user != DEFAULT_HDFS_SUPERUSER:
       return [(fs_config.WEBHDFS_URL, _("Filesystem root '/' should be owned by 'hdfs'"))]
   except Exception, ex:
     LOG.info("%s -- Validation error: %s" % (fs, ex))