blob: 9d0e2fbff390e8068a57634dd60713d12e7c5509 [file] [log] [blame]
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = ", Chromium OS"
NAME = "autoupdate_RejectDuplicateUpdate.full"
PURPOSE = "Tests duplicate repeated update with Nebraska."
TEST_CATEGORY = "Functional"
TEST_CLASS = "platform"
TEST_TYPE = "server"
ATTRIBUTES = "suite:au-perbuild"
DOC = """
This tests a repeated update by enabling the repeated updates feature.
It sends two updates with the same fingerprint value. Client side should reject
this as a duplicate update.
We supply a job_repo_url to the test when running locally. In the lab this will
be passed directly. The job_repo_url is a link to the autotest packages on a
devserver. The test uses it to find the correct payload to use.
Example usage:
test_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"
from autotest_lib.client.common_lib import utils
args_dict = utils.args_to_dict(args)
def run(machine):
host = hosts.create_host(machine)
job.run_test('autoupdate_RejectDuplicateUpdate', host=host, **args_dict)
job.parallel_simple(run, machines)