1# Copyright 2021 The Chromium OS 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 5from autotest_lib.server import utils 6 7AUTHOR = 'chromeos-bluetooth' 8NAME = 'bluetooth_AdapterEPHealth' 9PURPOSE = ('Batch of Bluetooth enterprise policy health tests') 10CRITERIA = 'Pass all health test' 11ATTRIBUTES = '' 12TIME = 'MEDIUM' 13TEST_CATEGORY = 'Functional' 14TEST_CLASS = 'bluetooth' 15TEST_TYPE = 'server' 16DEPENDENCIES = 'bluetooth, working_bluetooth_btpeer:1' 17PY_VERSION = 3 18 19DOC = """ 20 Server side bluetooth tests about Enterprise Policy Health tests. 21 22 Specifically, this test suite includes the following tests 23 - ep_check_set_allowlist 24 - ep_outgoing_service_in_allowlist 25 - ep_outgoing_service_not_in_allowlist 26 - ep_outgoing_empty_allowlist 27 - ep_incoming_service_in_allowlist 28 - ep_incoming_service_not_in_allowlist 29 - ep_gatt_services_in_allowlist 30 - ep_gatt_services_not_in_allowlist 31 - ep_gatt_empty_allowlist 32 - ep_combo_set_allowlist_and_disconnect 33 - ep_combo_successive_allowlists 34 - ep_combo_hid_persists_adapter_reset 35 - ep_combo_non_hid_persists_adapter_reset 36 - ep_combo_hid_persists_bluetoothd_restart 37 - ep_combo_non_hid_persists_bluetoothd_restart 38 """ 39 40args_dict = utils.args_to_dict(args) 41 42def run(machine): 43 host = hosts.create_host(machine) 44 job.run_test('bluetooth_AdapterEPHealth', host=host, 45 num_iterations=1, args_dict=args_dict) 46 47parallel_simple(run, machines) 48