From d906fd520129d639c7cad27c24f88836d133f9ad Mon Sep 17 00:00:00 2001 From: Tony Asleson Date: Mon, 26 Sep 2016 22:03:12 -0500 Subject: [PATCH] lvmdbustest.py: Make sure to test for hidden lookups Test both vgname/[hidden] and vgname/hidden forms --- test/dbus/lvmdbustest.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py index 7a2c44f0d..819d09660 100755 --- a/test/dbus/lvmdbustest.py +++ b/test/dbus/lvmdbustest.py @@ -337,8 +337,16 @@ class TestDbusService(unittest.TestCase): if len(h_lv.HiddenLvs) > 0: self._verify_hidden_lookups(h_lv, vgname) - # print("Hidden check %s %s" % (h, h_lv.Name)) full_name = "%s/%s" % (vgname, h_lv.Name) + # print("Hidden check %s" % (full_name)) + lookup_path = mgr.LookUpByLvmId(full_name) + self.assertTrue(lookup_path != '/') + self.assertTrue(lookup_path == h_lv.object_path) + + # Lets's strip off the '[ ]' and make sure we can find + full_name = "%s/%s" % (vgname, h_lv.Name[1:-1]) + # print("Hidden check %s" % (full_name)) + lookup_path = mgr.LookUpByLvmId(full_name) self.assertTrue(lookup_path != '/') self.assertTrue(lookup_path == h_lv.object_path) -- 2.43.5