Florian Barca created AMBARI-9342:
-------------------------------------
Summary: Unittest fail with python 2.6
Key: AMBARI-9342
URL: https://issues.apache.org/jira/browse/AMBARI-9342
Project: Ambari
Issue Type: Bug
Components: ambari-server
Affects Versions: 2.0.0
Environment: Python 2.6
Centos 6
Reporter: Florian Barca
Assignee: Florian Barca
Fix For: 2.0.0
Failed tests:
ERROR: test_main_test_stop (TestAmbariServer.TestAmbariServer)
----------------------------------------------------------------------
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-server/src/test/python/TestAmbariServer.py",
line 541, in test_main_test_stop
self.assertIsNone(options.exit_message)
AttributeError: 'TestAmbariServer' object has no attribute 'assertIsNone'
ERROR: test_start (TestAmbariServer.TestAmbariServer)
----------------------------------------------------------------------
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-server/src/test/python/TestAmbariServer.py",
line 3312, in test_start
_ambari_server_.start(args)
File
"/home/user/ambari/ambari-common/src/main/python/ambari_commons/os_family_impl.py",
line 89, in thunk
return fn(*args, **kwargs)
File "/home/user/ambari/ambari-server/src/main/python/ambari-server.py", line
114, in start
server_process_main(args)
File "/home/user/ambari/ambari-server/src/main/python/ambari_server_main.py",
line 348, in server_process_main
raise FatalException(-1, AMBARI_SERVER_DIE_MSG.format(exitcode,
configDefaults.SERVER_OUT_FILE))
FatalException: "Fatal exception: Ambari Server java process died with exitcode
<MagicMock name='Popen().returncode' id='39415248'>. Check
/var/log/ambari-server/ambari-server.out for more information., exit code -1"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)