eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 4c6f0ff75aae2ef0f66fdee3860360f8fbaff9b4
parent a0a05a88b929ba73057861a3f7198ee8f63902f0
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu,  9 Sep 2021 15:08:47 -0700

auto-t: add SAE test for no supported groups

Diffstat:
Mautotests/testSAE/failure_test.py | 15++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/autotests/testSAE/failure_test.py b/autotests/testSAE/failure_test.py @@ -8,11 +8,12 @@ import iwd from iwd import IWD from iwd import PSKAgent from iwd import NetworkType +from hostapd import HostapdCLI class Test(unittest.TestCase): - def validate_connection(self, wd): - psk_agent = PSKAgent("InvalidSecret") + def validate_connection(self, wd, passphrase): + psk_agent = PSKAgent(passphrase) wd.register_psk_agent(psk_agent) devices = wd.list_devices(1) @@ -33,7 +34,15 @@ class Test(unittest.TestCase): def test_connection_success(self): wd = IWD(True) - self.validate_connection(wd) + self.validate_connection(wd, 'InvalidSecret') + + def test_no_supported_groups(self): + hostapd = HostapdCLI(config='ssidSAE.conf') + hostapd.set_value('sae_groups', '1') + hostapd.reload() + + wd = IWD(True) + self.validate_connection(wd, 'secret123') @classmethod def setUpClass(cls):