You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Andrew Onischuk <ao...@hortonworks.com> on 2015/09/02 20:32:25 UTC
Review Request 38063: Ambari-server 'mvn clean test' fails when
Python 2.6 is picked up
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/38063/
-----------------------------------------------------------
Review request for Ambari and Myroslav Papirkovskyy.
Bugs: AMBARI-12982
https://issues.apache.org/jira/browse/AMBARI-12982
Repository: ambari
Description
-------
On my OSX system I have Python2.6 and Python2.7. I do not have any
`/usr/bin/python2`. When I run `mvn clean test` in ambari-server/, the python
tests fail with below message
======================================================================
ERROR: test_validateNonRootFs (test_stack_advisor.TestHDP206StackAdvisor)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/sgunturi/dev/git/ambari/ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py", line 997, in test_validateNonRootFs
self.assertIsNone(self.stackAdvisor.validatorNotRootFs(properties, 'property1', hostInfo))
AttributeError: 'TestHDP206StackAdvisor' object has no attribute 'assertIsNone'
It looks like `assertIsNone()` is not defined in unittest.TestCase for
Python2.6.
I started hitting this issue after AMBARI-12912
Diffs
-----
ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server_upgrade.py 78d25bc
ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_oozie_server.py 24ee07a
ambari-server/src/test/python/stacks/2.2/ACCUMULO/test_accumulo_client.py 1b518d4
Diff: https://reviews.apache.org/r/38063/diff/
Testing
-------
mvn clean test
Thanks,
Andrew Onischuk
Re: Review Request 38063: Ambari-server 'mvn clean test' fails when
Python 2.6 is picked up
Posted by Andrew Onischuk <ao...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/38063/
-----------------------------------------------------------
(Updated Sept. 2, 2015, 6:35 p.m.)
Review request for Ambari and Myroslav Papirkovskyy.
Bugs: AMBARI-12982
https://issues.apache.org/jira/browse/AMBARI-12982
Repository: ambari
Description
-------
On my OSX system I have Python2.6 and Python2.7. I do not have any
`/usr/bin/python2`. When I run `mvn clean test` in ambari-server/, the python
tests fail with below message
======================================================================
ERROR: test_validateNonRootFs (test_stack_advisor.TestHDP206StackAdvisor)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/sgunturi/dev/git/ambari/ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py", line 997, in test_validateNonRootFs
self.assertIsNone(self.stackAdvisor.validatorNotRootFs(properties, 'property1', hostInfo))
AttributeError: 'TestHDP206StackAdvisor' object has no attribute 'assertIsNone'
It looks like `assertIsNone()` is not defined in unittest.TestCase for
Python2.6.
I started hitting this issue after AMBARI-12912
Diffs (updated)
-----
ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server_upgrade.py 78d25bc
ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_oozie_server.py 24ee07a
ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py 86a34d9
Diff: https://reviews.apache.org/r/38063/diff/
Testing
-------
mvn clean test
Thanks,
Andrew Onischuk
Re: Review Request 38063: Ambari-server 'mvn clean test' fails when
Python 2.6 is picked up
Posted by Andrew Onischuk <ao...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/38063/
-----------------------------------------------------------
(Updated Sept. 2, 2015, 6:34 p.m.)
Review request for Ambari and Myroslav Papirkovskyy.
Bugs: AMBARI-12982
https://issues.apache.org/jira/browse/AMBARI-12982
Repository: ambari
Description
-------
On my OSX system I have Python2.6 and Python2.7. I do not have any
`/usr/bin/python2`. When I run `mvn clean test` in ambari-server/, the python
tests fail with below message
======================================================================
ERROR: test_validateNonRootFs (test_stack_advisor.TestHDP206StackAdvisor)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/sgunturi/dev/git/ambari/ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py", line 997, in test_validateNonRootFs
self.assertIsNone(self.stackAdvisor.validatorNotRootFs(properties, 'property1', hostInfo))
AttributeError: 'TestHDP206StackAdvisor' object has no attribute 'assertIsNone'
It looks like `assertIsNone()` is not defined in unittest.TestCase for
Python2.6.
I started hitting this issue after AMBARI-12912
Diffs (updated)
-----
ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server_upgrade.py 78d25bc
ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_oozie_server.py 24ee07a
ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py 86a34d9
Diff: https://reviews.apache.org/r/38063/diff/
Testing
-------
mvn clean test
Thanks,
Andrew Onischuk