xref: /aosp_15_r20/external/autotest/site_utils/admin_audit/constants.py (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1#!/usr/bin/env python3
2# Copyright 2020 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6# Hardware states
7HW_STATE_NORMAL = 'NORMAL'
8HW_STATE_ACCEPTABLE = 'ACCEPTABLE'
9HW_STATE_NEED_REPLACEMENT = 'NEED_REPLACEMENT'
10HW_STATE_NOT_DETECTED = 'NOT_DETECTED'
11HW_STATE_UNKNOWN = 'UNKNOWN'
12
13# Labels for hardware parts
14DUT_STORAGE_STATE_PREFIX = 'storage_state'
15SERVO_USB_STATE_PREFIX = 'servo_usb_state'
16BATTERY_STATE_PREFIX = 'battery_state'
17
18# RPM states
19RPM_STATE_LABEL_PREFIX = 'rpm_state'
20RPM_STATE_UNKNOWN = 'UNKNOWN'
21# Config not provided
22RPM_STATE_MISSING_CONFIG = 'MISSING_CONFIG'
23# Config is incorrect or not working
24RPM_STATE_WRONG_CONFIG = 'WRONG_CONFIG'
25# Config present and working as expected
26RPM_STATE_WORKING = 'WORKING'
27RPM_STATES_SUPPORTED = (
28        RPM_STATE_UNKNOWN,
29        RPM_STATE_MISSING_CONFIG,
30        RPM_STATE_WRONG_CONFIG,
31        RPM_STATE_WORKING,
32)
33