ambari-dev mailing list archives

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

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

Vitaly Brodetskyi updated AMBARI-12690:
---------------------------------------
    Attachment: AMBARI-12690.patch

> 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
>    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