def GetNodeList(self):
return ["a", "b", "c"]
- def GetMaster(self):
- return utils.HostInfo().name
-
def GetHostKey(self):
return FAKE_CLUSTER_KEY
-
-class FakeSStore:
- """Fake simplestore object"""
-
def GetClusterName(self):
return "test.cluster"
def LogInfo(self, msg):
pass
+
+class FakeContext:
+ """Fake context object"""
+
+ def __init__(self):
+ self.cfg = FakeConfig()
+ # TODO: decide what features a mock Ganeti Lock Manager must have
+ self.GLM = None