You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Florian Barca (JIRA)" <ji...@apache.org> on 2014/10/29 20:37:34 UTC

[jira] [Updated] (AMBARI-8026) [Test] ambari-server unit test failures: AttributeError

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

Florian Barca updated AMBARI-8026:
----------------------------------
    Attachment: AMBARI-8026.1.patch

+Fixed method names
+Added the missing mock import directive

> [Test] ambari-server unit test failures: AttributeError
> -------------------------------------------------------
>
>                 Key: AMBARI-8026
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8026
>             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-8026.1.patch
>
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
> ERROR: test_ambariServerSetupWithCustomDbName (TestAmbariServer.TestAmbariServer)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Users/fbarca/ambari-vagrant/centos6.4/ambari/ambari-common/src/test/python/mock/mock.py", line 1191, in patched
>     arg = patching.__enter__()
>   File "/Users/fbarca/ambari-vagrant/centos6.4/ambari/ambari-common/src/test/python/mock/mock.py", line 1266, in __enter__
>     original, local = self.get_original()
>   File "/Users/fbarca/ambari-vagrant/centos6.4/ambari/ambari-common/src/test/python/mock/mock.py", line 1240, in get_original
>     "%s does not have the attribute %r" % (target, name)
> AttributeError: <module 'ambari-server' from '/Users/fbarca/ambari-vagrant/centos6.4/ambari/ambari-server/src/main/python/ambari-server.py'> does not have the attribute 'download_and_install_jdk'
> ERROR: test_reset (TestAmbariServer.TestAmbariServer)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Users/fbarca/ambari-vagrant/centos6.4/ambari/ambari-common/src/test/python/mock/mock.py", line 1191, in patched
>     arg = patching.__enter__()
>   File "/Users/fbarca/ambari-vagrant/centos6.4/ambari/ambari-common/src/test/python/mock/mock.py", line 1266, in __enter__
>     original, local = self.get_original()
>   File "/Users/fbarca/ambari-vagrant/centos6.4/ambari/ambari-common/src/test/python/mock/mock.py", line 1240, in get_original
>     "%s does not have the attribute %r" % (target, name)
> AttributeError: <module 'ambari-server' from '/Users/fbarca/ambari-vagrant/centos6.4/ambari/ambari-server/src/main/python/ambari-server.py'> does not have the attribute 'is_server_running'



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