Home | History | Annotate | Download | only in network_WiFi_ChaosConnectDisconnect
      1 # Copyright 2016 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, jabele'
      6 NAME = 'network_WiFi_ChaosConnectDisconnect.open_n'
      7 TIME = 'LONG'
      8 TEST_TYPE = 'server'
      9 ATTRIBUTES = 'suite:wifi_interop'
     10 SUITE = 'wifi_interop'
     11 DEPENDENCIES = 'chaos_nightly, chaos_dut'
     12 
     13 DOC = """
     14 This script iterates through all of the access points in the AP compatibility
     15 lab and has a chrome device connect to each in series. This test must be
     16 performed in the AP compatibility lab.
     17 """
     18 
     19 from autotest_lib.server.cros.ap_configurators import ap_spec
     20 from autotest_lib.server.cros.chaos_lib import chaos_runner
     21 
     22 def run_chaos_open(machine):
     23     host = hosts.create_host(machine)
     24     # Test with no security, mode N and on both 2.4 and 5 GHz bands
     25     ap_specs = [ap_spec.APSpec(mode=ap_spec.MODE_N,
     26                                security=ap_spec.SECURITY_TYPE_DISABLED,
     27                                band=ap_spec.BAND_2GHZ),
     28                 ap_spec.APSpec(mode=ap_spec.MODE_N,
     29                                security=ap_spec.SECURITY_TYPE_DISABLED,
     30                                band=ap_spec.BAND_5GHZ)]
     31     for spec in ap_specs:
     32         runner = chaos_runner.ChaosRunner(
     33                 'network_WiFi_ChaosConnectDisconnect', host, spec)
     34         runner.run(job)
     35 
     36 
     37 parallel_simple(run_chaos_open, machines)
     38