blob: 74e1ffc49443ccaf1d0562de883b6008b056b3aa [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, kyleshima, ChromiumOS"
NAME = "rlz_CheckPing.guest"
METADATA = {
"contacts": ["chromeos-sw-engprod@google.com"],
"bug_component": "b:1456157",
"criteria": "Tests that CAI and CAF RLZ pings are sent in guest mode.",
}
TIME = "Short"
TEST_TYPE = "server"
# Disabled due to 0% pass rate over 30 days. See b/241833063
# ATTRIBUTES = "suite:rlz"
PY_VERSION = 3
DOC = """
This tests the RLZ client install (CAI) and first-use event (CAF) pings are
sent on first use of the device in guest mode, as long as the device has been
properly 'locked' by doing a normal user sign-in first.
"""
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, pre_login='lock',
rlz_embargo_end_date=rlz_embargo_end_date)
job.parallel_simple(run, machines)