ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yusaku Sako (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AMBARI-8024) [Test] ambari-server unit test failures: "Index out of range" error
Date Thu, 30 Oct 2014 21:33:34 GMT

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

Yusaku Sako resolved AMBARI-8024.
---------------------------------
    Resolution: Fixed

Committed to branch-windows-dev.

> [Test] ambari-server unit test failures: "Index out of range" error
> -------------------------------------------------------------------
>
>                 Key: AMBARI-8024
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8024
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-server
>    Affects Versions: branch-windows-dev
>         Environment: Linux
>            Reporter: Florian Barca
>            Assignee: Florian Barca
>             Fix For: branch-windows-dev
>
>         Attachments: AMBARI-8024.1.patch, AMBARI-8024.2.patch
>
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
> 12 unit test failures with similar output:
> Running tests for stack:1.3.2 service:before-ANY
> test_hook_default (test_before_any.TestHookBeforeInstall) ... ERROR
> ======================================================================
> ERROR: test_hook_default (test_before_any.TestHookBeforeInstall)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Users/fbarca/ambari-vagrant/centos6.4/ambari/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
>     return func(*args, **keywargs)
>   File "/Users/fbarca/ambari-vagrant/centos6.4/ambari/ambari-server/src/test/python/stacks/1.3.2/hooks/before-ANY/test_before_any.py",
line 132, in test_hook_default
>     content = StaticFile('changeToSecureUid.sh'),
>   File "/Users/fbarca/ambari-vagrant/centos6.4/ambari/ambari-common/src/main/python/resource_management/core/source.py",
line 59, in __init__
>     super(StaticFile, self).__init__(name)
>   File "/Users/fbarca/ambari-vagrant/centos6.4/ambari/ambari-common/src/main/python/resource_management/core/source.py",
line 37, in __init__
>     self.env = Environment.get_instance()
>   File "/Users/fbarca/ambari-vagrant/centos6.4/ambari/ambari-common/src/main/python/resource_management/core/environment.py",
line 164, in get_instance
>     return cls._instances[-1]
> IndexError: list index out of range
> ----------------------------------------------------------------------
> Ran 1 test in 0.020s
> FAILED (errors=1)



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

Mime
View raw message