1# Copyright 2019 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 = 'timkovich' 6TIME = 'SHORT' 7NAME = 'policy_GlobalNetworkSettingsServer.AllowOnlyPolicyNetworksToConnect' 8TEST_TYPE = 'Server' 9ATTRIBUTES = 'suite:ent-wificell' 10DEPENDENCIES = 'wificell' 11 12DOC = """ 13This test sets up a policy and user defined network. The 14GlobalNetworkConfiguration policy 'AllowOnlyPolicyNetworksToConnect' is 15set to True. Only the policy defined network should be allowed to connect. 16 17""" 18 19def run(machine): 20 host = hosts.create_host(machine) 21 job.run_test('policy_GlobalNetworkSettingsServer', 22 raw_cmdline_args=args, 23 host=host, 24 gnc_settings={'AllowOnlyPolicyNetworksToConnect': True}) 25 26 27parallel_simple(run, machines) 28