You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Jayush Luniya (JIRA)" <ji...@apache.org> on 2015/01/29 19:04:34 UTC

[jira] [Resolved] (AMBARI-9404) Unit test failures in trunk

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

Jayush Luniya resolved AMBARI-9404.
-----------------------------------
    Resolution: Fixed

> Unit test failures in trunk
> ---------------------------
>
>                 Key: AMBARI-9404
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9404
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Jayush Luniya
>            Assignee: Jayush Luniya
>            Priority: Blocker
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-9404.patch
>
>
> Noticed unit tests are failing in trunk due to https://issues.apache.org/jira/browse/AMBARI-9270
> ======================================================================
> ERROR: test_configure_default (test_knox_gateway.TestKnoxGateway)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.2/KNOX/test_knox_gateway.py", line 34, in test_configure_default
>     target = RMFTestCase.TARGET_COMMON_SERVICES
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 134, in executeScript
>     method(RMFTestCase.env)
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/knox_gateway.py", line 62, in configure
>     import params
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params.py", line 31, in <module>
>     from params_linux import *
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py", line 32, in <module>
>     if hdp_stack_version != "" and compare_versions(hdp_stack_version, '2.2') >= 0:
> NameError: name 'hdp_stack_version' is not defined
> ======================================================================
> ERROR: test_pre_rolling_restart (test_knox_gateway.TestKnoxGateway)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
>     return func(*args, **keywargs)
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.2/KNOX/test_knox_gateway.py", line 211, in test_pre_rolling_restart
>     target = RMFTestCase.TARGET_COMMON_SERVICES)
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 134, in executeScript
>     method(RMFTestCase.env)
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/main/python/ambari_commons/os_family_impl.py", line 89, in thunk
>     return fn(*args, **kwargs)
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/knox_gateway.py", line 69, in pre_rolling_restart
>     import params
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params.py", line 31, in <module>
>     from params_linux import *
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py", line 32, in <module>
>     if hdp_stack_version != "" and compare_versions(hdp_stack_version, '2.2') >= 0:
> NameError: name 'hdp_stack_version' is not defined
> ----------------------------------------------------------------------



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