mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-19 09:48:09 +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.
20 lines
719 B
Text
20 lines
719 B
Text
location: clients/tests/test-client.py:519:test_002()/14
|
||
cmd: $NMCLI -f AP -mode tabular -p d show wlan0
|
||
lang: pl_PL.UTF-8
|
||
returncode: 0
|
||
stdout: 530 bytes
|
||
>>>
|
||
===================================
|
||
Informacje o urządzeniu (wlan0)
|
||
===================================
|
||
NAME IN-USE SSID MODE CHAN RATE SIGNAL BARS SECURITY
|
||
-----------------------------------------------------------------------------------
|
||
AP[1] wlan0-ap-3 Infrastruktura 1 54 Mb/s 61 *** WPA1 WPA2
|
||
AP[2] wlan0-ap-1 Infrastruktura 1 54 Mb/s 34 ** WPA1 WPA2
|
||
AP[3] wlan0-ap-2 Infrastruktura 1 54 Mb/s 29 * WPA1 WPA2
|
||
|
||
<<<
|
||
stderr: 0 bytes
|
||
>>>
|
||
|
||
<<<
|