3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

auto-t: check for known networks in EAP-WSC

Make sure changes to WSC continue to work with known networks
This commit is contained in:
James Prestwood 2019-08-28 11:02:22 -07:00 committed by Denis Kenzior
parent 8500b60b13
commit c17b0ce04e
3 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,8 @@ class Test(unittest.TestCase):
condition = 'obj.state == DeviceState.connected' condition = 'obj.state == DeviceState.connected'
wd.wait_for_object_condition(device, condition) wd.wait_for_object_condition(device, condition)
self.assertEqual(len(wd.list_known_networks()), 1)
device.disconnect() device.disconnect()
condition = 'obj.state == DeviceState.disconnected' condition = 'obj.state == DeviceState.disconnected'

View File

@ -25,6 +25,8 @@ class Test(unittest.TestCase):
condition = 'obj.state == DeviceState.connected' condition = 'obj.state == DeviceState.connected'
wd.wait_for_object_condition(device, condition) wd.wait_for_object_condition(device, condition)
self.assertEqual(len(wd.list_known_networks()), 1)
device.disconnect() device.disconnect()
condition = 'obj.state == DeviceState.disconnected' condition = 'obj.state == DeviceState.disconnected'

View File

@ -24,6 +24,8 @@ class Test(unittest.TestCase):
condition = 'obj.state == DeviceState.connected' condition = 'obj.state == DeviceState.connected'
wd.wait_for_object_condition(device, condition) wd.wait_for_object_condition(device, condition)
self.assertEqual(len(wd.list_known_networks()), 1)
device.disconnect() device.disconnect()
condition = 'obj.state == DeviceState.disconnected' condition = 'obj.state == DeviceState.disconnected'