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