summaryrefslogtreecommitdiff
path: root/clients/tests/test-client.py
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-10-17 13:41:08 +0200
committerThomas Haller <thaller@redhat.com>2018-10-17 13:56:17 +0200
commit71564e27093b06203e42eb0de0855faa043e82c8 (patch)
treeb8f5efe191b010105fb6feb603e2642c9636cbd7 /clients/tests/test-client.py
parent9c82cae78068bc91a491a711acab572882fa06e4 (diff)
downloadNetworkManager-th/cli-fix-serial-properties.tar.gz
cli/tests: add test for adding and displaying gsm/serial settingsth/cli-fix-serial-properties
Diffstat (limited to 'clients/tests/test-client.py')
-rwxr-xr-xclients/tests/test-client.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/clients/tests/test-client.py b/clients/tests/test-client.py
index ba4ce7760f..e198769e74 100755
--- a/clients/tests/test-client.py
+++ b/clients/tests/test-client.py
@@ -872,6 +872,11 @@ class TestNmcli(NmTestBase):
self.call_nmcli_l(['c', 's'],
replace_stdout = replace_stdout)
+ replace_stdout.append((Util.memoize_nullary(lambda: self.srv.findConnectionUuid('con-gsm1')), 'UUID-con-gsm1-REPLACED-REPLACED-REPL'))
+
+ self.call_nmcli(['connection', 'add', 'type', 'gsm', 'autoconnect', 'no', 'con-name', 'con-gsm1', 'ifname', '*', 'apn', 'xyz.con-gsm1', 'serial.baud', '5', 'serial.send-delay', '100', 'serial.pari', '1'],
+ replace_stdout = replace_stdout)
+
replace_stdout.append((Util.memoize_nullary(lambda: self.srv.findConnectionUuid('ethernet')), 'UUID-ethernet-REPLACED-REPLACED-REPL'))
self.call_nmcli(['c', 'add', 'type', 'ethernet', 'ifname', '*'],
@@ -887,6 +892,9 @@ class TestNmcli(NmTestBase):
replace_stdout = replace_stdout,
sort_lines_stdout = True)
+ self.call_nmcli_l(['con', 's', 'con-gsm1'],
+ replace_stdout = replace_stdout)
+
# activate the same profile on multiple devices. Our stub-implmentation
# is fine with that... although NetworkManager service would reject
# such a configuration by deactivating the profile first. But note that