aboutsummaryrefslogtreecommitdiff
path: root/server/site_tests/policy_WiFiAutoconnectServer/control.false
blob: 205a197ba52cf3e523faceaf45ded64ce0b3ed3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright (c) 2018 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

AUTHOR = 'timkovich'
TIME = 'SHORT'
NAME = 'policy_WiFiAutoconnectServer.false'
TEST_TYPE = 'Server'
ATTRIBUTES = 'suite:ent-wificell'
DEPENDENCIES = 'wificell'

DOC = """
'policy_WiFiAutoconnectServer' test configures an AP and runs the client
side 'policy_WiFiAutoconnect' test which uses the AP to test network
autoconnect policies with autoconnect set to False.

"""


from autotest_lib.server.cros.network import hostap_config


def run(machine):
    channel = 6
    n_mode = hostap_config.HostapConfig.MODE_11N_MIXED
    ap_config = hostap_config.HostapConfig(channel=channel, mode=n_mode)

    host = hosts.create_host(machine)
    job.run_test('policy_WiFiAutoconnectServer',
                 raw_cmdline_args=args,
                 autoconnect=False,
                 additional_params=ap_config,
                 host=host)


parallel_simple(run, machines)