소스 검색

[filebrowser] Abstract DEFAULT_HDFS_SUPERUSER in the tests

Romain Rigaux 12 년 전
부모
커밋
48295c5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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))