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.future_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 a future end of life 17scenario. 18The EOL date is the number of days since Unix Epoch. 19Value for the EOL date should be at least 180 days in advance of EOL date. 20 21""" 22 23import datetime 24job.run_test('autoupdate_EOL', 25 eol_date=(datetime.datetime.utcnow() 26 - datetime.datetime(1970,1,1)).days + 181) 27