[ 
https://issues.apache.org/jira/browse/AMBARI-10476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Levas updated AMBARI-10476:
----------------------------------
          Component/s: ambari-server
    Affects Version/s: 2.1.0
        Fix Version/s: 2.1.0

> 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
>          Components: ambari-server
>    Affects Versions: 2.1.0
>            Reporter: Robert Levas
>            Assignee: Robert Levas
>             Fix For: 2.1.0
>
>
> {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 [email protected]' != 
> u'kinit  -kt /etc/security/keytabs/smokeuser.headless.keytab 
> [email protected]'
> ----------------------------------------------------------------------
> {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)

Reply via email to