1 # Copyright 2015 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 = "krishnargv" 6 NAME = "policy_CookiesBlockedForUrls" 7 ATTRIBUTES = "suite:regression" 8 SUITE = "regression" 9 TIME = "SHORT" 10 TEST_CATEGORY = "General" 11 TEST_CLASS = "enterprise" 12 TEST_TYPE = "client" 13 14 DOC = """ 15 Verify effects of CookiesBlockedForUrls policy on client behavior. 16 17 This test verifies the effect of the CookiesBlockedForUrls user policy on 18 Chrome OS client behavior when the DefaultCookiesSetting user policy is set 19 to 1. It exercises a range of policy values using four unique test cases, 20 named: NotSet_CookiesAllowed, SingleUrl_CookiesBlocked, 21 MultipleUrls_CookiesBlocked, MultipleUrls_CookiesAllowed. 22 23 See the test file for a full description of what each test case does. 24 25 In general, a test shall pass if the browser blocks cookies on a test page 26 with a URL that matches one or more of the URL patterns listed in the 27 CookiesBlockedForUrls. 28 29 A test shall fail if the browser: 30 -Stores cookies for Urls that match the url patterns listed in the 31 CookiesBlockedForUrls policy value. 32 -Does not store cookies for Urls that do not match the url patterns listed 33 in the CookiesBlockedForUrls policy value. 34 35 36 Usage example: 37 $ test_that <IPAddress> policy_CookiesBlockedForUrls --args="mode=single 38 case=SingleUrl_CookiesBlocked env=dm-test dms_name=xot-dmst 39 username=test (a] crosprqa4.com password=test0000" 40 41 Runs a single test case (e.g., SingleUrl_CookiesBlocked) against a device 42 with the specified IP address, using the DM Test environment with the given 43 DM Server name, and signing in to the device with the given username and 44 password. 45 46 """ 47 48 job.run_test("policy_CookiesBlockedForUrls", args=args) 49