[pig] Skip Pig job submission tests if Hue 4 is enabled
@@ -25,6 +25,7 @@ from django.core.urlresolvers import reverse
from nose.plugins.skip import SkipTest
from nose.tools import assert_true, assert_equal, assert_false
+from desktop.conf import IS_HUE_4
from desktop.lib.django_test_util import make_logged_in_client
from desktop.lib.test_utils import grant_access
from desktop.models import SAMPLE_USER_ID
@@ -32,6 +33,7 @@ from hadoop import pseudo_hdfs4
from hadoop.pseudo_hdfs4 import is_live_cluster
from liboozie.oozie_api_tests import OozieServerProvider
from liboozie.conf import SECURITY_ENABLED
+
from oozie.tests import OozieBase
from pig.models import create_or_update_script, PigScript
@@ -257,6 +259,7 @@ class TestWithHadoop(OozieBase):
if is_live_cluster():
raise SkipTest('HUE-2909: Skipping because test is not reentrant')
+ if not IS_HUE_4.get():
script = PigScript.objects.get(id=SAMPLE_USER_ID)
script_dict = script.dict
@@ -277,6 +280,7 @@ class TestWithHadoop(OozieBase):
self.wait_until_completion(job_id)
def test_stop(self):
+ if not IS_HUE_4.get():
script = PigScript.objects.get(id=SAMPLE_USER_ID)
script_dict = script.dict
