Browse Source

[hadoop] Remove old test jars

Fix some test URL
Romain Rigaux 12 years ago
parent
commit
cdc13b3

+ 1 - 2
apps/beeswax/src/beeswax/server/dbms.py

@@ -27,10 +27,9 @@ from desktop.conf import KERBEROS
 from filebrowser.views import location_to_url
 
 from beeswax.conf import BEESWAX_SERVER_HOST, BEESWAX_SERVER_PORT,\
-  BROWSE_PARTITIONED_TABLE_LIMIT
+  BROWSE_PARTITIONED_TABLE_LIMIT, SERVER_INTERFACE
 from beeswax.design import hql_query
 from beeswax.models import QueryHistory, HIVE_SERVER2
-from beeswax.conf import SERVER_INTERFACE
 
 
 LOG = logging.getLogger(__name__)

+ 1 - 2
apps/beeswax/src/beeswax/tests.py

@@ -804,7 +804,7 @@ for x in sys.stdin:
 
     # Check popup
     resp = self.client.get('/beeswax/install_examples')
-    assert_true('Install sample tables' in resp.content)
+    assert_true('POST request is required.' in json.loads(resp.content)['message'])
 
     self.client.post('/beeswax/install_examples')
 
@@ -818,7 +818,6 @@ for x in sys.stdin:
     assert_true('Sample: Job loss' in resp.content)
     assert_true('Sample: Salary growth' in resp.content)
     assert_true('Sample: Top salary' in resp.content)
-    assert_true(beeswax.models.MetaInstall.get().installed_example)
 
     # Now install it a second time, and no error
     resp = self.client.post('/beeswax/install_examples')

+ 1 - 1
apps/jobbrowser/src/jobbrowser/tests.py

@@ -138,7 +138,7 @@ class TestJobBrowserWithHadoop(unittest.TestCase, OozieServerProvider):
     if _INITIALIZED:
       return
 
-    self.client.post(reverse('oozie:setup_app'))
+    self.client.post(reverse('oozie:install_examples'))
     self.cluster.fs.do_as_user(self.username, self.cluster.fs.create_home_dir, self.home_dir)
     self.cluster.fs.do_as_superuser(self.cluster.fs.chmod, self.home_dir, 0777, True)
     hue = User.objects.create_user('hue', 'hue' + '@localhost', 'hue')

BIN
desktop/libs/hadoop/src/hadoop/test_jars/hadoop-hdfs-0.23.0-cdh4b1-tests.jar


BIN
desktop/libs/hadoop/src/hadoop/test_jars/junit-4.8.1.jar


BIN
desktop/libs/hadoop/src/hadoop/test_jars/mockito-all-1.8.5.jar