LGTM, Thanks,
Guido On 12 Aug 2013 16:09, "Thomas Thrainer" <[email protected]> wrote: > This LU only creates additional jobs as result, so this is a trivial > unit test. > > Signed-off-by: Thomas Thrainer <[email protected]> > --- > test/py/cmdlib/cluster_unittest.py | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/test/py/cmdlib/cluster_unittest.py > b/test/py/cmdlib/cluster_unittest.py > index bf015fb..7d49e6c 100644 > --- a/test/py/cmdlib/cluster_unittest.py > +++ b/test/py/cmdlib/cluster_unittest.py > @@ -2019,5 +2019,13 @@ class > TestLUClusterVerifyGroupHooksCallBack(TestLUClusterVerifyGroupMethods): > self.mcpu.assertLogContainsRegex("Script mock_script failed") > > > +class TestLUClusterVerifyDisks(CmdlibTestCase): > + def testVerifyDisks(self): > + op = opcodes.OpClusterVerifyDisks() > + result = self.ExecOpCode(op) > + > + self.assertEqual(1, len(result["jobs"])) > + > + > if __name__ == "__main__": > testutils.GanetiTestProgram() > -- > 1.8.3 > >
