summaryrefslogtreecommitdiff
path: root/clients/tests/test-client.check-on-disk/test_002-012.expected
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-05-04 09:02:53 +0200
committerThomas Haller <thaller@redhat.com>2018-05-11 16:51:20 +0200
commitd4093a3a2cb8e23248fed4e80e84b8816d453323 (patch)
treea00c27bfd9a44beae131f6452bf69c282e24ed7e /clients/tests/test-client.check-on-disk/test_002-012.expected
parent5e6b0382ad672254bdabf1997ef36bdc4fa0e11f (diff)
downloadNetworkManager-d4093a3a2cb8e23248fed4e80e84b8816d453323.tar.gz
clients/tests: add python test script for nmcli tests
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.
Diffstat (limited to 'clients/tests/test-client.check-on-disk/test_002-012.expected')
-rw-r--r--clients/tests/test-client.check-on-disk/test_002-012.expected36
1 files changed, 36 insertions, 0 deletions
diff --git a/clients/tests/test-client.check-on-disk/test_002-012.expected b/clients/tests/test-client.check-on-disk/test_002-012.expected
new file mode 100644
index 0000000000..542261c38d
--- /dev/null
+++ b/clients/tests/test-client.check-on-disk/test_002-012.expected
@@ -0,0 +1,36 @@
+location: clients/tests/test-client.py:517:test_002()/12
+cmd: $NMCLI -f AP -mode multiline -t d show wlan0
+lang: pl_PL.UTF-8
+returncode: 0
+stdout: 462 bytes
+>>>
+AP[1].IN-USE:
+AP[1].SSID:wlan0-ap-3
+AP[1].MODE:Infrastruktura
+AP[1].CHAN:1
+AP[1].RATE:54 Mb/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:Infrastruktura
+AP[2].CHAN:1
+AP[2].RATE:54 Mb/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:Infrastruktura
+AP[3].CHAN:1
+AP[3].RATE:54 Mb/s
+AP[3].SIGNAL:29
+AP[3].BARS:*
+AP[3].SECURITY:WPA1 WPA2
+
+<<<
+stderr: 0 bytes
+>>>
+
+<<<