• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.AllowOnlyPolicyNetworksToConnectIfAvailable'
8TEST_TYPE = 'Server'
9ATTRIBUTES = 'suite:ent-wificell'
10DEPENDENCIES = 'wificell'
11
12DOC = """
13This test sets up a policy and user defined network. The
14GlobalNetworkConfiguration policy 'AllowOnlyPolicyNetworksToConnectIfAvailable'
15is set to True. Only the policy defined network should be allowed to connect.
16The test then turns off the policy network and the user network should be
17allowed to connect.
18
19"""
20
21def run(machine):
22    host = hosts.create_host(machine)
23    job.run_test('policy_GlobalNetworkSettingsServer',
24                 raw_cmdline_args=args,
25                 host=host,
26                 gnc_settings={
27                    'AllowOnlyPolicyNetworksToConnectIfAvailable': True
28                 })
29
30
31parallel_simple(run, machines)
32