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 TIME = 'SHORT'
      8 TEST_CATEGORY = 'General'
      9 TEST_CLASS = 'enterprise'
     10 TEST_TYPE = 'client'
     11 
     12 DOC = '''
     13 Verify effects of CookiesAllowedForUrls policy.
     14 
     15 This test verifies the effect of the CookiesAllowedForUrls user policy on
     16 Chrome OS client behavior when the DefaultCookiesSetting user policy is set
     17 to 2. It exercises a range of policy values using four unique test cases:
     18 NotSet_CookiesBlocked, SingleUrl_CookiesAllowed, MultipleUrls_CookiesAllowed,
     19 and MultipleUrls_CookiesBlocked. See the test file for a full description of
     20 what each test case does.
     21 
     22 A test case shall pass iff the browser allows cookies on a test page with an
     23 URL that matches one or more of the URL patterns listed in
     24 CookiesAllowedForUrls. It shall fail if the browser:
     25 - Blocks cookies on a test page with an URL that matches one or more of the
     26   URL patterns listed in the CookiesAllowedForUrls policy value.
     27 - Allows cookies on a test page with an URL that does not match any of the
     28   URL patterns listed in the CookiesAllowedForUrls policy value.
     29 
     30 This control file allows CloudDPC E2E tests to run any test case defined in
     31 this test via command-line.
     32 
     33 '''
     34 
     35 args_dict = utils.args_to_dict(args)
     36 
     37 job.run_test('policy_CookiesAllowedForUrls', **args_dict)
     38