# 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" TEST_CLASS = "platform" TEST_TYPE = "client" ATTRIBUTES = "suite:au-perbuild" PURPOSE = "Tests Approaching End of Life (EOL) / Autoupdate Expiration (AUE)" TIME = "SHORT" DOC = """ This test will check that the DUT behaves correctly in an approaching end of life scenario. The EOL date is the number of days since Unix Epoch. Value for the EOL date should always be slightly past the current date. """ import datetime job.run_test('autoupdate_EOL', eol_date=(datetime.datetime.utcnow() - datetime.datetime(1970,1,1)).days + 1)