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 //Script to test the secure clock implementation in Authserver. |
|
18 |
|
19 |
|
20 RUN_PROGRAM 100 SETCAP tAuthSvr.exe 188b0 -SID 102740FC tAuthSvr_new.exe |
|
21 |
|
22 LOAD_SUITE tAuthSvr_new |
|
23 LOAD_SUITE tAuthSvr |
|
24 |
|
25 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0144 |
|
26 //! @SYMTestCaseDesc Remove_PinPlugin_Data |
|
27 START_TESTCASE SEC-AUT-AUTHSVR-0144 |
|
28 RUN_UTILS DeleteFile C:\pinplugin_inactive.txt |
|
29 RUN_TEST_STEP_RESULT 0 100 tAuthSvr_new INIT_CENREP c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defaultplugin |
|
30 RUN_UTILS DeleteFile C:\t_pinplugindlg_in.dat |
|
31 RUN_UTILS DeleteFile C:\t_pinplugindlg_out.dat |
|
32 END_TESTCASE SEC-AUT-AUTHSVR-0144 |
|
33 |
|
34 |
|
35 |
|
36 RUN_TEST_STEP_RESULT 0 100 tAuthSvr UPDATE_SYSTIME c:\tauth\tAuthSvr\scripts\tauthsvr2.ini time |
|
37 |
|
38 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0193 |
|
39 //! @SYMTestCaseDesc Test the secure clock implementation in AuthServer.A user is first authenticated successfully |
|
40 //! after which the system time is set ahead by 600 seconds. Authentication is called again using a |
|
41 //! a wrong pin and a freshness period of 300. Since a cached identity is returned ,authentication is |
|
42 //! successful. |
|
43 //! @SYMTestPriority Medium |
|
44 //! @SYMTestActions Check if a cached identity is being returned |
|
45 //! @SYMTestExpectedResults Authentication is successful |
|
46 //! @SYMDevelopedForRelease Intulo |
|
47 |
|
48 START_TESTCASE SEC-AUT-AUTHSVR-0193 |
|
49 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS |
|
50 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REG_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0197 |
|
51 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0198 |
|
52 RUN_TEST_STEP_RESULT 0 100 tAuthSvr UPDATE_SYSTIME c:\tauth\tAuthSvr\scripts\tauthsvr2.ini time1 |
|
53 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0199 |
|
54 END_TESTCASE SEC-AUT-AUTHSVR-0193 |
|
55 |
|
56 |
|
57 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0194 |
|
58 //! @SYMTestCaseDesc Test the secure clock implementation in AuthServer.A user is first authenticated successfully |
|
59 //! after which a 5 second delay is used to advance the secure clock.The system clock is |
|
60 //! now set back by 600 seconds and an authentication is called with a wrong pin and freshess 5. Since |
|
61 //! reauthentication occurs ,authentication fails |
|
62 //! @SYMTestPriority Medium |
|
63 //! @SYMTestActions Check if a cached identity is not being returned |
|
64 //! @SYMTestExpectedResults Authentication fails |
|
65 //! @SYMDevelopedForRelease Intulo |
|
66 |
|
67 START_TESTCASE SEC-AUT-AUTHSVR-0194 |
|
68 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS |
|
69 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REG_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0200 |
|
70 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0201 |
|
71 DELAY 5000 |
|
72 RUN_TEST_STEP_RESULT 0 100 tAuthSvr UPDATE_SYSTIME c:\tauth\tAuthSvr\scripts\tauthsvr2.ini time2 |
|
73 RUN_TEST_STEP !Result=Fail 100 tAuthSvr AUTHENTICATE c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0202 |
|
74 END_TESTCASE SEC-AUT-AUTHSVR-0194 |
|