blob: 1eaa24f22f8a82cb2f4db52aaa05baeef9a134b9 [file] [log] [blame]
# Copyright 2018 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = "dhaddock, ChromiumOS"
NAME = "autoupdate_OmahaResponse.local"
METADATA = {
"contacts": [
"chromeos-core-services@google.com",
"chromeos-sw-engprod@google.com"
],
"bug_component": "b:908319",
"criteria": "Test different things in the omaha response from your workstation."
}
TIME = "MEDIUM"
TEST_TYPE = "server"
DOC = """
Change the various arguments to the test to test different things in the
omaha response. Example:
switch_urls: Test switching between the two UrlBase URLs when there is an
error downloading from the first URL.
bad_sha256: Tests that when the SHA256 value is invalid the update fails.
bad_metadata_size: Tests when the metadata size value is invalid the update
fails.
test_backoff: tests that we do/dont backoff when an update fails.
backoff: True if we should backoff. False otherwise.
"""
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_OmahaResponse', host=host, full_payload=True,
switch_urls=False, bad_sha256=False, bad_metadata_size=False,
test_backoff=True, backoff=True, running_at_desk=True,
**args_dict)
job.parallel_simple(run, machines)