Jelajahi Sumber

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 tahun lalu
induk
melakukan
1e558c9

File diff ditekan karena terlalu besar
+ 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"""

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini