• 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.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"
13
14DOC = """
15This test will check that the DUT behaves correctly in a future end of life
16scenario.
17The EOL date is the number of days since Unix Epoch.
18Value for the EOL date should be at least 180 days in advance of EOL date.
19
20"""
21
22import datetime
23job.run_test('autoupdate_EOL',
24             eol_date=(datetime.datetime.utcnow()
25                       - datetime.datetime(1970,1,1)).days + 181)
26