From fafa59906e4dd01c54d1011014c5ff5556fadfc9 Mon Sep 17 00:00:00 2001
From: Alexander Schreiber <als@google.com>
Date: Wed, 17 Oct 2007 14:36:02 +0000
Subject: [PATCH] Fix unit tests for hooks.

Reviewed-by: imsnah
---
 test/ganeti.hooks_unittest.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/ganeti.hooks_unittest.py b/test/ganeti.hooks_unittest.py
index b8c26e8ba..c95b7adb4 100755
--- a/test/ganeti.hooks_unittest.py
+++ b/test/ganeti.hooks_unittest.py
@@ -231,7 +231,7 @@ class TestHooksMaster(unittest.TestCase):
     sstore = FakeSStore()
     op = opcodes.OpCode()
     lu = FakeLU(None, op, cfg, sstore)
-    hm = mcpu.HooksMaster(self._call_false, cfg, sstore, lu)
+    hm = mcpu.HooksMaster(self._call_false, lu)
     self.failUnlessRaises(errors.HooksFailure,
                           hm.RunPhase, constants.HOOKS_PHASE_PRE)
     hm.RunPhase(constants.HOOKS_PHASE_POST)
@@ -242,7 +242,7 @@ class TestHooksMaster(unittest.TestCase):
     sstore = FakeSStore()
     op = opcodes.OpCode()
     lu = FakeLU(None, op, cfg, sstore)
-    hm = mcpu.HooksMaster(self._call_nodes_false, cfg, sstore, lu)
+    hm = mcpu.HooksMaster(self._call_nodes_false, lu)
     self.failUnlessRaises(errors.HooksFailure,
                           hm.RunPhase, constants.HOOKS_PHASE_PRE)
     hm.RunPhase(constants.HOOKS_PHASE_POST)
@@ -253,7 +253,7 @@ class TestHooksMaster(unittest.TestCase):
     op = opcodes.OpCode()
     sstore = FakeSStore()
     lu = FakeLU(None, op, cfg, sstore)
-    hm = mcpu.HooksMaster(self._call_script_fail, cfg, sstore, lu)
+    hm = mcpu.HooksMaster(self._call_script_fail, lu)
     self.failUnlessRaises(errors.HooksAbort,
                           hm.RunPhase, constants.HOOKS_PHASE_PRE)
     hm.RunPhase(constants.HOOKS_PHASE_POST)
@@ -264,7 +264,7 @@ class TestHooksMaster(unittest.TestCase):
     op = opcodes.OpCode()
     sstore = FakeSStore()
     lu = FakeLU(None, op, cfg, sstore)
-    hm = mcpu.HooksMaster(self._call_script_succeed, cfg, sstore, lu)
+    hm = mcpu.HooksMaster(self._call_script_succeed, lu)
     for phase in (constants.HOOKS_PHASE_PRE, constants.HOOKS_PHASE_POST):
       hm.RunPhase(phase)
 
-- 
GitLab