auto-t: allow testAP to benefit from re-scanning

If a beacon is lost testAP will fail since it did not utilize any
rescanning logic. Now it can use this feature by passing full_scan.
This is required since IWD APs are not known to test-runner like
hostapd APs are.
This commit is contained in:
James Prestwood 2021-11-02 12:57:51 -07:00 committed by Denis Kenzior
parent 392eebc0a9
commit 72dbab789d
4 changed files with 11 additions and 8 deletions

View File

@ -55,9 +55,10 @@ class Test(unittest.TestCase):
condition = 'not obj.scanning'
wd.wait_for_object_condition(dev2, condition)
ordered_networks = dev2.get_ordered_networks()
networks = {}
networks['TestAP1'] = dev2.get_ordered_network('TestAP1')
networks['TestAP2'] = dev2.get_ordered_network('TestAP2', full_scan=True)
networks = { n.name: n for n in ordered_networks }
self.assertEqual(networks['TestAP1'].type, NetworkType.psk)
self.assertEqual(networks['TestAP2'].type, NetworkType.psk)

View File

@ -37,9 +37,9 @@ class Test(unittest.TestCase):
condition = 'not obj.scanning'
wd.wait_for_object_condition(dev2, condition)
ordered_networks = dev2.get_ordered_networks()
networks = {}
networks['APConfig'] = dev2.get_ordered_network('APConfig', full_scan=True)
networks = { n.name: n for n in ordered_networks }
self.assertEqual(networks['APConfig'].type, NetworkType.psk)
psk_agent = PSKAgent('password123')

View File

@ -34,9 +34,9 @@ class Test(unittest.TestCase):
condition = 'not obj.scanning'
wd.wait_for_object_condition(dev2, condition)
ordered_networks = dev2.get_ordered_networks()
networks = {}
networks['TestAP2'] = dev2.get_ordered_network('TestAP2', full_scan=True)
networks = { n.name: n for n in ordered_networks }
self.assertEqual(networks['TestAP2'].type, NetworkType.psk)
psk_agent = PSKAgent('Password2')

View File

@ -56,8 +56,10 @@ class Test(unittest.TestCase):
condition = 'not obj.scanning'
wd.wait_for_object_condition(dev2, condition)
ordered_networks = dev2.get_ordered_networks()
networks = { n.name: n for n in ordered_networks }
networks = {}
networks['TestAP1'] = dev2.get_ordered_network('TestAP1')
networks['TestAP2'] = dev2.get_ordered_network('TestAP2', full_scan=True)
self.assertEqual(networks['TestAP1'].type, NetworkType.psk)
self.assertEqual(networks['TestAP2'].type, NetworkType.psk)