+ """Fake configuration object"""
+
+ def IsCluster(self):
+ return True
+
+ def GetNodeList(self):
+ return ["a", "b", "c"]
+
+ def GetHostKey(self):
+ return FAKE_CLUSTER_KEY
+
+ def GetClusterName(self):
+ return "test.cluster"
+
+ def GetMasterNode(self):
+ return netutils.Hostname.GetSysName()
+
+ def GetDefaultIAllocator(Self):
+ return "testallocator"
+
+
+class FakeProc:
+ """Fake processor object"""
+
+ def Log(self, msg, *args, **kwargs):
+ pass
+
+ def LogWarning(self, msg, *args, **kwargs):
+ pass
+
+ def LogInfo(self, msg, *args, **kwargs):
+ pass
+
+ def LogStep(self, current, total, message):
+ pass
+
+
+class FakeGLM:
+ """Fake global lock manager object"""
+
+ def list_owned(self, level):
+ return set()
+