blob: be139fd200dd121bc2347e1f687e88c1a701e611 [file] [log] [blame]
# Copyright 2020 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = "kyleshima, ChromiumOS"
NAME = "rlz_CheckPing.should_not_send_ping"
METADATA = {
"contacts": ["chromeos-sw-engprod@google.com"],
"bug_component": "b:1456157",
"criteria": "Test rlz related vpd setting: should_send_rlz_ping.",
}
TIME = "Short"
TEST_TYPE = "server"
ATTRIBUTES = "suite:rlz"
PY_VERSION = 3
DOC = """
This tests that no first-use event (CAF) ping is sent if the
should_send_rlz_ping vpd setting is 0. The install event (CAI) ping will still
be sent once the ping delay has elapsed.
"""
import datetime
def run(machine):
host = hosts.create_host(machine)
rlz_embargo_end_date = (datetime.date.today() - datetime.timedelta(days=2))
job.run_test('rlz_CheckPing', host=host,
rlz_embargo_end_date=rlz_embargo_end_date,
should_send_rlz_ping=0)
job.parallel_simple(run, machines)