Repository: ambari Updated Branches: refs/heads/trunk 0ccded80f -> 568a1385f
AMBARI-8477. HDFS service components should indicate security state. (additional unit test fix) (robert levas via jaimin) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/568a1385 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/568a1385 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/568a1385 Branch: refs/heads/trunk Commit: 568a1385fd887d20b714545c6c7eb25646b7a35f Parents: 0ccded8 Author: Jaimin Jetly <[email protected]> Authored: Tue Dec 23 16:55:24 2014 -0800 Committer: Jaimin Jetly <[email protected]> Committed: Tue Dec 23 16:55:24 2014 -0800 ---------------------------------------------------------------------- .../src/test/python/resource_management/TestSecurityCommons.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/568a1385/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 e14f3b1..1658609 100644 --- a/ambari-agent/src/test/python/resource_management/TestSecurityCommons.py +++ b/ambari-agent/src/test/python/resource_management/TestSecurityCommons.py @@ -239,7 +239,7 @@ class TestSecurityCommons(TestCase): cached_kinit_executor(kinit_path, user, keytab_file, principal, hostname, temp_dir, expiration_time) self.assertTrue(new_cached_exec_mock.called) - new_cached_exec_mock.assert_called_with(key, file_path + os.sep + filename, kinit_path, user, principal, keytab_file, hostname) + new_cached_exec_mock.assert_called_with(key, file_path + os.sep + filename, kinit_path, user, keytab_file, principal, hostname) # Test that the makedirs function is called with correct path when the directory doesn't exist os_path_exists_mock.return_value = False @@ -268,4 +268,4 @@ class TestSecurityCommons(TestCase): cached_kinit_executor(kinit_path, user, keytab_file, principal, hostname, temp_dir, expiration_time) self.assertTrue(new_cached_exec_mock.called) - new_cached_exec_mock.assert_called_with(key, file_path + os.sep + filename, kinit_path, user, principal, keytab_file, hostname) + new_cached_exec_mock.assert_called_with(key, file_path + os.sep + filename, kinit_path, user, keytab_file, principal, hostname)
