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: Rename setting Autoconnect to AutoConnect

This commit is contained in:
Denis Kenzior 2019-10-24 12:53:23 -05:00
parent 8a1ce9e3e3
commit aa13f5458d
60 changed files with 82 additions and 82 deletions

View File

@ -1,2 +1,2 @@
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -95,7 +95,7 @@ class Test(unittest.TestCase):
condition = 'not obj.connected' condition = 'not obj.connected'
wd.wait_for_object_condition(ordered_network.network_object, condition) wd.wait_for_object_condition(ordered_network.network_object, condition)
# Now we wait... Autoconnect should take over # Now we wait... AutoConnect should take over
condition = 'obj.state == DeviceState.connecting' condition = 'obj.state == DeviceState.connecting'
wd.wait_for_object_condition(device, condition, 15) wd.wait_for_object_condition(device, condition, 15)

View File

@ -6,4 +6,4 @@ EAP-TTLS-Phase2-Method=Tunneled-MSCHAP
EAP-TTLS-Phase2-Identity=user EAP-TTLS-Phase2-Identity=user
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -7,4 +7,4 @@ EAP-TTLS-Phase2-Identity=user
#EAP-TTLS-Phase2-Password=password #EAP-TTLS-Phase2-Password=password
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -6,7 +6,7 @@ import sys
sys.path.append('../util') sys.path.append('../util')
import iwd import iwd
import validation import validation
from validation import TestConnectAutoconnect from validation import TestConnectAutoConnect
from iwd import IWD from iwd import IWD
class Test8021xNetwork(unittest.TestCase): class Test8021xNetwork(unittest.TestCase):
@ -14,7 +14,7 @@ class Test8021xNetwork(unittest.TestCase):
The bellow test cases excesise the following connection scenarios: The bellow test cases excesise the following connection scenarios:
Network config is Network config is
present at start time: Connect: Autoconnect: Result: present at start time: Connect: AutoConnect: Result:
-------------------------------------------------------------------------- --------------------------------------------------------------------------
False True NotConfiguredEx is thrown False True NotConfiguredEx is thrown
True True Connection succeeds True True Connection succeeds
@ -23,7 +23,7 @@ class Test8021xNetwork(unittest.TestCase):
supported by IWD supported by IWD
''' '''
def test_8021x(self): def test_8021x(self):
tca = TestConnectAutoconnect() tca = TestConnectAutoConnect()
tca.validate('ssidEAP-TLS', True, iwd.NotConfiguredEx) tca.validate('ssidEAP-TLS', True, iwd.NotConfiguredEx)
IWD.copy_to_storage('ssidEAP-TLS.8021x') IWD.copy_to_storage('ssidEAP-TLS.8021x')

View File

@ -6,7 +6,7 @@ import sys
sys.path.append('../util') sys.path.append('../util')
import iwd import iwd
import validation import validation
from validation import TestConnectAutoconnect from validation import TestConnectAutoConnect
from iwd import IWD from iwd import IWD
class TestOpenNetwork(unittest.TestCase): class TestOpenNetwork(unittest.TestCase):
@ -14,13 +14,13 @@ class TestOpenNetwork(unittest.TestCase):
The bellow test cases excesise the following connection scenarios: The bellow test cases excesise the following connection scenarios:
Network config is Network config is
present at start time: Connect: Autoconnect: Result: present at start time: Connect: AutoConnect: Result:
-------------------------------------------------------------------------- --------------------------------------------------------------------------
False True Connection succeeds False True Connection succeeds
True True Connection succeeds True True Connection succeeds
''' '''
def test_open(self): def test_open(self):
tca = TestConnectAutoconnect() tca = TestConnectAutoConnect()
tca.validate('ssidOpen', False) tca.validate('ssidOpen', False)
tca.validate('ssidOpen', True) tca.validate('ssidOpen', True)

View File

@ -9,7 +9,7 @@ from iwd import IWD
from iwd import PSKAgent from iwd import PSKAgent
from iwd import NetworkType from iwd import NetworkType
class TestConnectAutoconnect(unittest.TestCase): class TestConnectAutoConnect(unittest.TestCase):
def check_connect(self, wd, device, ssid, throws): def check_connect(self, wd, device, ssid, throws):
ordered_network = device.get_ordered_network(ssid) ordered_network = device.get_ordered_network(ssid)

View File

@ -6,7 +6,7 @@ import sys
sys.path.append('../util') sys.path.append('../util')
import iwd import iwd
import validation import validation
from validation import TestConnectAutoconnect from validation import TestConnectAutoConnect
from iwd import IWD from iwd import IWD
class TestWpaNetwork(unittest.TestCase): class TestWpaNetwork(unittest.TestCase):
@ -14,14 +14,14 @@ class TestWpaNetwork(unittest.TestCase):
The bellow test cases exercise the following connection scenarios: The bellow test cases exercise the following connection scenarios:
Network config is Network config is
present at start time: Connect: Autoconnect: Result: present at start time: Connect: AutoConnect: Result:
-------------------------------------------------------------------------- --------------------------------------------------------------------------
False True Connection succeeds False True Connection succeeds
True True Connection succeeds True True Connection succeeds
''' '''
def test_wpa(self): def test_wpa(self):
tca = TestConnectAutoconnect() tca = TestConnectAutoConnect()
tca.validate('ssidWPA', False, None, True) tca.validate('ssidWPA', False, None, True)
tca.validate('ssidWPA', True, None, True) tca.validate('ssidWPA', True, None, True)

View File

@ -2,4 +2,4 @@
EAP-Method=AKA EAP-Method=AKA
[Settings] [Settings]
Autoconnect=false AutoConnect=false

View File

@ -2,4 +2,4 @@
EAP-Method=AKA' EAP-Method=AKA'
[Settings] [Settings]
Autoconnect=false AutoConnect=false

View File

@ -2,4 +2,4 @@
EAP-Method=AKA' EAP-Method=AKA'
[Settings] [Settings]
Autoconnect=false AutoConnect=false

View File

@ -2,4 +2,4 @@
EAP-Method=AKA EAP-Method=AKA
[Settings] [Settings]
Autoconnect=false AutoConnect=false

View File

@ -8,4 +8,4 @@ EAP-PEAP-Phase2-Method=GTC
EAP-PEAP-Phase2-Identity=secure@identity.com EAP-PEAP-Phase2-Identity=secure@identity.com
[Settings] [Settings]
Autoconnect=false AutoConnect=false

View File

@ -9,4 +9,4 @@ EAP-PEAP-Phase2-Identity=secure@identity.com
EAP-PEAP-Phase2-Password=testpasswd EAP-PEAP-Phase2-Password=testpasswd
[Settings] [Settings]
Autoconnect=false AutoConnect=false

View File

@ -9,4 +9,4 @@ EAP-PEAP-Phase2-Identity=domain\\User
EAP-PEAP-Phase2-Password=Password EAP-PEAP-Phase2-Password=Password
[Settings] [Settings]
Autoconnect=false AutoConnect=false

View File

@ -7,4 +7,4 @@ EAP-PEAP-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-PEAP-Phase2-Method=SIM EAP-PEAP-Phase2-Method=SIM
[Settings] [Settings]
Autoconnect=false AutoConnect=false

View File

@ -9,4 +9,4 @@ EAP-PEAP-Phase2-Identity=secure@identity.com
EAP-PEAP-Phase2-Password=testpasswd EAP-PEAP-Phase2-Password=testpasswd
[Settings] [Settings]
Autoconnect=false AutoConnect=false

View File

@ -9,4 +9,4 @@ EAP-PEAP-Phase2-Identity=secure@identity.com
EAP-PEAP-Phase2-Password=testpasswd EAP-PEAP-Phase2-Password=testpasswd
[Settings] [Settings]
Autoconnect=false AutoConnect=false

View File

@ -9,4 +9,4 @@ EAP-PEAP-Phase2-Identity=secure@identity.com
EAP-PEAP-Phase2-Password=testpasswd EAP-PEAP-Phase2-Password=testpasswd
[Settings] [Settings]
Autoconnect=false AutoConnect=false

View File

@ -4,4 +4,4 @@ EAP-Identity=eap-pwd-identity
EAP-Password=secret123 EAP-Password=secret123
[Settings] [Settings]
Autoconnect=false AutoConnect=false

View File

@ -3,4 +3,4 @@ EAP-Method=PWD
EAP-Identity=eap-pwd-identity EAP-Identity=eap-pwd-identity
[Settings] [Settings]
Autoconnect=false AutoConnect=false

View File

@ -2,4 +2,4 @@
EAP-Method=SIM EAP-Method=SIM
[Settings] [Settings]
Autoconnect=false AutoConnect=false

View File

@ -2,4 +2,4 @@
EAP-Method=SIM EAP-Method=SIM
[Settings] [Settings]
Autoconnect=false AutoConnect=false

View File

@ -6,4 +6,4 @@ EAP-TLS-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-Identity=abc@example.com EAP-Identity=abc@example.com
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -91,4 +91,4 @@ BkDLsu/YKwRFSfrbYZXbTlU8tQ==
-----END PRIVATE KEY----- -----END PRIVATE KEY-----
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -6,4 +6,4 @@ EAP-TLS-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-Identity=abc@example.com EAP-Identity=abc@example.com
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -7,4 +7,4 @@ EAP-TLS-ClientKeyPassphrase=abc
EAP-Identity=abc@example.com EAP-Identity=abc@example.com
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -6,4 +6,4 @@ EAP-TLS-ClientKey=/tmp/certs/cert-client-key-v2-des-ede3.pem
EAP-Identity=abc@example.com EAP-Identity=abc@example.com
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -6,4 +6,4 @@ EAP-TLS-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-Identity=abc@example.com EAP-Identity=abc@example.com
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -6,4 +6,4 @@ EAP-TLS-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-Identity=abc@example.com EAP-Identity=abc@example.com
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -9,4 +9,4 @@ EAP-TTLS-Phase2-Method=Tunneled-CHAP
#EAP-TTLS-Phase2-Password=testpasswd #EAP-TTLS-Phase2-Password=testpasswd
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -9,4 +9,4 @@ EAP-TTLS-Phase2-Identity=abc@example.com
EAP-TTLS-Phase2-Password=testpasswd EAP-TTLS-Phase2-Password=testpasswd
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -9,4 +9,4 @@ EAP-TTLS-Phase2-Method=Tunneled-MSCHAP
#EAP-TTLS-Phase2-Password=testpasswd #EAP-TTLS-Phase2-Password=testpasswd
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -9,4 +9,4 @@ EAP-TTLS-Phase2-Method=Tunneled-MSCHAPv2
#EAP-TTLS-Phase2-Password=testpasswd #EAP-TTLS-Phase2-Password=testpasswd
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -9,4 +9,4 @@ EAP-TTLS-Phase2-Method=Tunneled-PAP
#EAP-TTLS-Phase2-Password=testpasswd #EAP-TTLS-Phase2-Password=testpasswd
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -9,4 +9,4 @@ EAP-TTLS-Phase2-Identity=abc@example.com
EAP-TTLS-Phase2-Password=testpasswd EAP-TTLS-Phase2-Password=testpasswd
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -6,4 +6,4 @@ EAP-TLS-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-Identity=abc@example.com EAP-Identity=abc@example.com
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -2,4 +2,4 @@
EAP-Method=PWD EAP-Method=PWD
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -2,4 +2,4 @@
EAP-Method=PWD EAP-Method=PWD
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -6,7 +6,7 @@ import sys
sys.path.append('../util') sys.path.append('../util')
import iwd import iwd
import validation import validation
from validation import TestConnectAutoconnect from validation import TestConnectAutoConnect
from iwd import IWD from iwd import IWD
class TestWpaNetwork(unittest.TestCase): class TestWpaNetwork(unittest.TestCase):
@ -14,7 +14,7 @@ class TestWpaNetwork(unittest.TestCase):
The bellow test cases excesise the following connection scenarios: The bellow test cases excesise the following connection scenarios:
Network config is Network config is
present at start time: Connect: Autoconnect: Result: present at start time: Connect: AutoConnect: Result:
-------------------------------------------------------------------------- --------------------------------------------------------------------------
False True NotFoundEx raised False True NotFoundEx raised
False True ServiceSetOverlapEx raised False True ServiceSetOverlapEx raised
@ -23,7 +23,7 @@ class TestWpaNetwork(unittest.TestCase):
''' '''
def test_wpa(self): def test_wpa(self):
tca = TestConnectAutoconnect() tca = TestConnectAutoConnect()
tca.validate('UnExistingNetwork', False, iwd.NotFoundEx) tca.validate('UnExistingNetwork', False, iwd.NotFoundEx)
tca.validate('ssidOverlap', False, iwd.ServiceSetOverlapEx) tca.validate('ssidOverlap', False, iwd.ServiceSetOverlapEx)

View File

@ -6,7 +6,7 @@ import sys
sys.path.append('../util') sys.path.append('../util')
import iwd import iwd
import validation import validation
from validation import TestConnectAutoconnect from validation import TestConnectAutoConnect
from iwd import IWD from iwd import IWD
class TestOpenNetwork(unittest.TestCase): class TestOpenNetwork(unittest.TestCase):
@ -14,13 +14,13 @@ class TestOpenNetwork(unittest.TestCase):
The bellow test cases excesise the following connection scenarios: The bellow test cases excesise the following connection scenarios:
Network config is Network config is
present at start time: Connect: Autoconnect: Result: present at start time: Connect: AutoConnect: Result:
-------------------------------------------------------------------------- --------------------------------------------------------------------------
False True Connection succeeds False True Connection succeeds
True True Connection succeeds True True Connection succeeds
''' '''
def test_open(self): def test_open(self):
tca = TestConnectAutoconnect() tca = TestConnectAutoConnect()
tca.validate('ssidHiddenOpen', False) tca.validate('ssidHiddenOpen', False)
tca.validate('ssidHiddenOpen', True) tca.validate('ssidHiddenOpen', True)

View File

@ -9,7 +9,7 @@ from iwd import IWD
from iwd import PSKAgent from iwd import PSKAgent
from iwd import NetworkType from iwd import NetworkType
class TestConnectAutoconnect(unittest.TestCase): class TestConnectAutoConnect(unittest.TestCase):
def check_connect_hidden_network(self, wd, device, ssid, throws): def check_connect_hidden_network(self, wd, device, ssid, throws):
if not throws is None: if not throws is None:

View File

@ -6,7 +6,7 @@ import sys
sys.path.append('../util') sys.path.append('../util')
import iwd import iwd
import validation import validation
from validation import TestConnectAutoconnect from validation import TestConnectAutoConnect
from iwd import IWD from iwd import IWD
class TestWpaNetwork(unittest.TestCase): class TestWpaNetwork(unittest.TestCase):
@ -14,14 +14,14 @@ class TestWpaNetwork(unittest.TestCase):
The bellow test cases excesise the following connection scenarios: The bellow test cases excesise the following connection scenarios:
Network config is Network config is
present at start time: Connect: Autoconnect: Result: present at start time: Connect: AutoConnect: Result:
-------------------------------------------------------------------------- --------------------------------------------------------------------------
False True Connection succeeds False True Connection succeeds
True True Connection succeeds True True Connection succeeds
''' '''
def test_wpa(self): def test_wpa(self):
tca = TestConnectAutoconnect() tca = TestConnectAutoConnect()
tca.validate('ssidHiddenWPA', False, None, True) tca.validate('ssidHiddenWPA', False, None, True)
tca.validate('ssidHiddenWPA', True, None, True) tca.validate('ssidHiddenWPA', True, None, True)

View File

@ -8,4 +8,4 @@ EAP-TTLS-Phase2-Password=testpasswd
[Hotspot] [Hotspot]
NAIRealmNames=realm1.random.net,example.com NAIRealmNames=realm1.random.net,example.com
Name=Autoconnect hotspot Name=AutoConnect hotspot

View File

@ -8,4 +8,4 @@ NAIRealmNames=realm1.random.net,example.com
Name=NAI Hotspot Name=NAI Hotspot
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -8,4 +8,4 @@ HESSID=02:00:00:00:04:00
Name=HESSID Hotspot Name=HESSID Hotspot
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -8,4 +8,4 @@ RoamingConsortium=1020304050
Name=RC Hotspot Name=RC Hotspot
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -8,4 +8,4 @@ NAIRealmNames=realm1.random.net,example.com
Name=NAI Hotspot Name=NAI Hotspot
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -8,4 +8,4 @@ NAIRealmNames=realm1.random.net,example.com
Name=Hotspot Network Name=Hotspot Network
[Settings] [Settings]
Autoconnect=False AutoConnect=False

View File

@ -6,4 +6,4 @@ EAP-TLS-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-Identity=abc@example.com EAP-Identity=abc@example.com
[Settings] [Settings]
Autoconnect=false AutoConnect=false

View File

@ -1,3 +1,3 @@
[Settings] [Settings]
Autoconnect=false AutoConnect=false
Hidden=true Hidden=true

View File

@ -1,3 +1,3 @@
[Settings] [Settings]
Autoconnect=false AutoConnect=false
Hidden=true Hidden=true

View File

@ -1,3 +1,3 @@
[Settings] [Settings]
Autoconnect=false AutoConnect=false
Hidden=true Hidden=true

View File

@ -1,3 +1,3 @@
[Settings] [Settings]
Autoconnect=false AutoConnect=false
Hidden=true Hidden=true

View File

@ -1,3 +1,3 @@
[Settings] [Settings]
Autoconnect=false AutoConnect=false
Hidden=true Hidden=true

View File

@ -1,3 +1,3 @@
[Settings] [Settings]
Autoconnect=false AutoConnect=false
Hidden=true Hidden=true

View File

@ -1,3 +1,3 @@
[Settings] [Settings]
Autoconnect=false AutoConnect=false
Hidden=true Hidden=true

View File

@ -1,3 +1,3 @@
[Settings] [Settings]
Autoconnect=false AutoConnect=false
Hidden=true Hidden=true

View File

@ -1,3 +1,3 @@
[Settings] [Settings]
Autoconnect=false AutoConnect=false
Hidden=true Hidden=true

View File

@ -1,3 +1,3 @@
[Settings] [Settings]
Autoconnect=false AutoConnect=false
Hidden=true Hidden=true