mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmdbustest.py: Add unit test for external LV create
Ensure a LV created outside of the dbus service is immediately found by service user.
This commit is contained in:
parent
43d0fbeba2
commit
e06e4d9355
@ -1750,6 +1750,16 @@ class TestDbusService(unittest.TestCase):
|
||||
cmd.extend(pv_paths)
|
||||
self._verify_existence(cmd, cmd[0], vg_name)
|
||||
|
||||
def test_external_lv_create(self):
|
||||
# Lets create a LV outside of service and see if we correctly handle
|
||||
# it's inclusion
|
||||
vg = self._vg_create().Vg
|
||||
lv_name = lv_n()
|
||||
full_name = "%s/%s" % (vg.Name, lv_name)
|
||||
|
||||
cmd = ['lvcreate', '-L4M', '-n', lv_name, vg.Name]
|
||||
self._verify_existence(cmd, cmd[0], full_name)
|
||||
|
||||
class AggregateResults(object):
|
||||
|
||||
def __init__(self):
|
||||
|
Loading…
Reference in New Issue
Block a user