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.future_embargo_date" 7PURPOSE = "Test rlz related vpd setting: rlz_emargo_end_date." 8TIME = "Short" 9TEST_CATEGORY = "Functional" 10TEST_CLASS = "platform" 11TEST_TYPE = "server" 12ATTRIBUTES = "suite:rlz" 13DOC = """ 14This tests that no RLZ first-use event (CAF) ping is sent if today's date is 15earlier than the rlz_embargo_end_date. 16""" 17 18import datetime 19 20from autotest_lib.client.common_lib import utils 21 22args_dict = utils.args_to_dict(args) 23 24def run(machine): 25 host = hosts.create_host(machine) 26 job.run_test( 27 'rlz_CheckPing', host=host, 28 rlz_embargo_end_date=( 29 datetime.date.today() + datetime.timedelta(days=2)), 30 **args_dict) 31 32job.parallel_simple(run, machines) 33