3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 05:39:24 +01:00

auto-t: let testEAP-TTLS-MSCHAPv2 use HostapdCLI easier

This test made it past the initial refactor to use HostapdCLI with the
'config' parameter. This avoids the need to iterate the hostapd map in
the actual test.
This commit is contained in:
James Prestwood 2019-11-14 11:58:06 -08:00 committed by Denis Kenzior
parent 0c586dc8ca
commit c961dafc50
2 changed files with 2 additions and 16 deletions

View File

@ -11,18 +11,11 @@ from iwd import PSKAgent
from iwd import NetworkType
from hostapd import HostapdCLI
from hostapd import hostapd_map
class Test(unittest.TestCase):
def validate_connection(self, wd):
hostapd = None
for hostapd_if in list(hostapd_map.values()):
hpd = HostapdCLI(hostapd_if)
if hpd.get_config_value('ssid') == 'ssidEAP-TTLS-MSCHAPv2':
hostapd = hpd
break
hostapd = HostapdCLI(config='ssidEAP-TTLS-MSCHAPv2.conf')
self.assertIsNotNone(hostapd)

View File

@ -11,18 +11,11 @@ from iwd import PSKAgent
from iwd import NetworkType
from hostapd import HostapdCLI
from hostapd import hostapd_map
class Test(unittest.TestCase):
def validate_connection(self, wd):
hostapd = None
for hostapd_if in list(hostapd_map.values()):
hpd = HostapdCLI(hostapd_if)
if hpd.get_config_value('ssid') == 'ssidEAP-TTLS-MSCHAPv2':
hostapd = hpd
break
hostapd = HostapdCLI(config='ssidEAP-TTLS-MSCHAPv2.conf')
self.assertIsNotNone(hostapd)