• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"
13
14DOC = """
15This test will check that the DUT behaves correctly in an approaching end of
16life scenario.
17The EOL date is the number of days since Unix Epoch.
18Value for the EOL date should always be slightly past the current date.
19
20"""
21
22import datetime
23job.run_test('autoupdate_EOL',
24             eol_date=(datetime.datetime.utcnow()
25                       - datetime.datetime(1970,1,1)).days + 1)