mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-03 10:10:28 +01:00
clients/tests: add test for selecting fields from multiple connections with nmcli con show
(cherry picked from commit f230342478)
This commit is contained in:
parent
64f103416f
commit
30b7ab6cb9
2 changed files with 2439 additions and 1104 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue