blob: 29971da4c62d32f91dd1bf0560009c48e10d8051 [file] [log] [blame]
# Copyright 2023 The ChromiumOS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
NAME = 'network_WiFi_ChaosConnectDisconnect.static_5Ghz'
METADATA = {
'contacts': ['chromeos-connectivity-engprod@google.com'],
'requirements': ['wifi-gen-0002-v01', 'wifi-proc-0009-v01', 'wifi-proc-0012-v01', 'wifi-proc-0013-v01', 'wifi-proc-0016-v01', 'wifi-proc-0020-v01'],
'bug_component': 'b:978946',
'criteria': 'This test iterates through all 5Ghz APs in Chaos chamber '
'and connects/disconnects with DUT.',
'hw_agnostic': False
}
TEST_TYPE = 'server'
ATTRIBUTES = 'suite:wifi_interop'
DEPENDENCIES = 'chaos_dut'
MAX_RESULT_SIZE_KB = 512000
from autotest_lib.server.cros.ap_configurators import ap_spec
from autotest_lib.server.cros.chaos_lib import static_runner
def run_chaos_static(machine):
host = hosts.create_host(machine)
# Test all 5Ghz static APs on channel 36, 40, 44, 48, 149, 153, 157 and 161
ap_specs = [ap_spec.APSpec(band=ap_spec.BAND_5GHZ,
channel = 36,
configurator_type=ap_spec.CONFIGURATOR_STATIC),
ap_spec.APSpec(band=ap_spec.BAND_5GHZ,
channel = 40,
configurator_type=ap_spec.CONFIGURATOR_STATIC),
ap_spec.APSpec(band=ap_spec.BAND_5GHZ,
channel = 44,
configurator_type=ap_spec.CONFIGURATOR_STATIC),
ap_spec.APSpec(band=ap_spec.BAND_5GHZ,
channel = 48,
configurator_type=ap_spec.CONFIGURATOR_STATIC),
ap_spec.APSpec(band=ap_spec.BAND_5GHZ,
channel = 149,
configurator_type=ap_spec.CONFIGURATOR_STATIC),
ap_spec.APSpec(band=ap_spec.BAND_5GHZ,
channel = 153,
configurator_type=ap_spec.CONFIGURATOR_STATIC),
ap_spec.APSpec(band=ap_spec.BAND_5GHZ,
channel = 157,
configurator_type=ap_spec.CONFIGURATOR_STATIC),
ap_spec.APSpec(band=ap_spec.BAND_5GHZ,
channel = 161,
configurator_type=ap_spec.CONFIGURATOR_STATIC)]
for spec in ap_specs:
runner = static_runner.StaticRunner(
'network_WiFi_ChaosConnectDisconnect', host, spec)
runner.run(job)
parallel_simple(run_chaos_static, machines)