1# Copyright 2020 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 = "kyleshima, Chromium OS" 6NAME = "rlz_CheckPing.second_user_sends_ping" 7PURPOSE = "Tests that CAF RLZ ping can be sent by a second user." 8TIME = "Short" 9TEST_CATEGORY = "Functional" 10TEST_CLASS = "platform" 11TEST_TYPE = "server" 12ATTRIBUTES = "suite:rlz" 13DOC = """ 14This tests that the RLZ first-use event (CAF) ping will be sent by the second 15user, if it was not sent by the first user to log in. It also verifies that 16the ping is not resent when the first user logs in again after the ping. 17""" 18 19import datetime 20 21def run(machine): 22 host = hosts.create_host(machine) 23 rlz_embargo_end_date = (datetime.date.today() - datetime.timedelta(days=2)) 24 job.run_test('rlz_CheckPing', host=host, pre_login='no_lock', 25 rlz_embargo_end_date=rlz_embargo_end_date, 26 check_ping_not_resent=True) 27 28job.parallel_simple(run, machines) 29