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 5 AUTHOR = "ChromeOS Team" 6 NAME = "network_SIMLocking" 7 PURPOSE = "Tests various SIM Lock related operations in software only." 8 CRITERIA = """ 9 This test will fail if SIM locking/unlocking/changing operations are not 10 handled as expected by shill / modemmanager. 11 """ 12 13 ATTRIBUTES = "suite:network3g_pseudomodem" 14 SUITE = "network3g_pseudomodem" 15 TIME = "SHORT" 16 TEST_CATEGORY = "Functional" 17 TEST_CLASS = "network" 18 TEST_TYPE = "client" 19 20 DOC = """ 21 Test the SIM locking functionality of shill. 22 23 This test has the following test_cases: 24 - Attempt to enable SIM lock with incorrect sim-pin. Verify that the 25 attempt fails. 26 - Successfully pin-lock the SIM. 27 - Unlock a pin-locked SIM. 28 - Attempt to unlock a pin-locked SIM with incorrect sim-pin, until it gets 29 puk-locked. 30 - Unblock a puk-locked SIM. 31 - Attempt to unblock a puk-locked SIM with incorrect sim-puk, until the SIM 32 gets blocked. At this point, a sim-pin2 might be expected by some SIMs. This 33 test does not attempt to unlock the SIM using sim-pin2. 34 - Test the functionality to change sim-pin. 35 36 """ 37 38 job.run_test('network_SIMLocking') 39