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