mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 04:48:10 +02:00
Add a test which runs nmcli against our stub NetworkManager service and compares the output. The output formats of nmcli are complicated and not easily understood. For example how --mode tabular|multiline interacts with selecting output-fields (--fields) and output modes ([default]|--terse|--pretty). Also, there are things like `nmcli connection show --order $FIELD_SPEC`. We need unit tests to ensure that we don't change the output accidentally.
17 lines
681 B
Text
17 lines
681 B
Text
location: clients/tests/test-client.py:504:test_002()/2
|
|
cmd: $NMCLI -f all d
|
|
lang: C
|
|
returncode: 0
|
|
stdout: 530 bytes
|
|
>>>
|
|
DEVICE TYPE STATE DBUS-PATH CONNECTION CON-UUID CON-PATH
|
|
eth0 ethernet unavailable /org/freedesktop/NetworkManager/Devices/1 -- -- --
|
|
wlan0 wifi unavailable /org/freedesktop/NetworkManager/Devices/2 -- -- --
|
|
wlan1 wifi unavailable /org/freedesktop/NetworkManager/Devices/3 -- -- --
|
|
wlan1 wifi unavailable /org/freedesktop/NetworkManager/Devices/4 -- -- --
|
|
|
|
<<<
|
|
stderr: 0 bytes
|
|
>>>
|
|
|
|
<<<
|