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 5AUTHOR = "[email protected], Chromium OS" 6NAME = "autoupdate_RejectDuplicateUpdate.full" 7TIME = "MEDIUM" 8PURPOSE = "Tests duplicate repeated update with Nebraska." 9TEST_CATEGORY = "Functional" 10TEST_CLASS = "platform" 11TEST_TYPE = "server" 12ATTRIBUTES = "suite:au-perbuild" 13PY_VERSION = 3 14DOC = """ 15This tests a repeated update by enabling the repeated updates feature. 16It sends two updates with the same fingerprint value. Client side should reject 17this as a duplicate update. 18 19We supply a job_repo_url to the test when running locally. In the lab this will 20be passed directly. The job_repo_url is a link to the autotest packages on a 21devserver. The test uses it to find the correct payload to use. 22 23Example usage: 24test_that autoupdate_RejectDuplicateUpdate.full <DUT> --board=<board> --args="job_repo_url='http://<devserver IP>:8082/static/<board>-release/RXX-XXXXX.X.X/autotest/packages', running_at_desk=True" 25""" 26 27from autotest_lib.client.common_lib import utils 28args_dict = utils.args_to_dict(args) 29 30def run(machine): 31 host = hosts.create_host(machine) 32 job.run_test('autoupdate_RejectDuplicateUpdate', host=host, **args_dict) 33 34job.parallel_simple(run, machines) 35