You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by rl...@apache.org on 2015/04/14 20:26:57 UTC

ambari git commit: AMBARI-10476. TestSqoopServiceCheck unit test fails due to AMBARI-10452 (rlevas)

Repository: ambari
Updated Branches:
  refs/heads/trunk f11e2f063 -> 6f6106f32


AMBARI-10476. TestSqoopServiceCheck unit test fails due to AMBARI-10452 (rlevas)


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

Branch: refs/heads/trunk
Commit: 6f6106f326b0451dcc154818fb2a7d92a2f1d841
Parents: f11e2f0
Author: Robert Levas <rl...@hortonworks.com>
Authored: Tue Apr 14 14:23:08 2015 -0400
Committer: Robert Levas <rl...@hortonworks.com>
Committed: Tue Apr 14 14:23:21 2015 -0400

----------------------------------------------------------------------
 .../src/test/python/stacks/2.0.6/SQOOP/test_service_check.py     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6f6106f3/ambari-server/src/test/python/stacks/2.0.6/SQOOP/test_service_check.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/SQOOP/test_service_check.py b/ambari-server/src/test/python/stacks/2.0.6/SQOOP/test_service_check.py
index 784bb29..7a13ede 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/SQOOP/test_service_check.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/SQOOP/test_service_check.py
@@ -19,6 +19,7 @@ limitations under the License.
 '''
 from mock.mock import MagicMock, call, patch
 from stacks.utils.RMFTestCase import *
+from resource_management.libraries.functions import get_kinit_path
 
 class TestSqoopServiceCheck(RMFTestCase):
   COMMON_SERVICES_PACKAGE_DIR = "SQOOP/1.4.4.2.0/package"
@@ -32,7 +33,8 @@ class TestSqoopServiceCheck(RMFTestCase):
                        hdp_stack_version = self.STACK_VERSION,
                        target = RMFTestCase.TARGET_COMMON_SERVICES
     )
-    self.assertResourceCalled('Execute', '/usr/bin/kinit  -kt /etc/security/keytabs/smokeuser.headless.keytab ambari-qa@EXAMPLE.COM',
+    kinit_path_local = get_kinit_path()
+    self.assertResourceCalled('Execute', kinit_path_local + '  -kt /etc/security/keytabs/smokeuser.headless.keytab ambari-qa@EXAMPLE.COM',
                               user = 'ambari-qa'
     )
     self.assertResourceCalled('Execute', 'sqoop version',