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_CookiesSessionOnlyForUrls'
7TIME = 'SHORT'
8TEST_CATEGORY = 'Functional'
9TEST_CLASS = 'enterprise'
10TEST_TYPE = 'client'
11
12DOC = '''
13Verify effects of CookiesSessionOnlyForUrls policy.
14
15This test verifies the effect of the CookiesSessionOnlyForUrls user policy on
16Chrome OS client behavior, when DefaultCookiesSetting=2 (ie, block cookies by
17default). It exercises a set of valid policy values using three unique test
18cases: UrlIsIn_Allow, UrlNotIn_Block, and NotSet_Block. See the test file for
19a full description of what each test case does.
20
21The test case shall pass iff the browser allows cookie storage for a visited
22page whose URL matches any of the patterns in CookiesSessionOnlyForUrls,
23and blocks cookie storage if the policy does not contain a matching
24pattern. It shall fail if the browser does not enforce this behavior.
25
26This control file allows CloudDPC E2E tests to run any test case defined in
27this test via command-line.
28
29'''
30
31args_dict = utils.args_to_dict(args)
32
33job.run_test('policy_CookiesSessionOnlyForUrls', **args_dict)
34