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.guest" 7PURPOSE = "Tests that CAI and CAF RLZ pings are sent in guest mode." 8TIME = "Short" 9TEST_CATEGORY = "Functional" 10TEST_CLASS = "platform" 11TEST_TYPE = "server" 12ATTRIBUTES = "suite:rlz" 13DOC = """ 14This tests the RLZ client install (CAI) and first-use event (CAF) pings are 15sent on first use of the device in guest mode, as long as the device has been 16properly 'locked' by doing a normal user sign-in first. 17""" 18 19import datetime 20 21from autotest_lib.client.common_lib import utils 22 23args_dict = utils.args_to_dict(args) 24 25def run(machine): 26 host = hosts.create_host(machine) 27 job.run_test( 28 'rlz_CheckPing', host=host, logged_in=False, 29 rlz_embargo_end_date=( 30 datetime.date.today() - datetime.timedelta(days=2)), 31 **args_dict) 32 33job.parallel_simple(run, machines) 34