mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-17 19:18:07 +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.
42 lines
1.7 KiB
Text
42 lines
1.7 KiB
Text
location: clients/tests/test-client.py:509:test_002()/5
|
|
cmd: $NMCLI -f AP -mode multiline -p d show wlan0
|
|
lang: C
|
|
returncode: 0
|
|
stdout: 1558 bytes
|
|
>>>
|
|
===============================================================================
|
|
Device details (wlan0)
|
|
===============================================================================
|
|
AP[1].IN-USE:
|
|
AP[1].SSID: wlan0-ap-3
|
|
AP[1].MODE: Infra
|
|
AP[1].CHAN: 1
|
|
AP[1].RATE: 54 Mbit/s
|
|
AP[1].SIGNAL: 61
|
|
AP[1].BARS: ***
|
|
AP[1].SECURITY: WPA1 WPA2
|
|
-------------------------------------------------------------------------------
|
|
AP[2].IN-USE:
|
|
AP[2].SSID: wlan0-ap-1
|
|
AP[2].MODE: Infra
|
|
AP[2].CHAN: 1
|
|
AP[2].RATE: 54 Mbit/s
|
|
AP[2].SIGNAL: 34
|
|
AP[2].BARS: **
|
|
AP[2].SECURITY: WPA1 WPA2
|
|
-------------------------------------------------------------------------------
|
|
AP[3].IN-USE:
|
|
AP[3].SSID: wlan0-ap-2
|
|
AP[3].MODE: Infra
|
|
AP[3].CHAN: 1
|
|
AP[3].RATE: 54 Mbit/s
|
|
AP[3].SIGNAL: 29
|
|
AP[3].BARS: *
|
|
AP[3].SECURITY: WPA1 WPA2
|
|
-------------------------------------------------------------------------------
|
|
|
|
<<<
|
|
stderr: 0 bytes
|
|
>>>
|
|
|
|
<<<
|