1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

lvmdbustest: Add test for external event

Ensure that when we trigger an external event that we don't incorrectly
handle multiple --config options.
This commit is contained in:
Tony Asleson 2022-08-17 12:12:17 -05:00
parent 4a202c11ff
commit 2ca4a2dbf3

View File

@ -2095,6 +2095,16 @@ class TestDbusService(unittest.TestCase):
def test_log_file_option(self):
self._log_file_option()
def test_external_event(self):
# Call into the service to register an external event, so that we can test sending the path
# where we don't send notifications on the command line in addition to the logging
lvm_manager = dbus.Interface(bus.get_object(
BUS_NAME, "/com/redhat/lvmdbus1/Manager", introspect=False),
"com.redhat.lvmdbus1.Manager")
rc = lvm_manager.ExternalEvent("unit_test")
self.assertTrue(rc == 0)
self._log_file_option()
class AggregateResults(object):
def __init__(self):