AMBARI-7467. TestExecuteHadoopResource.py failed (dlysnichenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/1977a125 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1977a125 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1977a125 Branch: refs/heads/branch-alerts-dev Commit: 1977a1254653dc1e42c7567872bc6764fe58b270 Parents: 1ea56f9 Author: Lisnichenko Dmitro <[email protected]> Authored: Wed Sep 24 11:48:56 2014 +0300 Committer: Lisnichenko Dmitro <[email protected]> Committed: Wed Sep 24 11:52:43 2014 +0300 ---------------------------------------------------------------------- .../resource_management/TestExecuteHadoopResource.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/1977a125/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 3354146..d2ef71c 100644 --- a/ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py +++ b/ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py @@ -43,7 +43,7 @@ class TestExecuteHadoopResource(TestCase): 'tries': 1, 'user': 'user', 'try_sleep': 0, - 'path': [None]}) + 'path': []}) @patch("resource_management.core.providers.system.ExecuteProvider") @@ -67,7 +67,7 @@ class TestExecuteHadoopResource(TestCase): 'tries': 1, 'user': 'user', 'try_sleep': 0, - 'path': [None]}) + 'path': []}) @patch("resource_management.core.providers.system.ExecuteProvider") @@ -96,7 +96,7 @@ class TestExecuteHadoopResource(TestCase): 'tries': 2, 'user': 'user', 'try_sleep': 2, - 'path': [None]}) + 'path': []}) @patch("resource_management.core.providers.system.ExecuteProvider") @@ -122,13 +122,13 @@ class TestExecuteHadoopResource(TestCase): 'tries': 1, 'user': 'user', 'try_sleep': 0, - 'path': [None]}) + 'path': []}) self.assertEqual(execute_mock.call_args_list[1][0][0].arguments, {'logoutput': False, 'tries': 1, 'user': 'user', 'try_sleep': 0, - 'path': [None]}) + 'path': []}) @patch("resource_management.core.providers.system.ExecuteProvider") @@ -181,7 +181,7 @@ class TestExecuteHadoopResource(TestCase): 'tries': 1, 'user': 'user', 'try_sleep': 0, - 'path': [None]}) + 'path': []}) @patch("resource_management.core.providers.system.ExecuteProvider") @@ -229,4 +229,4 @@ class TestExecuteHadoopResource(TestCase): self.assertEqual(execute_mock.call_args_list[0][0][0].command, 'path -kt keytab principal') self.assertEqual(execute_mock.call_args_list[1][0][0].command, - 'hadoop --config conf_dir command') \ No newline at end of file + 'hadoop --config conf_dir command')
