ソースを参照

AMBARI-8477. HDFS service components should indicate security state. (additional unit test fix) (robert levas via jaimin)

Jaimin Jetly 10 年 前
コミット
568a1385fd

+ 2 - 2
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)