Repository: ambari
Updated Branches:
  refs/heads/trunk 395adf5af -> fd75adfad


AMBARI-20500. Python UT fail on trunk (aonishuk)


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

Branch: refs/heads/trunk
Commit: fd75adfad6575810a540a1c2e2778ef1c16a695d
Parents: 395adf5
Author: Andrew Onishuk <[email protected]>
Authored: Mon Mar 20 17:20:53 2017 +0200
Committer: Andrew Onishuk <[email protected]>
Committed: Mon Mar 20 17:20:53 2017 +0200

----------------------------------------------------------------------
 .../src/test/python/resource_management/TestSecurityCommons.py  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/fd75adfa/ambari-agent/src/test/python/resource_management/TestSecurityCommons.py
----------------------------------------------------------------------
diff --git 
a/ambari-agent/src/test/python/resource_management/TestSecurityCommons.py 
b/ambari-agent/src/test/python/resource_management/TestSecurityCommons.py
index b44b454..870ca92 100644
--- a/ambari-agent/src/test/python/resource_management/TestSecurityCommons.py
+++ b/ambari-agent/src/test/python/resource_management/TestSecurityCommons.py
@@ -162,8 +162,9 @@ class TestSecurityCommons(TestCase):
     print result
 
   @patch('xml.etree.ElementTree.parse')
-  def test_get_params_from_filesystem(self, et_parser_mock):
-
+  @patch('os.path.isfile')
+  def test_get_params_from_filesystem(self, file_exists_mock, et_parser_mock):
+    file_exists_mock.return_value = True
     conf_dir = gettempdir()
     config_file = {
       "config.xml": FILE_TYPE_XML

Reply via email to