iwd/autotests
James Prestwood 9d3d65a282 auto-t: add get_ordered_network(ssid)
This is a helper/shortcut to get_ordered_networks (plural). In nearly
all the autotests we had (roughly) the same block of code:

ordered_network = get_ordered_networks()[0]

self.assertNotEqual(ordered_network, None)
self.assertEqual(ordered_network.name, "someSsid")

Rather than having to do this, we can simplify and just have a single
call to get_ordered_network, which takes the SSID. If the SSID is not
found, we raise an exception. This avoids needing both asserts since
we are guarenteed that the return is valid and the SSID matches.

This also avoids possible issues with multiple networks showing up in
the GetOrderedNetworks call. Eventually test-runner will support running
tests on real wireless hardware, so its possible we could pick up
unexpected networks in the scan.
2018-12-14 13:46:32 -06:00
..
misc auto-t: Add testEAP-PEAP-SIM 2018-05-15 14:32:51 -05:00
testAP auto-t: Fix testAP 2018-09-14 01:38:45 -05:00
testAPRoam auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testAdHoc auto-t: kill instances of iwd 2018-10-19 14:16:00 -05:00
testConnectAutoconnect auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testDisconnectByAP auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-AKA auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-AKA-ofono auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-AKA-prime auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-AKA-prime-ofono auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-MSCHAPV2 auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-PEAP auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-PEAP-GTC auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-PEAP-MSCHAPv2 auto-t: updated tests to use new list_devices 2018-07-02 13:05:38 -05:00
testEAP-PEAP-SIM auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-PWD auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-SIM auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-SIM-ofono auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-TLS auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-TLS-Frag auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-TLSwithMFPC auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-TLSwithMFPR auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-TTLS auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-TTLS-CHAP auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-TTLS-EAP-MSCHAPV2 auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-TTLS-Frag auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-TTLS-MSCHAP auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-TTLS-PAP auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-WPS auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testEAP-WPS-Frag auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testFT-8021x-roam auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testFT-PSK-roam auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testFT-SAE-roam auto-t: added autotest for FT over SAE 2018-09-21 11:29:19 -05:00
testHiddenNetworks auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testKnownNetworks auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testMFP-Options auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testOWE auto-t: add OWE autotest 2018-11-19 12:10:55 -06:00
testOpen auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testPreauth-roam auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testRSSIAgent auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testSAE auto-t: added test for SAE 2018-08-14 10:37:56 -05:00
testSAQuery auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testSAQuery-spoofing auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testScan auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testWPA auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testWPA2 auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testWPA2-SHA256 auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
testWPA2withMFP auto-t: removed ';' from many autotests 2018-12-14 13:46:23 -06:00
util auto-t: add get_ordered_network(ssid) 2018-12-14 13:46:32 -06:00