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_URLBlacklist" 7ATTRIBUTES = "suite:regression" 8SUITE = "regression" 9TIME = "SHORT" 10TEST_CATEGORY = "General" 11TEST_CLASS = "enterprise" 12TEST_TYPE = "client" 13 14DOC = """ 15Verify effects of policy_URLBlacklist policy on client behavior & appearance. 16 17This test verifies the effect of the URLBlacklist user policy on 18Chrome OS client behavior and appearance. It exercises a range of policy values using three 19unique test cases, named: NotSet, SingleBlacklistedFile and MultipleBlacklistedFiles. See the test file for a 20full description of what each test case does. 21 22A test case shall pass if the URLs that are not part of the URLBlacklist policy value 23are not blocked. 24The test case shall also pass if the URLs that are part of the URLBlacklist policy value 25are blocked. 26A test case shall fail if the above behavior is not enforced. 27 28Usage example: 29$ test_that <IPAddress> policy_URLBlacklist --args="mode=single case=MultipleBlacklistedFiles 30env=dm-test dms_name=xot-dmst username=test@crosprqa1.com password=test1234" 31 32Runs a single test case (e.g., MultipleBlacklistedFiles) using the specified test DM Server 33environment, signing in with the specified username and password. Expectation 34is that the page will be blocked. 35 36""" 37 38job.run_test("policy_URLBlacklist", args=args) 39 40