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