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 5 AUTHOR = 'krisr, wiley' 6 NAME = 'network_WiFi_ChaosConnectDisconnect.jetstream' 7 TIME = 'LONG' 8 TEST_TYPE = 'server' 9 10 DOC = """ 11 This script iterates through all jetstream access points in the AP compatibility 12 lab and has a chrome device connect to each in series. This test must be 13 performed in the AP compatibility lab. 14 """ 15 16 from autotest_lib.server.cros.ap_configurators import ap_spec 17 from autotest_lib.server.cros.chaos_lib import chaos_runner 18 19 def run_chaos_jetstream(machine): 20 host = hosts.create_host(machine) 21 # Pick up just Jetstream APs on both 2.4 and 5 GHz bands 22 jetstream_ap = ['chromeos3-row2-rack3-host9'] 23 ap_specs = [ap_spec.APSpec(channel=5, hostnames=jetstream_ap, 24 security=ap_spec.SECURITY_TYPE_WPA2PSK), 25 ap_spec.APSpec(channel=48, hostnames=jetstream_ap, 26 security=ap_spec.SECURITY_TYPE_WPA2PSK)] 27 for spec in ap_specs: 28 runner = chaos_runner.ChaosRunner( 29 'network_WiFi_ChaosConnectDisconnect', host, spec) 30 runner.run(job, tries=10) 31 32 33 parallel_simple(run_chaos_jetstream, machines) 34 35