On Thu, Nov 06, 2014 at 12:30:53AM +0200, Alex Pyrgiotis wrote:
> Check if VerifyConfig complains about orphan disks.
>
> Signed-off-by: Alex Pyrgiotis <[email protected]>
>
> diff --git a/test/py/cmdlib/cluster_unittest.py b/test/py/cmdlib/cluster_
unittest.py
> index 56a9b4d..f92ae60 100644
> --- a/test/py/cmdlib/cluster_unittest.py
> +++ b/test/py/cmdlib/cluster_unittest.py
> @@ -1099,6 +1099,12 @@ class TestLUClusterVerifyConfig(CmdlibTestCase):
>        "following instances have a non-existing primary-node")
>      self.assertFalse(result)
>
> +  def testDanglingDisk(self):
> +    self.cfg.AddOrphanDisk()
> +    op = opcodes.OpClusterVerifyConfig()
> +    result = self.ExecOpCode(op)
> +    self.assertTrue(result)
> +
>
>  class TestLUClusterVerifyGroup(CmdlibTestCase):
>    def testEmptyNodeGroup(self):
> --
> 1.7.10.4
>

LGTM


--
Google Germany GmbH
Dienerstr. 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Christine Elizabeth Flores

Reply via email to