xref: /aosp_15_r20/external/autotest/client/site_tests/autoupdate_EOL/control.approaching_eol (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, Chromium OS"
6NAME = "autoupdate_EOL.approaching_eol"
7TEST_CATEGORY = "Functional"
8TEST_CLASS = "platform"
9TEST_TYPE = "client"
10ATTRIBUTES = "suite:au-perbuild"
11PURPOSE = "Tests Approaching End of Life (EOL) / Autoupdate Expiration (AUE)"
12TIME = "SHORT"
13PY_VERSION = 3
14
15DOC = """
16This test will check that the DUT behaves correctly in an approaching end of
17life scenario.
18The EOL date is the number of days since Unix Epoch.
19Value for the EOL date should always be slightly past the current date.
20
21"""
22
23import datetime
24job.run_test('autoupdate_EOL',
25             eol_date=(datetime.datetime.utcnow()
26                       - datetime.datetime(1970,1,1)).days + 1)
27