Skip to content

Commit 688d4ca

Browse files
committed
[wpasupplicant] add test for access point mode, change first test to
station mode
1 parent 3a09c5c commit 688d4ca

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

tests/airos/test_wpasupplicant.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_invalid_encryption(self):
2525
"autostart": True,
2626
"wireless": {
2727
"radio": "radio0",
28-
"mode": "access_point",
28+
"mode": "station",
2929
"ssid": "ap-ssid-example",
3030
},
3131
"encryption": {
@@ -50,8 +50,9 @@ def test_no_encryption(self):
5050
"autostart": True,
5151
"wireless": {
5252
"radio": "radio0",
53-
"mode": "access_point",
53+
"mode": "station",
5454
"ssid": "ap-ssid-example",
55+
"bssid": "00:11:22:33:44:55",
5556
},
5657
"encryption": {
5758
"protocol": "none",
@@ -95,8 +96,9 @@ def test_wpa2_personal(self):
9596
"autostart": True,
9697
"wireless": {
9798
"radio": "radio0",
98-
"mode": "access_point",
99+
"mode": "station",
99100
"ssid": "ap-ssid-example",
101+
"bssid": "00:11:22:33:44:55",
100102
},
101103
"encryption": {
102104
"protocol": "wpa2_personal",
@@ -148,7 +150,7 @@ def test_wpa2_enterprise(self):
148150
"autostart": True,
149151
"wireless": {
150152
"radio": "radio0",
151-
"mode": "access_point",
153+
"mode": "station",
152154
"ssid": "ap-ssid-example",
153155
},
154156
"encryption": {
@@ -190,3 +192,12 @@ def test_wpa2_enterprise(self):
190192
]
191193

192194
self.assertEqualConfig(o.intermediate_data['wpasupplicant'], expected)
195+
196+
197+
class TestWpasupplicantAccess(ConverterTest):
198+
"""
199+
Test the wpasupplicant converter for a
200+
device in ``access_point`` mode
201+
"""
202+
203+
backend = WpasupplicantAirOS

0 commit comments

Comments
 (0)