xref: /aosp_15_r20/external/autotest/server/site_tests/rlz_CheckPing/control (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright 2018 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 = "dhaddock, kyleshima, Chromium OS"
6NAME = "rlz_CheckPing"
7PURPOSE = "Tests that CAI and CAF RLZ pings are sent on first use."
8TIME = "Short"
9TEST_CATEGORY = "Functional"
10TEST_CLASS = "platform"
11TEST_TYPE = "server"
12ATTRIBUTES = "suite:rlz"
13PY_VERSION = 3
14DOC = """
15This tests the RLZ client install (CAI) and first-use event (CAF) pings are
16sent on first use of the device. Also checks that the CAF ping is not resent
17when another user signs in and uses the device.
18"""
19
20import datetime
21
22def run(machine):
23    host = hosts.create_host(machine)
24    rlz_embargo_end_date = (datetime.date.today() - datetime.timedelta(days=2))
25    job.run_test('rlz_CheckPing', host=host,
26                 rlz_embargo_end_date=rlz_embargo_end_date,
27                 check_ping_not_resent=True)
28
29job.parallel_simple(run, machines)
30