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