Cluster: add nicparams, and update them on upgrade
[ganeti-local] / test / mocks.py
index c611285..249cd72 100644 (file)
@@ -42,9 +42,6 @@ class FakeConfig:
     def GetNodeList(self):
         return ["a", "b", "c"]
 
-    def GetMaster(self):
-        return utils.HostInfo().name
-
     def GetHostKey(self):
         return FAKE_CLUSTER_KEY
 
@@ -55,16 +52,6 @@ class FakeConfig:
         return utils.HostInfo().name
 
 
-class FakeSStore:
-    """Fake simplestore object"""
-
-    def GetClusterName(self):
-        return "test.cluster"
-
-    def GetMasterNode(self):
-        return utils.HostInfo().name
-
-
 class FakeProc:
     """Fake processor object"""
 
@@ -81,4 +68,3 @@ class FakeContext:
         self.cfg = FakeConfig()
         # TODO: decide what features a mock Ganeti Lock Manager must have
         self.GLM = None
-