| # Copyright 2018 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 = "dhaddock, Chromium OS" |
| NAME = "autoupdate_EOL.approaching_eol" |
| TEST_CATEGORY = "Functional" |
| ATTRIBUTES = "suite:au-perbuild" |
| PURPOSE = "Tests Approaching End of Life (EOL) / Autoupdate Expiration (AUE)" |
| This test will check that the DUT behaves correctly in an approaching end of |
| The EOL date is the number of days since Unix Epoch. |
| Value for the EOL date should always be slightly past the current date. |
| job.run_test('autoupdate_EOL', |
| eol_date=(datetime.datetime.utcnow() |
| - datetime.datetime(1970,1,1)).days + 1) |