summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-10-17 13:56:09 +0200
committerThomas Haller <thaller@redhat.com>2018-10-17 16:39:16 +0200
commit051a53db602a8f80e61b0ac11984372eb5f319c0 (patch)
tree82e11b7c118473e7cc9a94dc94573f323a516b87
parent3b782ece71a2b1595680159a9cc451f95403267b (diff)
downloadNetworkManager-051a53db602a8f80e61b0ac11984372eb5f319c0.tar.gz
tests: support UInt64 type in test-networkmanager-service.py
and also accept "gsm" connection-type. Both will be used next. (cherry picked from commit 0f503efd6435fdbf09d60f764d487bd96100519a)
-rwxr-xr-xtools/test-networkmanager-service.py9
1 files 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: