diff mbox series

[9/9] auto-t: update testFT-8021x-roam with SHA384 test

Message ID 20230410220135.373872-10-prestwoj@gmail.com (mailing list archive)
State New
Headers show
Series Support FT-8021X-SHA384 | expand

Commit Message

James Prestwood April 10, 2023, 10:01 p.m. UTC
---
 autotests/testFT-8021x-roam/connection_test.py | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/autotests/testFT-8021x-roam/connection_test.py b/autotests/testFT-8021x-roam/connection_test.py
index 356a9af2..2a4fe9e1 100644
--- a/autotests/testFT-8021x-roam/connection_test.py
+++ b/autotests/testFT-8021x-roam/connection_test.py
@@ -10,7 +10,7 @@  from hostapd import HostapdCLI
 import testutil
 
 class Test(unittest.TestCase):
-    def test_roam_success(self):
+    def validate(self):
         wd = IWD(True)
 
         device = wd.list_devices(1)[0]
@@ -50,6 +50,22 @@  class Test(unittest.TestCase):
         self.assertRaises(Exception, testutil.test_ifaces_connected,
                           (self.bss_hostapd[0].ifname, device.name, True, True))
 
+    def test_ft_8021x_sha256(self):
+        self.bss_hostapd[0].set_value('wpa_key_mgmt', 'FT-EAP')
+        self.bss_hostapd[0].reload()
+        self.bss_hostapd[1].set_value('wpa_key_mgmt', 'FT-EAP')
+        self.bss_hostapd[1].reload()
+
+        self.validate()
+
+    def test_ft_8021x_sha3846(self):
+        self.bss_hostapd[0].set_value('wpa_key_mgmt', 'FT-EAP-SHA384')
+        self.bss_hostapd[0].reload()
+        self.bss_hostapd[1].set_value('wpa_key_mgmt', 'FT-EAP-SHA384')
+        self.bss_hostapd[1].reload()
+
+        self.validate()
+
     def tearDown(self):
         os.system('ip link set "' + self.bss_hostapd[0].ifname + '" down')
         os.system('ip link set "' + self.bss_hostapd[1].ifname + '" down')