aboutsummaryrefslogtreecommitdiff
path: root/client/common_lib/cros/network/ap_constants.py
blob: 5289fa9a59165846db9c139179374c3d24825623 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Lint as: python2, python3
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# These constants are used by the chaos_runner to raise TestError based on
# failure
AP_CONFIG_FAIL = 'AP configuration failed'
AP_PDU_DOWN = 'PDU is down'
AP_SECURITY_MISMATCH = 'AP security mismatch'
AP_SSID_NOTFOUND = 'SSID was not found'
WORK_CLI_CONNECT_FAIL = 'Work client was not able to connect to the AP'

# These constants are used by the AP configurator to indicate the type of
# configuration failure or success.
CONFIG_SUCCESS = 0
PDU_FAIL = 1
CONFIG_FAIL = 2

# These constants are used by the AP configurator to determine if this is
# a chaos vs clique test.
AP_TEST_TYPE_CHAOS = 1
AP_TEST_TYPE_CLIQUE = 2
AP_TEST_TYPE_CASEY5 = 3
AP_TEST_TYPE_CASEY7 = 4

# This constant is used by the chaos_runner to determine maximum APs/SSIDs
# that are up in the lab.
MAX_SSID_COUNT = 10
MAX_SCAN_TIMEOUT = 30

# Isolation chamber lab prefixes used to determine where the test is running
CASEY5 = 'chromeos5'
CASEY7 = 'chromeos7'