eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

8021x_network_test.py (1192B)


      1 #!/usr/bin/python3
      2 
      3 import unittest
      4 import sys
      5 
      6 sys.path.append('../util')
      7 import iwd
      8 import validation
      9 from validation import TestConnectAutoConnect
     10 from iwd import IWD
     11 
     12 class Test8021xNetwork(unittest.TestCase):
     13     '''
     14     The below test cases excesise the following connection scenarios:
     15 
     16     Network config is
     17     present at start time:  Connect:  AutoConnect:  Result:
     18     --------------------------------------------------------------------------
     19     False                             True          NotConfiguredEx is thrown
     20     True                              True          Connection succeeds
     21     True - EAP method in    True                    NotSupportedEx is thrown
     22        config file is not
     23        supported by IWD
     24     '''
     25     def test_8021x(self):
     26         tca = TestConnectAutoConnect()
     27         tca.validate('ssidEAP-TLS', True, iwd.NotConfiguredEx)
     28 
     29         IWD.copy_to_storage('ssidEAP-TLS.8021x')
     30 
     31         tca.validate('ssidEAP-TLS', True)
     32 
     33         IWD.clear_storage()
     34         IWD.copy_to_storage('ssidEAP-Other.8021x')
     35 
     36         tca.validate('ssidEAP-Other', False, iwd.NotSupportedEx)
     37 
     38         IWD.clear_storage()
     39 
     40 if __name__ == '__main__':
     41     unittest.main(exit=True)