Ver Fonte

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 há 10 anos atrás
pai
commit
1e558c9

Diff do ficheiro suprimidas por serem muito extensas
+ 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"""

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff