diff options
author | Tony Asleson <tasleson@redhat.com> | 2016-09-26 22:03:12 -0500 |
---|---|---|
committer | Tony Asleson <tasleson@redhat.com> | 2016-09-27 13:28:54 -0500 |
commit | d906fd520129d639c7cad27c24f88836d133f9ad (patch) | |
tree | c7c7cc5a1053c158cc86fd5fcd9a6351994fb5a6 | |
parent | 063265eacda95dbc1567e647734a000c8d68c8b7 (diff) | |
download | lvm2-d906fd520129d639c7cad27c24f88836d133f9ad.tar.gz |
lvmdbustest.py: Make sure to test for hidden lookups
Test both vgname/[hidden] and vgname/hidden forms
-rwxr-xr-x | test/dbus/lvmdbustest.py | 10 |
1 files changed, 9 insertions, 1 deletions
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) |