예제 #1
0
 def testRunLUWithPrereqErrorMissingECode(self):
     prereq = errors.OpPrereqError(self.op)
     lu = mocks.FakeLU(self.proc, self.op, self.cfg, self.rpc, prereq)
     self.assertRaises(errors.OpPrereqError, self.proc._LockAndExecLU, lu,
                       locking.LEVEL_CLUSTER, self.calc_timeout)
예제 #2
0
 def testRunLU(self):
     lu = mocks.FakeLU(self.proc, self.op, self.cfg, self.rpc, None)
     self.proc._ExecLU(lu)