clients/test: vary RSN capabilities across APs

This allows us to test if we distinguish WPA1, WPA2 and WPA3 in the
client.
This commit is contained in:
Lubomir Rintel 2019-01-22 12:39:51 +01:00
parent 245c9c93d1
commit 640164e979
6 changed files with 2548 additions and 2525 deletions

View file

@ -1,5 +1,5 @@
size: 395
location: clients/tests/test-client.py:829:test_001()/1
location: clients/tests/test-client.py:841:test_001()/1
cmd: $NMCLI
lang: C
returncode: 0
@ -15,7 +15,7 @@ Consult nmcli(1) and nmcli-examples(5) manual pages for complete usage details.
<<<
size: 438
location: clients/tests/test-client.py:829:test_001()/2
location: clients/tests/test-client.py:841:test_001()/2
cmd: $NMCLI
lang: pl_PL.UTF-8
returncode: 0
@ -33,7 +33,7 @@ o użyciu.
<<<
size: 188
location: clients/tests/test-client.py:831:test_001()/3
location: clients/tests/test-client.py:843:test_001()/3
cmd: $NMCLI -f AP -mode multiline -p d show wlan0
lang: C
returncode: 10
@ -43,7 +43,7 @@ Error: Device 'wlan0' not found.
<<<
size: 214
location: clients/tests/test-client.py:831:test_001()/4
location: clients/tests/test-client.py:843:test_001()/4
cmd: $NMCLI -f AP -mode multiline -p d show wlan0
lang: pl_PL.UTF-8
returncode: 10
@ -53,7 +53,7 @@ Błąd: Nie odnaleziono urządzenia „wlan0”.
<<<
size: 120
location: clients/tests/test-client.py:833:test_001()/5
location: clients/tests/test-client.py:845:test_001()/5
cmd: $NMCLI c s
lang: C
returncode: 0
@ -63,7 +63,7 @@ stdout: 1 bytes
<<<
size: 130
location: clients/tests/test-client.py:833:test_001()/6
location: clients/tests/test-client.py:845:test_001()/6
cmd: $NMCLI c s
lang: pl_PL.UTF-8
returncode: 0
@ -73,7 +73,7 @@ stdout: 1 bytes
<<<
size: 192
location: clients/tests/test-client.py:835:test_001()/7
location: clients/tests/test-client.py:847:test_001()/7
cmd: $NMCLI bogus s
lang: C
returncode: 2
@ -83,7 +83,7 @@ Error: argument 'bogus' not understood. Try passing --help instead.
<<<
size: 221
location: clients/tests/test-client.py:835:test_001()/8
location: clients/tests/test-client.py:847:test_001()/8
cmd: $NMCLI bogus s
lang: pl_PL.UTF-8
returncode: 2
@ -93,7 +93,7 @@ Błąd: nie zrozumiano parametru „bogus”. Można użyć „--help” zamiast
<<<
size: 1413
location: clients/tests/test-client.py:838:test_001()/9
location: clients/tests/test-client.py:850:test_001()/9
cmd: $NMCLI general permissions
lang: C
returncode: 0
@ -119,7 +119,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check unknown
<<<
size: 1441
location: clients/tests/test-client.py:838:test_001()/10
location: clients/tests/test-client.py:850:test_001()/10
cmd: $NMCLI general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -145,7 +145,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check nieznane
<<<
size: 1543
location: clients/tests/test-client.py:838:test_001()/11
location: clients/tests/test-client.py:850:test_001()/11
cmd: $NMCLI --color yes general permissions
lang: C
returncode: 0
@ -171,7 +171,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check unknown
<<<
size: 1570
location: clients/tests/test-client.py:838:test_001()/12
location: clients/tests/test-client.py:850:test_001()/12
cmd: $NMCLI --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -197,7 +197,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check nieznane
<<<
size: 1620
location: clients/tests/test-client.py:838:test_001()/13
location: clients/tests/test-client.py:850:test_001()/13
cmd: $NMCLI --pretty general permissions
lang: C
returncode: 0
@ -227,7 +227,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check unknown
<<<
size: 1677
location: clients/tests/test-client.py:838:test_001()/14
location: clients/tests/test-client.py:850:test_001()/14
cmd: $NMCLI --pretty general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -257,7 +257,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check nieznane
<<<
size: 1749
location: clients/tests/test-client.py:838:test_001()/15
location: clients/tests/test-client.py:850:test_001()/15
cmd: $NMCLI --pretty --color yes general permissions
lang: C
returncode: 0
@ -287,7 +287,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check unknown
<<<
size: 1806
location: clients/tests/test-client.py:838:test_001()/16
location: clients/tests/test-client.py:850:test_001()/16
cmd: $NMCLI --pretty --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -317,7 +317,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check nieznane
<<<
size: 1045
location: clients/tests/test-client.py:838:test_001()/17
location: clients/tests/test-client.py:850:test_001()/17
cmd: $NMCLI --terse general permissions
lang: C
returncode: 0
@ -342,7 +342,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check:unknown
<<<
size: 1055
location: clients/tests/test-client.py:838:test_001()/18
location: clients/tests/test-client.py:850:test_001()/18
cmd: $NMCLI --terse general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -367,7 +367,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check:unknown
<<<
size: 1175
location: clients/tests/test-client.py:838:test_001()/19
location: clients/tests/test-client.py:850:test_001()/19
cmd: $NMCLI --terse --color yes general permissions
lang: C
returncode: 0
@ -392,7 +392,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check:unknown
<<<
size: 1185
location: clients/tests/test-client.py:838:test_001()/20
location: clients/tests/test-client.py:850:test_001()/20
cmd: $NMCLI --terse --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -417,7 +417,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check:unknown
<<<
size: 1429
location: clients/tests/test-client.py:838:test_001()/21
location: clients/tests/test-client.py:850:test_001()/21
cmd: $NMCLI --mode tabular general permissions
lang: C
returncode: 0
@ -443,7 +443,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check unknown
<<<
size: 1456
location: clients/tests/test-client.py:838:test_001()/22
location: clients/tests/test-client.py:850:test_001()/22
cmd: $NMCLI --mode tabular general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -469,7 +469,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check nieznane
<<<
size: 1558
location: clients/tests/test-client.py:838:test_001()/23
location: clients/tests/test-client.py:850:test_001()/23
cmd: $NMCLI --mode tabular --color yes general permissions
lang: C
returncode: 0
@ -495,7 +495,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check unknown
<<<
size: 1585
location: clients/tests/test-client.py:838:test_001()/24
location: clients/tests/test-client.py:850:test_001()/24
cmd: $NMCLI --mode tabular --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -521,7 +521,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check nieznane
<<<
size: 1635
location: clients/tests/test-client.py:838:test_001()/25
location: clients/tests/test-client.py:850:test_001()/25
cmd: $NMCLI --mode tabular --pretty general permissions
lang: C
returncode: 0
@ -551,7 +551,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check unknown
<<<
size: 1692
location: clients/tests/test-client.py:838:test_001()/26
location: clients/tests/test-client.py:850:test_001()/26
cmd: $NMCLI --mode tabular --pretty general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -581,7 +581,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check nieznane
<<<
size: 1764
location: clients/tests/test-client.py:838:test_001()/27
location: clients/tests/test-client.py:850:test_001()/27
cmd: $NMCLI --mode tabular --pretty --color yes general permissions
lang: C
returncode: 0
@ -611,7 +611,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check unknown
<<<
size: 1821
location: clients/tests/test-client.py:838:test_001()/28
location: clients/tests/test-client.py:850:test_001()/28
cmd: $NMCLI --mode tabular --pretty --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -641,7 +641,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check nieznane
<<<
size: 1060
location: clients/tests/test-client.py:838:test_001()/29
location: clients/tests/test-client.py:850:test_001()/29
cmd: $NMCLI --mode tabular --terse general permissions
lang: C
returncode: 0
@ -666,7 +666,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check:unknown
<<<
size: 1070
location: clients/tests/test-client.py:838:test_001()/30
location: clients/tests/test-client.py:850:test_001()/30
cmd: $NMCLI --mode tabular --terse general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -691,7 +691,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check:unknown
<<<
size: 1190
location: clients/tests/test-client.py:838:test_001()/31
location: clients/tests/test-client.py:850:test_001()/31
cmd: $NMCLI --mode tabular --terse --color yes general permissions
lang: C
returncode: 0
@ -716,7 +716,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check:unknown
<<<
size: 1200
location: clients/tests/test-client.py:838:test_001()/32
location: clients/tests/test-client.py:850:test_001()/32
cmd: $NMCLI --mode tabular --terse --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -741,7 +741,7 @@ org.freedesktop.NetworkManager.enable-disable-connectivity-check:unknown
<<<
size: 2335
location: clients/tests/test-client.py:838:test_001()/33
location: clients/tests/test-client.py:850:test_001()/33
cmd: $NMCLI --mode multiline general permissions
lang: C
returncode: 0
@ -782,7 +782,7 @@ VALUE: unknown
<<<
size: 2351
location: clients/tests/test-client.py:838:test_001()/34
location: clients/tests/test-client.py:850:test_001()/34
cmd: $NMCLI --mode multiline general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -823,7 +823,7 @@ VALUE: nieznane
<<<
size: 2464
location: clients/tests/test-client.py:838:test_001()/35
location: clients/tests/test-client.py:850:test_001()/35
cmd: $NMCLI --mode multiline --color yes general permissions
lang: C
returncode: 0
@ -864,7 +864,7 @@ VALUE: unknown
<<<
size: 2480
location: clients/tests/test-client.py:838:test_001()/36
location: clients/tests/test-client.py:850:test_001()/36
cmd: $NMCLI --mode multiline --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -905,7 +905,7 @@ VALUE: nieznane
<<<
size: 3837
location: clients/tests/test-client.py:838:test_001()/37
location: clients/tests/test-client.py:850:test_001()/37
cmd: $NMCLI --mode multiline --pretty general permissions
lang: C
returncode: 0
@ -965,7 +965,7 @@ VALUE: unknown
<<<
size: 3858
location: clients/tests/test-client.py:838:test_001()/38
location: clients/tests/test-client.py:850:test_001()/38
cmd: $NMCLI --mode multiline --pretty general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -1025,7 +1025,7 @@ VALUE: nieznane
<<<
size: 3966
location: clients/tests/test-client.py:838:test_001()/39
location: clients/tests/test-client.py:850:test_001()/39
cmd: $NMCLI --mode multiline --pretty --color yes general permissions
lang: C
returncode: 0
@ -1085,7 +1085,7 @@ VALUE: unknown
<<<
size: 3987
location: clients/tests/test-client.py:838:test_001()/40
location: clients/tests/test-client.py:850:test_001()/40
cmd: $NMCLI --mode multiline --pretty --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -1145,7 +1145,7 @@ VALUE: nieznane
<<<
size: 1335
location: clients/tests/test-client.py:838:test_001()/41
location: clients/tests/test-client.py:850:test_001()/41
cmd: $NMCLI --mode multiline --terse general permissions
lang: C
returncode: 0
@ -1186,7 +1186,7 @@ VALUE:unknown
<<<
size: 1345
location: clients/tests/test-client.py:838:test_001()/42
location: clients/tests/test-client.py:850:test_001()/42
cmd: $NMCLI --mode multiline --terse general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -1227,7 +1227,7 @@ VALUE:unknown
<<<
size: 1464
location: clients/tests/test-client.py:838:test_001()/43
location: clients/tests/test-client.py:850:test_001()/43
cmd: $NMCLI --mode multiline --terse --color yes general permissions
lang: C
returncode: 0
@ -1268,7 +1268,7 @@ VALUE:unknown
<<<
size: 1474
location: clients/tests/test-client.py:838:test_001()/44
location: clients/tests/test-client.py:850:test_001()/44
cmd: $NMCLI --mode multiline --terse --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0

View file

@ -1,5 +1,5 @@
size: 377
location: clients/tests/test-client.py:844:test_002()/1
location: clients/tests/test-client.py:856:test_002()/1
cmd: $NMCLI d
lang: C
returncode: 0
@ -14,7 +14,7 @@ wlan1 wifi unavailable --
<<<
size: 392
location: clients/tests/test-client.py:844:test_002()/2
location: clients/tests/test-client.py:856:test_002()/2
cmd: $NMCLI d
lang: pl_PL.UTF-8
returncode: 0
@ -29,7 +29,7 @@ wlan1 wifi niedostępne --
<<<
size: 978
location: clients/tests/test-client.py:846:test_002()/3
location: clients/tests/test-client.py:858:test_002()/3
cmd: $NMCLI -f all d
lang: C
returncode: 0
@ -44,7 +44,7 @@ wlan1 wifi unavailable unknown unknown /org/freedesk
<<<
size: 993
location: clients/tests/test-client.py:846:test_002()/4
location: clients/tests/test-client.py:858:test_002()/4
cmd: $NMCLI -f all d
lang: pl_PL.UTF-8
returncode: 0
@ -59,7 +59,7 @@ wlan1 wifi niedostępne nieznane nieznane /org/freedes
<<<
size: 739
location: clients/tests/test-client.py:848:test_002()/5
location: clients/tests/test-client.py:860:test_002()/5
cmd: $NMCLI
lang: C
returncode: 0
@ -95,7 +95,7 @@ Consult nmcli(1) and nmcli-examples(5) manual pages for complete usage details.
<<<
size: 812
location: clients/tests/test-client.py:848:test_002()/6
location: clients/tests/test-client.py:860:test_002()/6
cmd: $NMCLI
lang: pl_PL.UTF-8
returncode: 0
@ -132,12 +132,12 @@ Strony podręcznika nmcli(1) i nmcli-examples(5) zawierają pełne informacje
o użyciu.
<<<
size: 1260
location: clients/tests/test-client.py:850:test_002()/7
size: 1250
location: clients/tests/test-client.py:862:test_002()/7
cmd: $NMCLI -f AP -mode multiline d show wlan0
lang: C
returncode: 0
stdout: 1107 bytes
stdout: 1097 bytes
>>>
AP[1].IN-USE:
AP[1].SSID: wlan0-ap-3
@ -146,7 +146,7 @@ AP[1].CHAN: 1
AP[1].RATE: 54 Mbit/s
AP[1].SIGNAL: 55
AP[1].BARS: **
AP[1].SECURITY: WPA1 WPA2
AP[1].SECURITY: WPA2
AP[2].IN-USE:
AP[2].SSID: wlan0-ap-1
AP[2].MODE: Infra
@ -154,7 +154,7 @@ AP[2].CHAN: 1
AP[2].RATE: 54 Mbit/s
AP[2].SIGNAL: 44
AP[2].BARS: **
AP[2].SECURITY: WPA1 WPA2
AP[2].SECURITY: WPA1
AP[3].IN-USE:
AP[3].SSID: wlan0-ap-2
AP[3].MODE: Infra
@ -165,12 +165,12 @@ AP[3].BARS: **
AP[3].SECURITY: WPA1 WPA2
<<<
size: 1297
location: clients/tests/test-client.py:850:test_002()/8
size: 1287
location: clients/tests/test-client.py:862:test_002()/8
cmd: $NMCLI -f AP -mode multiline d show wlan0
lang: pl_PL.UTF-8
returncode: 0
stdout: 1134 bytes
stdout: 1124 bytes
>>>
AP[1].IN-USE:
AP[1].SSID: wlan0-ap-3
@ -179,7 +179,7 @@ AP[1].CHAN: 1
AP[1].RATE: 54Mb/s
AP[1].SIGNAL: 55
AP[1].BARS: **
AP[1].SECURITY: WPA1 WPA2
AP[1].SECURITY: WPA2
AP[2].IN-USE:
AP[2].SSID: wlan0-ap-1
AP[2].MODE: Infrastruktura
@ -187,7 +187,7 @@ AP[2].CHAN: 1
AP[2].RATE: 54Mb/s
AP[2].SIGNAL: 44
AP[2].BARS: **
AP[2].SECURITY: WPA1 WPA2
AP[2].SECURITY: WPA1
AP[3].IN-USE:
AP[3].SSID: wlan0-ap-2
AP[3].MODE: Infrastruktura
@ -198,12 +198,12 @@ AP[3].BARS: **
AP[3].SECURITY: WPA1 WPA2
<<<
size: 1714
location: clients/tests/test-client.py:851:test_002()/9
size: 1704
location: clients/tests/test-client.py:863:test_002()/9
cmd: $NMCLI -f AP -mode multiline -p d show wlan0
lang: C
returncode: 0
stdout: 1558 bytes
stdout: 1548 bytes
>>>
===============================================================================
Device details (wlan0)
@ -215,7 +215,7 @@ AP[1].CHAN: 1
AP[1].RATE: 54 Mbit/s
AP[1].SIGNAL: 55
AP[1].BARS: **
AP[1].SECURITY: WPA1 WPA2
AP[1].SECURITY: WPA2
-------------------------------------------------------------------------------
AP[2].IN-USE:
AP[2].SSID: wlan0-ap-1
@ -224,7 +224,7 @@ AP[2].CHAN: 1
AP[2].RATE: 54 Mbit/s
AP[2].SIGNAL: 44
AP[2].BARS: **
AP[2].SECURITY: WPA1 WPA2
AP[2].SECURITY: WPA1
-------------------------------------------------------------------------------
AP[3].IN-USE:
AP[3].SSID: wlan0-ap-2
@ -237,12 +237,12 @@ AP[3].SECURITY: WPA1 WPA2
-------------------------------------------------------------------------------
<<<
size: 1759
location: clients/tests/test-client.py:851:test_002()/10
size: 1749
location: clients/tests/test-client.py:863:test_002()/10
cmd: $NMCLI -f AP -mode multiline -p d show wlan0
lang: pl_PL.UTF-8
returncode: 0
stdout: 1592 bytes
stdout: 1582 bytes
>>>
===============================================================================
Informacje o urządzeniu (wlan0)
@ -254,7 +254,7 @@ AP[1].CHAN: 1
AP[1].RATE: 54Mb/s
AP[1].SIGNAL: 55
AP[1].BARS: **
AP[1].SECURITY: WPA1 WPA2
AP[1].SECURITY: WPA2
-------------------------------------------------------------------------------
AP[2].IN-USE:
AP[2].SSID: wlan0-ap-1
@ -263,7 +263,7 @@ AP[2].CHAN: 1
AP[2].RATE: 54Mb/s
AP[2].SIGNAL: 44
AP[2].BARS: **
AP[2].SECURITY: WPA1 WPA2
AP[2].SECURITY: WPA1
-------------------------------------------------------------------------------
AP[3].IN-USE:
AP[3].SSID: wlan0-ap-2
@ -276,12 +276,12 @@ AP[3].SECURITY: WPA1 WPA2
-------------------------------------------------------------------------------
<<<
size: 591
location: clients/tests/test-client.py:852:test_002()/11
size: 581
location: clients/tests/test-client.py:864:test_002()/11
cmd: $NMCLI -f AP -mode multiline -t d show wlan0
lang: C
returncode: 0
stdout: 435 bytes
stdout: 425 bytes
>>>
AP[1].IN-USE:
AP[1].SSID:wlan0-ap-3
@ -290,7 +290,7 @@ AP[1].CHAN:1
AP[1].RATE:54 Mbit/s
AP[1].SIGNAL:55
AP[1].BARS:**
AP[1].SECURITY:WPA1 WPA2
AP[1].SECURITY:WPA2
AP[2].IN-USE:
AP[2].SSID:wlan0-ap-1
AP[2].MODE:Infra
@ -298,7 +298,7 @@ AP[2].CHAN:1
AP[2].RATE:54 Mbit/s
AP[2].SIGNAL:44
AP[2].BARS:**
AP[2].SECURITY:WPA1 WPA2
AP[2].SECURITY:WPA1
AP[3].IN-USE:
AP[3].SSID:wlan0-ap-2
AP[3].MODE:Infra
@ -309,12 +309,12 @@ AP[3].BARS:**
AP[3].SECURITY:WPA1 WPA2
<<<
size: 628
location: clients/tests/test-client.py:852:test_002()/12
size: 618
location: clients/tests/test-client.py:864:test_002()/12
cmd: $NMCLI -f AP -mode multiline -t d show wlan0
lang: pl_PL.UTF-8
returncode: 0
stdout: 462 bytes
stdout: 452 bytes
>>>
AP[1].IN-USE:
AP[1].SSID:wlan0-ap-3
@ -323,7 +323,7 @@ AP[1].CHAN:1
AP[1].RATE:54Mb/s
AP[1].SIGNAL:55
AP[1].BARS:**
AP[1].SECURITY:WPA1 WPA2
AP[1].SECURITY:WPA2
AP[2].IN-USE:
AP[2].SSID:wlan0-ap-1
AP[2].MODE:Infrastruktura
@ -331,7 +331,7 @@ AP[2].CHAN:1
AP[2].RATE:54Mb/s
AP[2].SIGNAL:44
AP[2].BARS:**
AP[2].SECURITY:WPA1 WPA2
AP[2].SECURITY:WPA1
AP[3].IN-USE:
AP[3].SSID:wlan0-ap-2
AP[3].MODE:Infrastruktura
@ -343,33 +343,33 @@ AP[3].SECURITY:WPA1 WPA2
<<<
size: 455
location: clients/tests/test-client.py:853:test_002()/13
location: clients/tests/test-client.py:865:test_002()/13
cmd: $NMCLI -f AP -mode tabular d show wlan0
lang: C
returncode: 0
stdout: 304 bytes
>>>
NAME IN-USE SSID MODE CHAN RATE SIGNAL BARS SECURITY
AP[1] wlan0-ap-3 Infra 1 54 Mbit/s 55 ** WPA1 WPA2
AP[2] wlan0-ap-1 Infra 1 54 Mbit/s 44 ** WPA1 WPA2
AP[1] wlan0-ap-3 Infra 1 54 Mbit/s 55 ** WPA2
AP[2] wlan0-ap-1 Infra 1 54 Mbit/s 44 ** WPA1
AP[3] wlan0-ap-2 Infra 1 54 Mbit/s 34 ** WPA1 WPA2
<<<
size: 499
location: clients/tests/test-client.py:853:test_002()/14
location: clients/tests/test-client.py:865:test_002()/14
cmd: $NMCLI -f AP -mode tabular d show wlan0
lang: pl_PL.UTF-8
returncode: 0
stdout: 338 bytes
>>>
NAME IN-USE SSID MODE CHAN RATE SIGNAL BARS SECURITY
AP[1] wlan0-ap-3 Infrastruktura 1 54Mb/s 55 ** WPA1 WPA2
AP[2] wlan0-ap-1 Infrastruktura 1 54Mb/s 44 ** WPA1 WPA2
AP[1] wlan0-ap-3 Infrastruktura 1 54Mb/s 55 ** WPA2
AP[2] wlan0-ap-1 Infrastruktura 1 54Mb/s 44 ** WPA1
AP[3] wlan0-ap-2 Infrastruktura 1 54Mb/s 34 ** WPA1 WPA2
<<<
size: 614
location: clients/tests/test-client.py:854:test_002()/15
location: clients/tests/test-client.py:866:test_002()/15
cmd: $NMCLI -f AP -mode tabular -p d show wlan0
lang: C
returncode: 0
@ -380,13 +380,13 @@ stdout: 460 bytes
==========================
NAME IN-USE SSID MODE CHAN RATE SIGNAL BARS SECURITY
----------------------------------------------------------------------------
AP[1] wlan0-ap-3 Infra 1 54 Mbit/s 55 ** WPA1 WPA2
AP[2] wlan0-ap-1 Infra 1 54 Mbit/s 44 ** WPA1 WPA2
AP[1] wlan0-ap-3 Infra 1 54 Mbit/s 55 ** WPA2
AP[2] wlan0-ap-1 Infra 1 54 Mbit/s 44 ** WPA1
AP[3] wlan0-ap-2 Infra 1 54 Mbit/s 34 ** WPA1 WPA2
<<<
size: 694
location: clients/tests/test-client.py:854:test_002()/16
location: clients/tests/test-client.py:866:test_002()/16
cmd: $NMCLI -f AP -mode tabular -p d show wlan0
lang: pl_PL.UTF-8
returncode: 0
@ -397,45 +397,45 @@ stdout: 530 bytes
===================================
NAME IN-USE SSID MODE CHAN RATE SIGNAL BARS SECURITY
-----------------------------------------------------------------------------------
AP[1] wlan0-ap-3 Infrastruktura 1 54Mb/s 55 ** WPA1 WPA2
AP[2] wlan0-ap-1 Infrastruktura 1 54Mb/s 44 ** WPA1 WPA2
AP[1] wlan0-ap-3 Infrastruktura 1 54Mb/s 55 ** WPA2
AP[2] wlan0-ap-1 Infrastruktura 1 54Mb/s 44 ** WPA1
AP[3] wlan0-ap-2 Infrastruktura 1 54Mb/s 34 ** WPA1 WPA2
<<<
size: 319
location: clients/tests/test-client.py:855:test_002()/17
size: 309
location: clients/tests/test-client.py:867:test_002()/17
cmd: $NMCLI -f AP -mode tabular -t d show wlan0
lang: C
returncode: 0
stdout: 165 bytes
stdout: 155 bytes
>>>
AP[1]: :wlan0-ap-3:Infra:1:54 Mbit/s:55:** :WPA1 WPA2
AP[2]: :wlan0-ap-1:Infra:1:54 Mbit/s:44:** :WPA1 WPA2
AP[1]: :wlan0-ap-3:Infra:1:54 Mbit/s:55:** :WPA2
AP[2]: :wlan0-ap-1:Infra:1:54 Mbit/s:44:** :WPA1
AP[3]: :wlan0-ap-2:Infra:1:54 Mbit/s:34:** :WPA1 WPA2
<<<
size: 356
location: clients/tests/test-client.py:855:test_002()/18
size: 346
location: clients/tests/test-client.py:867:test_002()/18
cmd: $NMCLI -f AP -mode tabular -t d show wlan0
lang: pl_PL.UTF-8
returncode: 0
stdout: 192 bytes
stdout: 182 bytes
>>>
AP[1]: :wlan0-ap-3:Infrastruktura:1:54Mb/s:55:** :WPA1 WPA2
AP[2]: :wlan0-ap-1:Infrastruktura:1:54Mb/s:44:** :WPA1 WPA2
AP[1]: :wlan0-ap-3:Infrastruktura:1:54Mb/s:55:** :WPA2
AP[2]: :wlan0-ap-1:Infrastruktura:1:54Mb/s:44:** :WPA1
AP[3]: :wlan0-ap-2:Infrastruktura:1:54Mb/s:34:** :WPA1 WPA2
<<<
size: 1973
location: clients/tests/test-client.py:857:test_002()/19
location: clients/tests/test-client.py:869:test_002()/19
cmd: $NMCLI -f ALL d wifi
lang: C
returncode: 0
stdout: 1840 bytes
>>>
NAME SSID SSID-HEX BSSID MODE CHAN FREQ RATE SIGNAL BARS SECURITY WPA-FLAGS RSN-FLAGS DEVICE ACTIVE IN-USE DBUS-PATH
AP[1] wlan0-ap-3 776C616E302D61702D33 60:B3:25:25:E2:C8 Infra 1 2412 MHz 54 Mbit/s 55 ** WPA1 WPA2 pair_tkip pair_ccmp group_tkip group_ccmp psk pair_tkip pair_ccmp group_tkip group_ccmp psk wlan0 no /org/freedesktop/NetworkManager/AccessPoint/3
AP[2] wlan0-ap-1 776C616E302D61702D31 90:B1:5F:9E:E0:E3 Infra 1 2412 MHz 54 Mbit/s 44 ** WPA1 WPA2 pair_tkip pair_ccmp group_tkip group_ccmp psk pair_tkip pair_ccmp group_tkip group_ccmp psk wlan0 no /org/freedesktop/NetworkManager/AccessPoint/1
AP[1] wlan0-ap-3 776C616E302D61702D33 60:B3:25:25:E2:C8 Infra 1 2412 MHz 54 Mbit/s 55 ** WPA2 (none) pair_tkip pair_ccmp group_tkip group_ccmp sae wlan0 no /org/freedesktop/NetworkManager/AccessPoint/3
AP[2] wlan0-ap-1 776C616E302D61702D31 90:B1:5F:9E:E0:E3 Infra 1 2412 MHz 54 Mbit/s 44 ** WPA1 pair_tkip pair_ccmp group_tkip group_ccmp psk (none) wlan0 no /org/freedesktop/NetworkManager/AccessPoint/1
AP[3] wlan0-ap-2 776C616E302D61702D32 61:66:D2:E7:44:A2 Infra 1 2412 MHz 54 Mbit/s 34 ** WPA1 WPA2 pair_tkip pair_ccmp group_tkip group_ccmp psk pair_tkip pair_ccmp group_tkip group_ccmp psk wlan0 no /org/freedesktop/NetworkManager/AccessPoint/2
NAME SSID SSID-HEX BSSID MODE CHAN FREQ RATE SIGNAL BARS SECURITY WPA-FLAGS RSN-FLAGS DEVICE ACTIVE IN-USE DBUS-PATH
@ -445,15 +445,15 @@ NAME SSID SSID-HEX BSSID MODE CHAN FREQ RATE SIGNAL BARS SECURITY WPA
<<<
size: 2041
location: clients/tests/test-client.py:857:test_002()/20
location: clients/tests/test-client.py:869:test_002()/20
cmd: $NMCLI -f ALL d wifi
lang: pl_PL.UTF-8
returncode: 0
stdout: 1898 bytes
>>>
NAME SSID SSID-HEX BSSID MODE CHAN FREQ RATE SIGNAL BARS SECURITY WPA-FLAGS RSN-FLAGS DEVICE ACTIVE IN-USE DBUS-PATH
AP[1] wlan0-ap-3 776C616E302D61702D33 60:B3:25:25:E2:C8 Infrastruktura 1 2412MHz 54Mb/s 55 ** WPA1 WPA2 pair_tkip pair_ccmp group_tkip group_ccmp psk pair_tkip pair_ccmp group_tkip group_ccmp psk wlan0 nie /org/freedesktop/NetworkManager/AccessPoint/3
AP[2] wlan0-ap-1 776C616E302D61702D31 90:B1:5F:9E:E0:E3 Infrastruktura 1 2412MHz 54Mb/s 44 ** WPA1 WPA2 pair_tkip pair_ccmp group_tkip group_ccmp psk pair_tkip pair_ccmp group_tkip group_ccmp psk wlan0 nie /org/freedesktop/NetworkManager/AccessPoint/1
AP[1] wlan0-ap-3 776C616E302D61702D33 60:B3:25:25:E2:C8 Infrastruktura 1 2412MHz 54Mb/s 55 ** WPA2 (brak) pair_tkip pair_ccmp group_tkip group_ccmp sae wlan0 nie /org/freedesktop/NetworkManager/AccessPoint/3
AP[2] wlan0-ap-1 776C616E302D61702D31 90:B1:5F:9E:E0:E3 Infrastruktura 1 2412MHz 54Mb/s 44 ** WPA1 pair_tkip pair_ccmp group_tkip group_ccmp psk (brak) wlan0 nie /org/freedesktop/NetworkManager/AccessPoint/1
AP[3] wlan0-ap-2 776C616E302D61702D32 61:66:D2:E7:44:A2 Infrastruktura 1 2412MHz 54Mb/s 34 ** WPA1 WPA2 pair_tkip pair_ccmp group_tkip group_ccmp psk pair_tkip pair_ccmp group_tkip group_ccmp psk wlan0 nie /org/freedesktop/NetworkManager/AccessPoint/2
NAME SSID SSID-HEX BSSID MODE CHAN FREQ RATE SIGNAL BARS SECURITY WPA-FLAGS RSN-FLAGS DEVICE ACTIVE IN-USE DBUS-PATH
@ -463,7 +463,7 @@ NAME SSID SSID-HEX BSSID MODE CHAN FREQ RATE SIGNAL BARS SECURITY WPA
<<<
size: 246
location: clients/tests/test-client.py:859:test_002()/21
location: clients/tests/test-client.py:871:test_002()/21
cmd: $NMCLI c
lang: C
returncode: 0
@ -474,7 +474,7 @@ con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet --
<<<
size: 256
location: clients/tests/test-client.py:859:test_002()/22
location: clients/tests/test-client.py:871:test_002()/22
cmd: $NMCLI c
lang: pl_PL.UTF-8
returncode: 0
@ -485,7 +485,7 @@ con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet --
<<<
size: 1224
location: clients/tests/test-client.py:861:test_002()/23
location: clients/tests/test-client.py:873:test_002()/23
cmd: $NMCLI c s con-1
lang: C
returncode: 0
@ -517,7 +517,7 @@ connection.llmnr: -1 (default)
<<<
size: 1236
location: clients/tests/test-client.py:861:test_002()/24
location: clients/tests/test-client.py:873:test_002()/24
cmd: $NMCLI c s con-1
lang: pl_PL.UTF-8
returncode: 0

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -807,11 +807,23 @@ class TestNmcli(NmTestBase):
iface = 'wlan1')
self.srv.op_AddObj('WifiAp',
device = 'wlan0')
device = 'wlan0',
rsnf = 0x0)
self.srv.op_AddObj('WifiAp',
device = 'wlan0')
NM_AP_FLAGS = getattr(NM, '80211ApSecurityFlags')
rsnf = 0x0
rsnf = rsnf | NM_AP_FLAGS.PAIR_TKIP
rsnf = rsnf | NM_AP_FLAGS.PAIR_CCMP
rsnf = rsnf | NM_AP_FLAGS.GROUP_TKIP
rsnf = rsnf | NM_AP_FLAGS.GROUP_CCMP
rsnf = rsnf | NM_AP_FLAGS.KEY_MGMT_SAE
self.srv.op_AddObj('WifiAp',
device = 'wlan0')
device = 'wlan0',
wpaf = 0x0,
rsnf = rsnf)
self.srv.op_AddObj('WifiAp',
device = 'wlan1')

View file

@ -861,12 +861,23 @@ class WifiAp(ExportedObj):
ExportedObj.__init__(self, ExportedObj.create_path(WifiAp), ident)
NM_AP_FLAGS = getattr(NM, '80211ApSecurityFlags')
if flags is None:
flags = 0x1
if wpaf is None:
wpaf = 0x1cc
wpaf = 0x0
wpaf = wpaf | NM_AP_FLAGS.PAIR_TKIP
wpaf = wpaf | NM_AP_FLAGS.PAIR_CCMP
wpaf = wpaf | NM_AP_FLAGS.GROUP_TKIP
wpaf = wpaf | NM_AP_FLAGS.GROUP_CCMP
wpaf = wpaf | NM_AP_FLAGS.KEY_MGMT_PSK
if rsnf is None:
rsnf = 0x1cc
rsnf = 0x0
rsnf = rsnf | NM_AP_FLAGS.PAIR_TKIP
rsnf = rsnf | NM_AP_FLAGS.PAIR_CCMP
rsnf = rsnf | NM_AP_FLAGS.GROUP_TKIP
rsnf = rsnf | NM_AP_FLAGS.GROUP_CCMP
rsnf = rsnf | NM_AP_FLAGS.KEY_MGMT_PSK
if freq is None:
freq = 2412
if bssid is None: