Home | History | Annotate | Download | only in policy_CookiesAllowedForUrls
      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_CookiesAllowedForUrls"
      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 CookiesAllowedForUrls policy on client behavior.
     16 
     17 This test verifies the effect of the CookiesAllowedForUrls user policy on
     18 Chrome OS client behavior when the DefaultCookiesSetting user policy is set
     19 to 2. It exercises a range of policy values using four unique test cases:
     20 NotSet_CookiesBlocked, SingleUrl_CookiesAllowed, MultipleUrls_CookiesAllowed,
     21 and MultipleUrls_CookiesBlocked. See the test file for a full description of
     22 what each test case does.
     23 
     24 In general, a test shall pass if the browser allows cookies on a test page
     25 with a URL that matches one or more of the URL patterns listed in the
     26 CookiesAllowedForUrls policy value.
     27 
     28 A 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 
     35 Usage example:
     36 $ test_that <IPAddress> policy_CookiesAllowedForUrls --args="mode=single
     37 case=SingleUrl_CookiesAllowed env=dm-test dms_name=xot-dmst
     38 username=test (a] crosprqa4.com password=test0000"
     39 
     40 Runs a single test case (e.g., SingleUrl_CookiesAllowed) against a device
     41 with the specified IP address, using the DM Test environment with the given
     42 DM Server name, and signing in to the device with the given username and
     43 password.
     44 
     45 """
     46 
     47 job.run_test("policy_CookiesAllowedForUrls", args=args)
     48