summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2022-08-17 12:12:17 -0500
committerTony Asleson <tasleson@redhat.com>2022-09-16 10:49:37 -0500
commit2ca4a2dbf3d35528f8173916aed77fd277f23f18 (patch)
tree1ff82c61fb6305c3e55bb3a5cd0288ad188f784e
parent4a202c11fffb30ae786e69cebe11186dd4166c88 (diff)
downloadlvm2-2ca4a2dbf3d35528f8173916aed77fd277f23f18.tar.gz
lvmdbustest: Add test for external event
Ensure that when we trigger an external event that we don't incorrectly handle multiple --config options.
-rwxr-xr-xtest/dbus/lvmdbustest.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py
index c03e96c08..d67298fe9 100755
--- a/test/dbus/lvmdbustest.py
+++ b/test/dbus/lvmdbustest.py
@@ -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):