diff options
author | Thomas Haller <thaller@redhat.com> | 2018-10-17 13:41:08 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-10-17 13:56:17 +0200 |
commit | 71564e27093b06203e42eb0de0855faa043e82c8 (patch) | |
tree | b8f5efe191b010105fb6feb603e2642c9636cbd7 /clients/tests/test-client.py | |
parent | 9c82cae78068bc91a491a711acab572882fa06e4 (diff) | |
download | NetworkManager-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-x | clients/tests/test-client.py | 8 |
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 |