From 0f503efd6435fdbf09d60f764d487bd96100519a Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 17 Oct 2018 13:56:09 +0200 Subject: [PATCH] tests: support UInt64 type in test-networkmanager-service.py and also accept "gsm" connection-type. Both will be used next. --- tools/test-networkmanager-service.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/test-networkmanager-service.py b/tools/test-networkmanager-service.py index 9dd75bea55..8a37fb17bb 100755 --- a/tools/test-networkmanager-service.py +++ b/tools/test-networkmanager-service.py @@ -281,6 +281,8 @@ class Util: return GLib.Variant('s', str(val)) if isinstance(val, dbus.UInt32): return GLib.Variant('u', int(val)) + if isinstance(val, dbus.UInt64): + return GLib.Variant('t', int(val)) if isinstance(val, dbus.Boolean): return GLib.Variant('b', bool(val)) if isinstance(val, dbus.Byte): @@ -481,11 +483,12 @@ class NmUtil: if not do_verify_strict: return; t = s_con[NM.SETTING_CONNECTION_TYPE] - if t not in [ NM.SETTING_WIRED_SETTING_NAME, - NM.SETTING_WIRELESS_SETTING_NAME, + if t not in [ NM.SETTING_GSM_SETTING_NAME, NM.SETTING_VLAN_SETTING_NAME, + NM.SETTING_VPN_SETTING_NAME, NM.SETTING_WIMAX_SETTING_NAME, - NM.SETTING_VPN_SETTING_NAME ]: + NM.SETTING_WIRED_SETTING_NAME, + NM.SETTING_WIRELESS_SETTING_NAME ]: raise BusErr.InvalidPropertyException('connection.type: unsupported connection type "%s"' % (t)) try: