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.AllowOnlyPolicyNetworksToAutoconnect'
8TEST_TYPE = 'Server'
9# Disable this test until it can be fixed: http://b/170942348
10# ATTRIBUTES = 'suite:ent-wificell'
11DEPENDENCIES = 'wificell'
12
13DOC = """
14This test sets up a policy and user defined network. The
15GlobalNetworkConfiguration policy 'AllowOnlyPolicyNetworksToAutoconnect' is
16set to True. The DUT is disconnected from the network. Only the policy defined
17network should automatically reconnect.
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={'AllowOnlyPolicyNetworksToAutoconnect': True})
27
28
29parallel_simple(run, machines)
30