blob: c9f3f82af246c51e00ec88f019333bdb34e82d01 [file] [log] [blame]
# Copyright 2020 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 = "kyleshima, Chromium OS"
NAME = "rlz_CheckPing.no_ping_after_reboot"
PURPOSE = "Tests that CAF RLZ ping is not sent after reboot."
TIME = "Short"
TEST_CATEGORY = "Functional"
TEST_CLASS = "platform"
TEST_TYPE = "server"
ATTRIBUTES = "suite:rlz"
DOC = """
This tests the RLZ client install (CAI) and first-use event (CAF) pings are
sent on first use of the device. It then checks that the CAF ping is not
resent when another user signs in and uses the device after a reboot.
"""
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,
check_ping_not_resent=True, reboot=True)
job.parallel_simple(run, machines)