Revision 4a89c54a test/mocks.py
b/test/mocks.py | ||
---|---|---|
42 | 42 |
def GetNodeList(self): |
43 | 43 |
return ["a", "b", "c"] |
44 | 44 |
|
45 |
def GetMaster(self): |
|
46 |
return utils.HostInfo().name |
|
47 |
|
|
48 | 45 |
def GetHostKey(self): |
49 | 46 |
return FAKE_CLUSTER_KEY |
50 | 47 |
|
... | ... | |
71 | 68 |
self.cfg = FakeConfig() |
72 | 69 |
# TODO: decide what features a mock Ganeti Lock Manager must have |
73 | 70 |
self.GLM = None |
74 |
|
Also available in: Unified diff