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