diff options
author | Thomas Haller <thaller@redhat.com> | 2019-12-13 10:05:34 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-12-13 11:41:46 +0100 |
commit | 62b1d7b4980c8287d075030149c9ce23b89b2d38 (patch) | |
tree | b6b60f66c177644a912526ab8ced210f1f468c37 /clients/tests/test-client.py | |
parent | 11be2219ec2f095a20c372769ccc590d03f9507a (diff) | |
download | NetworkManager-th/clients-test-select-fields.tar.gz |
clients/tests: add test for selecting fields from multiple connections with `nmcli con show`th/clients-test-select-fields
Diffstat (limited to 'clients/tests/test-client.py')
-rwxr-xr-x | clients/tests/test-client.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clients/tests/test-client.py b/clients/tests/test-client.py index 4a0201ccca..2742824cee 100755 --- a/clients/tests/test-client.py +++ b/clients/tests/test-client.py @@ -1210,6 +1210,8 @@ class TestNmcli(NmTestBase): 'VpnState', dbus.UInt32(NM.VpnConnectionState.ACTIVATED)) + uuids = Util.replace_text_sort_list([ c[1] for c in self.srv.findConnections() ], replace_uuids) + for mode in Util.iter_nmcli_output_modes(): self.call_nmcli_l(mode + ['con', 's', 'con-vpn-1'], @@ -1280,6 +1282,11 @@ class TestNmcli(NmTestBase): self.call_nmcli_l(mode + ['dev', 'lldp', 'list', 'ifname', 'eth0'], replace_stdout = replace_uuids) + self.call_nmcli_l(mode + ['-f', 'connection.id,connection.uuid,connection.type,connection.interface-name,802-3-ethernet.mac-address,vpn.user-name', 'connection', 'show' ] + uuids, + replace_stdout = replace_uuids, + replace_cmd = replace_uuids) + + ############################################################################### def main(): |