1# Copyright 2016 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 = 'scunningham'
6NAME = 'policy_ChromeOsLockOnIdleSuspend'
7TIME = 'SHORT'
8TEST_CATEGORY = 'Functional'
9TEST_CLASS = 'enterprise'
10TEST_TYPE = 'client'
11
12DOC = '''
13Verify effects of ChromeOsLockOnIdleSuspend policy on client behavior.
14
15This test verifies the effect of the ChromeOsLockOnIdleSuspend user policy on
16Chrome OS client behavior and appearance. It exercises all valid policy values
17with three test cases: True_Lock, False_Unlock, and NotSet_Lock.
18
19The test shall pass if the 'Require password to wake from sleep' check box:
201) is checked when ChromeOsLockOnIdleSuspend policy is set true,
212) is unchecked when set false,
223) is editable when ChromeOsLockOnIdleSuspend not set,
234) is uneditable when set True or False;
24and if the device, after it goes to sleep:
251) displays the lock screen when ChromeOsLockOnIdleSuspend is set True,
262) does not display the lock screen when set False or Not set.
27The test shall fail if any of the above behaviors are not enforced.
28
29This control file allows CloudDPC E2E tests to run any test case defined in
30this test via command-line.
31
32'''
33
34args_dict = utils.args_to_dict(args)
35
36job.run_test('policy_ChromeOsLockOnIdleSuspend', **args_dict)
37