1 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 from collections import namedtuple 6 7 # Used in network_RackWiFiConnect 8 PASSWORD = 'chromeos' 9 10 SCAN_RETRY_TIMEOUT = 180 11 12 NetworkServices = namedtuple('NetworkServices', 13 ['testname', 'user', 'ssid', 'url', 'pattern']) 14 15 HIDDEN_WPA = NetworkServices('hiddenWPA', 16 'networktest01 (at] croste.tv', 17 'CrOS_WPA_LinksysWRT54GL', 18 'www.openvpn.com', 19 'certs') 20 21 PROXY_NON_AUTH = NetworkServices('proxyNonAuth', 22 'networktest01 (at] croste.tv', 23 'CrOS_WPA2_Airport_Xtreme_5GHz', 24 'www.openvpn.com', 25 'certs') 26 27 GOOGLE_GUEST = NetworkServices('googleGuest', 28 'networktest01 (at] croste.tv', 29 'GoogleGuest', 30 'www.google.com', 31 'www.google.com') 32 33 WEP = NetworkServices('WEP', 34 'networktest01 (at] croste.tv', 35 'CrOS_WEP_DLink_Dir601', 36 'www.openvpn.com', 37 'certs') 38 39 PEAP = NetworkServices('PEAP', 40 'networktest01 (at] croste.tv', 41 'CrOS_WPA2_LinksysE3000_2.4GHz', 42 'www.openvpn.com', 43 'certs') 44 45 HIDDEN_WEP = NetworkServices('hiddenWEP', 46 'networktest02 (at] croste.tv', 47 'CrOS_WEP_ddwrt_54GL', 48 'www.openvpn.com', 49 'certs') 50 51 WPA2 = NetworkServices('WPA2', 52 'networktest02 (at] croste.tv', 53 'CrOS_WPA2_LinksysE3000N_5GHz', 54 'www.openvpn.com', 55 'certs') 56 57 EAP_TTLS = NetworkServices('EAP_TTLS', 58 'networktest03 (at] croste.tv', 59 'CrOS_WPA2_LinksysE3000_2.4GHz', 60 'www.openvpn.com', 61 'certs') 62 63 NETWORK_SERVICES_TESTS = [HIDDEN_WPA, HIDDEN_WEP, PROXY_NON_AUTH, GOOGLE_GUEST, 64 WEP, PEAP, WPA2, EAP_TTLS] 65