Browse Source

[filebrowser] Abstract DEFAULT_HDFS_SUPERUSER in the tests

Romain Rigaux 12 years ago
parent
commit
48295c5b3e
1 changed files with 1 additions and 1 deletions
  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
   # Access root
   try:
   try:
     statbuf = fs.stats('/')
     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'"))]
       return [(fs_config.WEBHDFS_URL, _("Filesystem root '/' should be owned by 'hdfs'"))]
   except Exception, ex:
   except Exception, ex:
     LOG.info("%s -- Validation error: %s" % (fs, ex))
     LOG.info("%s -- Validation error: %s" % (fs, ex))