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:28:12 UTC

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

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

Robert Levas resolved AMBARI-10476.
-----------------------------------
    Resolution: Fixed

Committed to trunk
{code}
commit 6f6106f326b0451dcc154818fb2a7d92a2f1d841
Author: Robert Levas <rl...@hortonworks.com>
Date:   Tue Apr 14 14:23:08 2015 -0400
{code}

> 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
>            Assignee: 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)