Skip to content

Commit

Permalink
netplan bugfix declare auth for non wpa3 (bugfix) (#1306)
Browse files Browse the repository at this point in the history
* Port bugfix from #1301

* Update tests
  • Loading branch information
Hook25 authored Jun 21, 2024
1 parent 8a9c908 commit dae49f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/base/bin/wifi_client_test_netplan.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ def generate_test_config(interface, ssid, psk, address, dhcp, wpa3):
# Set the key-management to "sae" when WPA3 is used
if wpa3:
access_point[ssid]["auth"]["key-management"] = "sae"
else:
access_point[ssid]["auth"]["key-management"] = "psk"

# Define the interface_info
interface_info = {
Expand Down
2 changes: 2 additions & 0 deletions providers/base/tests/test_wifi_client_test_netplan.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def test_private_ap_with_dhcp(self):
access-points:
my_ap:
auth:
key-management: psk
password: s3cr3t
dhcp4: true
nameservers: {}
Expand Down Expand Up @@ -97,6 +98,7 @@ def test_static_ip_no_dhcp(self):
access-points:
my_ap:
auth:
key-management: psk
password: s3cr3t
addresses:
- 192.168.1.1
Expand Down

0 comments on commit dae49f5

Please sign in to comment.