ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nahappan Somasundaram (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-17156) Ambari Agent: TestActionQueue and TestRecoveryManager python unit tests failures
Date Fri, 10 Jun 2016 00:01:35 GMT
Nahappan Somasundaram created AMBARI-17156:
----------------------------------------------

             Summary: Ambari Agent: TestActionQueue and TestRecoveryManager python unit tests
failures
                 Key: AMBARI-17156
                 URL: https://issues.apache.org/jira/browse/AMBARI-17156
             Project: Ambari
          Issue Type: Bug
          Components: ambari-agent
    Affects Versions: 2.4.0
            Reporter: Nahappan Somasundaram
            Assignee: Nahappan Somasundaram
            Priority: Critical
             Fix For: 2.4.0


Unit Test failures in TestActionQueue.py and TestRecoveryManager.py:

{code}
======================================================================
ERROR: test_auto_execute_command (TestActionQueue.TestActionQueue)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "~/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
    return func(*args, **keywargs)
  File "~/ambari/ambari-agent/src/test/python/ambari_agent/TestActionQueue.py", line 407,
in test_auto_execute_command
    dummy_controller.recovery_manager.update_config(5, 5, 1, 11, True, False, "", -1)
TypeError: update_config() takes exactly 10 arguments (9 given)

======================================================================
ERROR: test_execute_retryable_command_with_time_lapse (TestActionQueue.TestActionQueue)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "~/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
    return func(*args, **keywargs)
  File "~/ambari/ambari-agent/src/test/python/ambari_agent/TestActionQueue.py", line 1002,
in test_execute_retryable_command_with_time_lapse
    actionQueue.execute_command(command)
  File "~/ambari/ambari-agent/src/main/python/ambari_agent/ActionQueue.py", line 436, in execute_command
    self.controller.recovery_manager.get_current_status(command['role']))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py",
line 1165, in info
    self._log(INFO, msg, args, **kwargs)
Revert "AMBARI-16935: Retry and recover from component install failures"
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py",
line 1283, in _log
    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py",
line 1257, in makeRecord
    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py",
line 248, in __init__
    ct = time.time()
  File "~/ambari/ambari-common/src/test/python/mock/mock.py", line 953, in __call__
    return _mock_self._mock_call(*args, **kwargs)
  File "~/ambari/ambari-common/src/test/python/mock/mock.py", line 1011, in _mock_call
    result = next(effect)
StopIteration

======================================================================
ERROR: test_process_commands (TestRecoveryManager._TestRecoveryManager)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "~/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
    return func(*args, **keywargs)
  File "~/ambari/ambari-agent/src/test/python/ambari_agent/TestRecoveryManager.py", line 144,
in test_process_commands
    rm.update_config(12, 5, 1, 15, True, False, "NODEMANAGER", -1)
TypeError: update_config() takes exactly 10 arguments (9 given)

======================================================================
ERROR: test_recovery_required (TestRecoveryManager._TestRecoveryManager)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "~/ambari/ambari-agent/src/test/python/ambari_agent/TestRecoveryManager.py", line 245,
in test_recovery_required
    rm.update_config(12, 5, 1, 15, True, False, "NODEMANAGER", -1)
TypeError: update_config() takes exactly 10 arguments (9 given)

======================================================================
ERROR: test_recovery_required2 (TestRecoveryManager._TestRecoveryManager)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "~/ambari/ambari-agent/src/test/python/ambari_agent/TestRecoveryManager.py", line 293,
in test_recovery_required2
    rm.update_config(15, 5, 1, 16, True, False, "NODEMANAGER", -1)
TypeError: update_config() takes exactly 10 arguments (9 given)

======================================================================
ERROR: test_sliding_window (TestRecoveryManager._TestRecoveryManager)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "~/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
    return func(*args, **keywargs)
  File "~/ambari/ambari-agent/src/test/python/ambari_agent/TestRecoveryManager.py", line 177,
in test_sliding_window
    config = rm.update_config(0, 60, 5, 12, True, False, "", -1)
TypeError: update_config() takes exactly 10 arguments (9 given)

======================================================================
FAIL: test_get_recovery_commands (TestRecoveryManager._TestRecoveryManager)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "~/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
    return func(*args, **keywargs)
  File "~/ambari/ambari-agent/src/test/python/ambari_agent/TestRecoveryManager.py", line 403,
in test_get_recovery_commands
    self.assertEqual(1, len(commands))
AssertionError: 1 != 0

----------------------------------------------------------------------
Ran 429 tests in 14.802s

FAILED (failures=1, errors=6)
{code}



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

Mime
View raw message