ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-12690) Fix python unittest to run on python 2.6
Date Mon, 10 Aug 2015 16:34:46 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-12690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14680326#comment-14680326
] 

Hudson commented on AMBARI-12690:
---------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #3252 (See [https://builds.apache.org/job/Ambari-trunk-Commit/3252/])
AMBARI-12690. Fix python unittest to run on python 2.6.(vbrodetskyi) (vbrodetskyi: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=bbb2bdc188086c0f04cadfcda140605408a95eb9)
* ambari-agent/src/test/python/ambari_agent/TestActionQueue.py
* ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py


> Fix python unittest to run on python 2.6
> ----------------------------------------
>
>                 Key: AMBARI-12690
>                 URL: https://issues.apache.org/jira/browse/AMBARI-12690
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-agent, ambari-server
>    Affects Versions: 2.2.0
>            Reporter: Vitaly Brodetskyi
>            Assignee: Vitaly Brodetskyi
>             Fix For: 2.2.0
>
>         Attachments: AMBARI-12690.patch
>
>
> Agent and server python unittest fail on python 2.6
> Agent
> {code}
> Traceback (most recent call last):
>   File "/home/user/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in
patched
>     return func(*args, **keywargs)
>   File "/home/user/ambari/ambari-agent/src/test/python/ambari_agent/TestActionQueue.py",
line 260, in test_ActionQueueStartStop
>     self.assertGreater(process_command_mock.call_count, 1)
> AttributeError: 'TestActionQueue' object has no attribute 'assertGreater'
> {code}
> Server:
> {code}
> ERROR: test_validateNonRootFs (test_stack_advisor.TestHDP206StackAdvisor)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/user/ambari/ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py",
line 973, in test_validateNonRootFs
>     self.assertIsNone(self.stackAdvisor.validatorNotRootFs(properties, 'property1', hostInfo))
> AttributeError: 'TestHDP206StackAdvisor' object has no attribute 'assertIsNone'
> ERROR: test_validateNonRootFs (test_stack_advisor.TestHDP206StackAdvisor)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/user/ambari/ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py",
line 973, in test_validateNonRootFs
>     self.assertIsNone(self.stackAdvisor.validatorNotRootFs(properties, 'property1', hostInfo))
> AttributeError: 'TestHDP206StackAdvisor' object has no attribute 'assertIsNone'
> {code}



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

Mime
View raw message