1# Copyright 2022 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 = "shafit, Chromium OS, [email protected]" 8NAME = 'bluetooth_FastPair' 9PURPOSE = ('Tests for the Fast Pair feature') 10CRITERIA = """ 11This test will run through the Fast Pair pairing scenarios and confirm the 12device is paired by using the Fast Pair protocol 13""" 14ATTRIBUTES = '' 15TIME = 'MEDIUM' 16TEST_CATEGORY = 'Functional' 17TEST_CLASS = 'bluetooth' 18TEST_TYPE = 'server' 19DEPENDENCIES = 'bluetooth, working_bluetooth_btpeer:1' 20PY_VERSION = 3 21 22DOC = """ 23This test runs through the Fast Pair scenarios. This server test is responsible 24for setting up the BT peer device and then invoking the bluetooth_FastPairUI 25client test to click through the UI and attempt to pair the device. 26 27If running locally, required args: 28 - fast_pair_antispoofing_key_pem: Base64 encoded EC Key Pem for the BT peer. 29 - fast_pair_account_key: Base64 encoded account key linked to user. 30 - fast_pair_username: Username to log in to. 31 - fast_pair_password: Password for log in. 32""" 33 34args_dict = utils.args_to_dict(args) 35 36def run(machine): 37 host = hosts.create_host(machine) 38 job.run_test('bluetooth_FastPair', host=host, num_iterations=1, 39 args_dict=args_dict) 40 41parallel_simple(run, machines) 42