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