1 // |
|
2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the License "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 |
|
17 //! @file |
|
18 // Auth Security tests |
|
19 PRINT Run Auth Security tests |
|
20 |
|
21 // Prepare a clone of TAuthSvr to possess authserver's SID. |
|
22 // This is required for modifying the authserver's central repository file. |
|
23 // This clone must be deleted at the end of the test. |
|
24 |
|
25 RUN_PROGRAM 100 SETCAP tAuthSvr.exe 188b0 -SID 102740FC tAuthSvr_new.exe |
|
26 |
|
27 LOAD_SUITE captestframework |
|
28 LOAD_SUITE tAuthSvr_new |
|
29 |
|
30 // This test must be executed in order to set the default plugin, else authserver will never start. |
|
31 |
|
32 RUN_UTILS DeleteFile C:\pinplugin_inactive.txt |
|
33 RUN_TEST_STEP_RESULT 0 100 tAuthSvr_new INIT_CENREP c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defaultplugin |
|
34 RUN_UTILS DeleteFile C:\t_pinplugindlg_in.dat |
|
35 RUN_UTILS DeleteFile C:\t_pinplugindlg_out.dat |
|
36 |
|
37 //! @SYMTestCaseID SEC-AUT-SecurityTests |
|
38 //! @SYMTestCaseDesc Runs the whole suite of security test cases for authserver. Both negative and positive tests are included. |
|
39 //! @SYMREQ REQ0000 |
|
40 //! @SYMTestPriority Medium |
|
41 //! @SYMTestActions Tests IPC calls from different capabilities |
|
42 //! @SYMTestExpectedResults KErrPermissionDenied received on calls which should fail |
|
43 //! @SYMDevelopedForRelease Diran |
|
44 |
|
45 |
|
46 START_TESTCASE AuthSecTest |
|
47 RUN_TEST_STEP 100 captestframework RunThoroughCapabilityChecks c:\tauth\securitytests\scripts\authsecuritytests.ini authsecuritytests |
|
48 END_TESTCASE AuthSecTest |
|