Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
1e558c9565

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 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"""

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels