Dinesh Kumar Sunkara | f927341 | 2022-01-14 12:49:12 -0800 | [diff] [blame] | 1 | # Copyright 2022 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 = "ChromeOS Team" |
| 6 | NAME = "cellular_Smoke.docomo" |
| 7 | PURPOSE = "Verify 3G modem can connect to the network." |
| 8 | CRITERIA = """ |
| 9 | This test will fail if one of the following conditions occur: |
| 10 | - 3G modem fails to connect to network |
| 11 | - the modem is not left in a working state |
| 12 | """ |
| 13 | ATTRIBUTES = "suite:cellular_ota_flaky" |
| 14 | TIME = "SHORT" |
| 15 | TEST_CATEGORY = "Functional" |
| 16 | TEST_CLASS = "network" |
| 17 | TEST_TYPE = "client" |
| 18 | DEPENDENCIES = "carrier:docomo" |
| 19 | PY_VERSION = 3 |
| 20 | |
| 21 | # TODO(crbug.com/932661) Fix the root cause of the flakiness and |
| 22 | # remove this hack. |
| 23 | JOB_RETRIES=3 |
| 24 | |
| 25 | DOC = """ |
| 26 | Tests that 3G modem can connect to the network |
| 27 | |
| 28 | The test attempts to connect using the 3G network. It assumes that |
| 29 | a 3G modem is plugged in and has a signal. The test then |
| 30 | disconnects from the network, and verifies that the modem still |
| 31 | responds to modem manager DBUS API calls. It repeats the |
| 32 | connect/disconnect sequence several times. |
| 33 | """ |
| 34 | |
| 35 | from autotest_lib.client.cros.cellular import test_environment |
| 36 | |
| 37 | test_env = test_environment.CellularOTATestEnvironment() |
| 38 | job.run_test('cellular_Smoke', test_env=test_env) |