• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2013 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 = "ChromeOS Team"
6NAME = "network_3GFailedConnect.pseudomodem"
7PURPOSE = "Verify that a failed modem connect attempt puts the service in a failed state."
8CRITERIA = """
9This test will fail if a connect failure does not immediately cause the
10service to enter the Failed state.
11"""
12ATTRIBUTES = "suite:network3g_pseudomodem"
13SUITE = "network3g_pseudomodem"
14TIME = "FAST"
15TEST_CATEGORY = "Functional"
16TEST_CLASS = "network"
17TEST_TYPE = "client"
18
19DOC = """
20  Tests that 3G connect failures are handled by cromo & flimflam properly
21
22  This test will fail if a connect failure does not immediately cause the
23  service to enter the Failed state.  It requires a machine with a modem
24  that has been factory reset and cannot start a data session.
25"""
26
27from autotest_lib.client.cros.cellular import test_environment
28
29test_module_path = os.path.join(
30        job.testdir, 'network_3GFailedConnect', 'network_3GFailedConnect.py')
31
32# 3GPP
33test_env = test_environment.CellularPseudoMMTestEnvironment(
34        pseudomm_args=({'test-module' : test_module_path,
35                        'test-modem-class' : 'GetFailConnectModem',
36                        'test-modem-arg' : ['3GPP']},))
37job.run_test('network_3GFailedConnect', tag='pseudomodem_3GPP',
38             test_env=test_env)
39
40# CDMA
41test_env = test_environment.CellularPseudoMMTestEnvironment(
42        pseudomm_args=({'test-module' : test_module_path,
43                        'test-modem-class' : 'GetFailConnectModem',
44                        'test-modem-arg' : ['CDMA']},))
45job.run_test('network_3GFailedConnect', tag='pseudomodem_CDMA',
46             test_env=test_env)
47