You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Robert Levas (JIRA)" <ji...@apache.org> on 2015/04/14 20:22:12 UTC

[jira] [Created] (AMBARI-10476) TestSqoopServiceCheck unit test fails due to AMBARI-10452

Robert Levas created AMBARI-10476:
-------------------------------------

             Summary: TestSqoopServiceCheck unit test fails due to AMBARI-10452
                 Key: AMBARI-10476
                 URL: https://issues.apache.org/jira/browse/AMBARI-10476
             Project: Ambari
          Issue Type: Bug
            Reporter: Robert Levas


{code}
----------------------------------------------------------------------
Failed tests:
FAIL: test_service_check_secured (test_service_check.TestSqoopServiceCheck)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.0.6/SQOOP/test_service_check.py", line 36, in test_service_check_secured
    user = 'ambari-qa'
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 225, in assertResourceCalled
    self.assertEquals(name, resource.name)
AssertionError: '/usr/bin/kinit  -kt /etc/security/keytabs/smokeuser.headless.keytab ambari-qa@EXAMPLE.COM' != u'kinit  -kt /etc/security/keytabs/smokeuser.headless.keytab ambari-qa@EXAMPLE.COM'

----------------------------------------------------------------------
{code}

This is due to the addition of code (resolving BUG-10452) used to dynamically locate the Kerberos utilities in a configured search path. If the specified utility (i.e., kinit) is not found, a relative path to the utility is returned.   

In the case, the machine that is executing the tests does not have {{kinit}} installed on it, therefore the path to it is generated as {{kinit}} - not an absolute path such as {{/usr/bin/kinit}}.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)