From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.01.org
Subject: [PATCH v2 5/6] auto-t: add SAE test for no supported groups
Date: Thu, 09 Sep 2021 13:54:40 -0700 [thread overview]
Message-ID: <20210909205441.16649-5-prestwoj@gmail.com> (raw)
In-Reply-To: <20210909205441.16649-1-prestwoj@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1295 bytes --]
---
autotests/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
index 95872413..e61bf585 100644
--- 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):
--
2.31.1
next prev parent reply other threads:[~2021-09-09 20:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-09 20:54 [PATCH v2 1/6] hwsim: add MatchBytes/MatchBytesOffset rule properties James Prestwood
2021-09-09 20:54 ` [PATCH v2 2/6] auto-t: hwsim.py: add match/match_offset properties James Prestwood
2021-09-09 20:54 ` [PATCH v2 3/6] auto-t: change testSAE timeout_test to use match/offset James Prestwood
2021-09-09 20:54 ` [PATCH v2 4/6] auto-t: add SAE test for a non-ACKed confirm James Prestwood
2021-09-09 20:54 ` James Prestwood [this message]
2021-09-09 20:54 ` [PATCH v2 6/6] auto-t: remove ';' in testSAE autoconnect_test.py James Prestwood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210909205441.16649-5-prestwoj@gmail.com \
--to=prestwoj@gmail.com \
--cc=iwd@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox