Browse Source

HUE-2477 [fb] Make the FileBrowser tests re-entrant

Aggregate Hadoop tests in same Test class and use a regular user instead of
Hue admin / HDFS admin for running the tests.

Note that running it with mini cluster still works.
Romain Rigaux 10 năm trước cách đây
mục cha
commit
1e558c9565

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 349 - 433
apps/filebrowser/src/filebrowser/views_test.py


+ 4 - 0
desktop/libs/hadoop/src/hadoop/pseudo_hdfs4.py

@@ -63,6 +63,10 @@ class LiveHdfs():
     self.fs.do_as_user('test', self.fs.create_home_dir, '/user/test')
     self.fs.do_as_user('hue', self.fs.create_home_dir, '/user/hue')
 
+  @property
+  def superuser(self):
+    return self.fs.superuser
+
 
 class PseudoHdfs4(object):
   """Run HDFS and MR2 locally, in pseudo-distributed mode"""

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác