You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ma...@apache.org on 2014/02/22 00:03:59 UTC

git commit: AMBARI-4785. Unit tests for the agents are failing with various mock objects not found. (Iryna Kuzmenko via mahadev)

Repository: ambari
Updated Branches:
  refs/heads/trunk 944e0f5e2 -> 60ea8da46


AMBARI-4785. Unit tests for the agents are failing with various mock objects not found. (Iryna Kuzmenko via mahadev)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/60ea8da4
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/60ea8da4
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/60ea8da4

Branch: refs/heads/trunk
Commit: 60ea8da46700d4e8994490188979a106f9fde134
Parents: 944e0f5
Author: Mahadev Konar <ma...@apache.org>
Authored: Fri Feb 21 15:03:51 2014 -0800
Committer: Mahadev Konar <ma...@apache.org>
Committed: Fri Feb 21 15:03:51 2014 -0800

----------------------------------------------------------------------
 .../test/python/resource_management/TestExecuteHadoopResource.py   | 2 +-
 .../test/python/resource_management/TestTemplateConfigResource.py  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/60ea8da4/ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py b/ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py
index ff4fd51..e357390 100644
--- a/ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py
+++ b/ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py
@@ -22,7 +22,7 @@ from resource_management import *
 from resource_management.libraries.resources.execute_hadoop\
   import ExecuteHadoop
 
-
+@patch.object(System, "os_family", new = 'redhat')
 class TestExecuteHadoopResource(TestCase):
   @patch("resource_management.core.providers.system.ExecuteProvider")
   def test_run_default_args(self, execute_mock):

http://git-wip-us.apache.org/repos/asf/ambari/blob/60ea8da4/ambari-agent/src/test/python/resource_management/TestTemplateConfigResource.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/test/python/resource_management/TestTemplateConfigResource.py b/ambari-agent/src/test/python/resource_management/TestTemplateConfigResource.py
index db88365..2808e63 100644
--- a/ambari-agent/src/test/python/resource_management/TestTemplateConfigResource.py
+++ b/ambari-agent/src/test/python/resource_management/TestTemplateConfigResource.py
@@ -22,7 +22,7 @@ from resource_management import *
 from resource_management.libraries.resources.template_config \
   import TemplateConfig
 
-
+@patch.object(System, "os_family", new = 'redhat')
 class TestTemplateConfigResource(TestCase):
 
   @patch("resource_management.libraries.providers.template_config.Template")