Revision 87ed6b79 test/py/cmdlib/testsupport/processor_mock.py
b/test/py/cmdlib/testsupport/processor_mock.py | ||
---|---|---|
27 | 27 |
from ganeti import constants |
28 | 28 |
from ganeti import mcpu |
29 | 29 |
|
30 |
from cmdlib.testsupport.wconfd_mock import WConfdMock |
|
31 |
|
|
30 | 32 |
|
31 | 33 |
class LogRecordingCallback(mcpu.OpExecCbBase): |
32 | 34 |
"""Helper class for log output recording. |
... | ... | |
68 | 70 |
super(ProcessorMock, self).__init__(context, 1, True) |
69 | 71 |
self.log_entries = [] |
70 | 72 |
self._lu_test_func = None |
73 |
self.wconfd = WConfdMock() |
|
71 | 74 |
|
72 | 75 |
def ExecOpCodeAndRecordOutput(self, op): |
73 | 76 |
"""Executes the given opcode and records the output for further inspection. |
Also available in: Unified diff