summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2018-05-25 18:00:41 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2018-05-28 11:21:07 +0200
commitaf946871614db6fdf2b46ae2c909aa63fdaf1337 (patch)
tree81f1f72761bc322adb12bba170179225d415f426
parent78e877ee3c030762569513b6822852813edf53ec (diff)
downloadNetworkManager-af946871614db6fdf2b46ae2c909aa63fdaf1337.tar.gz
tests: implement Update2() in NetworkManager stub
-rwxr-xr-xtools/test-networkmanager-service.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/test-networkmanager-service.py b/tools/test-networkmanager-service.py
index 9b4d3c8c29..8563aa19cd 100755
--- a/tools/test-networkmanager-service.py
+++ b/tools/test-networkmanager-service.py
@@ -1169,7 +1169,12 @@ class Connection(ExportedObj):
@dbus.service.method(dbus_interface=IFACE_CONNECTION, in_signature='a{sa{sv}}', out_signature='')
def Update(self, settings):
- self.update_connection(settings, TRUE)
+ self.update_connection(settings, True)
+
+ @dbus.service.method(dbus_interface=IFACE_CONNECTION, in_signature='a{sa{sv}}ua{sv}', out_signature='a{sv}')
+ def Update2(self, settings, flags, args):
+ self.update_connection(settings, True)
+ return []
@dbus.service.signal(IFACE_CONNECTION, signature='')
def Removed(self):