瀏覽代碼

[liboozie] Fix live cluster tests on cluster without MR1

Erick Tryzelaar 10 年之前
父節點
當前提交
e1090d9

+ 2 - 0
desktop/libs/liboozie/src/liboozie/submittion2_tests.py

@@ -187,7 +187,9 @@ class TestSubmission(OozieMockBase):
 
   def test_update_properties(self):
     finish = []
+    finish.append(MR_CLUSTERS.set_for_testing({'default': {}}))
     finish.append(MR_CLUSTERS['default'].SUBMIT_TO.set_for_testing(True))
+    finish.append(YARN_CLUSTERS.set_for_testing({'default': {}}))
     finish.append(YARN_CLUSTERS['default'].SUBMIT_TO.set_for_testing(True))
     try:
       properties = {

+ 2 - 0
desktop/libs/liboozie/src/liboozie/submittion_tests.py

@@ -165,7 +165,9 @@ class TestSubmission(OozieMockBase):
 
   def test_update_properties(self):
     finish = []
+    finish.append(MR_CLUSTERS.set_for_testing({'default': {}}))
     finish.append(MR_CLUSTERS['default'].SUBMIT_TO.set_for_testing(True))
+    finish.append(YARN_CLUSTERS.set_for_testing({'default': {}}))
     finish.append(YARN_CLUSTERS['default'].SUBMIT_TO.set_for_testing(True))
     try:
       properties = {