You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ds...@apache.org on 2015/12/13 19:49:36 UTC

ambari git commit: AMBARI-14359 Ambari Agent UT failure for branch-2.2: test_do_cleanup_with_skip (dsen)

Repository: ambari
Updated Branches:
  refs/heads/trunk 869ecc234 -> c6ed60860


AMBARI-14359 Ambari Agent UT failure for branch-2.2: test_do_cleanup_with_skip (dsen)


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

Branch: refs/heads/trunk
Commit: c6ed608602b1376d8a087f3e246f08d7e2b70a8e
Parents: 869ecc2
Author: Dmytro Sen <ds...@apache.org>
Authored: Sun Dec 13 20:49:22 2015 +0200
Committer: Dmytro Sen <ds...@apache.org>
Committed: Sun Dec 13 20:49:22 2015 +0200

----------------------------------------------------------------------
 ambari-agent/src/test/python/ambari_agent/TestHostCleanup.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c6ed6086/ambari-agent/src/test/python/ambari_agent/TestHostCleanup.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/test/python/ambari_agent/TestHostCleanup.py b/ambari-agent/src/test/python/ambari_agent/TestHostCleanup.py
index 78cf4c2..7cfebe8 100644
--- a/ambari-agent/src/test/python/ambari_agent/TestHostCleanup.py
+++ b/ambari-agent/src/test/python/ambari_agent/TestHostCleanup.py
@@ -289,6 +289,9 @@ class TestHostCleanup(TestCase):
     HostCleanup.SKIP_LIST = oldSkipList
     sys.stdout = sys.__stdout__
 
+  @patch("os.stat")
+  @patch("os.path.join")
+  @patch("os.listdir")
   @patch.object(HostCleanup.HostCleanup, 'do_clear_cache')
   @patch.object(HostCleanup.HostCleanup, 'find_repo_files_for_repos')
   @patch.object(OSCheck, "get_os_type")
@@ -301,7 +304,8 @@ class TestHostCleanup(TestCase):
                       do_delete_users_method,
                       do_erase_dir_silent_method,
                       do_erase_files_silent_method, do_kill_processes_method,
-                      get_os_type_method, find_repo_files_for_repos_method, clear_cache_mock):
+                      get_os_type_method, find_repo_files_for_repos_method,
+                      clear_cache_mock, listdir_mock, join_mock, stat_mock):
 
     out = StringIO.StringIO()
     sys.stdout = out