|
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 // authentication client server classes tests |
|
33 |
|
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 |
|
42 LOAD_SUITE tauthcliserv |
|
43 LOAD_SUITE tpinplugin |
|
44 LOAD_SUITE tAuthSvr_new |
|
45 |
|
46 //// |
|
47 //! @SYMTestCaseID SEC-AUT-AUTHCLISVR-0004 |
|
48 //! @SYMTestCaseDesc Remove_PinPlugin_Data |
|
49 START_TESTCASE SEC-AUT-AUTHCLISVR-0004 |
|
50 RUN_UTILS DeleteFile C:\pinplugin_inactive.txt |
|
51 RUN_TEST_STEP_RESULT 0 100 tAuthSvr_new INIT_CENREP c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defaultplugin1 |
|
52 |
|
53 RUN_UTILS DeleteFile C:\t_pinplugindlg_in.dat |
|
54 RUN_UTILS DeleteFile C:\t_pinplugindlg_out.dat |
|
55 END_TESTCASE SEC-AUT-AUTHCLISVR-0004 |
|
56 |
|
57 //// |
|
58 //! @SYMTestCaseID SEC-AUT-AUTHCLISVR-0005 |
|
59 //! @SYMTestCaseDesc Initialize_PinPlugin_Data |
|
60 START_TESTCASE SEC-AUT-AUTHCLISVR-0005 |
|
61 RUN_TEST_STEP 100 tpinplugin CreateInputFile c:\tauth\tpinplugin\scripts\tpinplugin.ini datfile |
|
62 END_TESTCASE SEC-AUT-AUTHCLISVR-0005 |
|
63 |
|
64 //// |
|
65 //! @SYMTestCaseID SEC-AUT-AUTHCLISVR-0001 |
|
66 //! @SYMTestCaseDesc Tests that on first start only the default user in present in the database. |
|
67 //! @SYMREQ REQ 4953 |
|
68 //! @SYMTestPriority Medium |
|
69 //! @SYMTestActions |
|
70 //! @SYMTestExpectedResults All tests pass. |
|
71 //! @SYMDevelopedForRelease |
|
72 |
|
73 START_TESTCASE SEC-AUT-AUTHCLISVR-0001 |
|
74 RUN_UTILS MKDIR C:\testplugin_active\ |
|
75 RUN_TEST_STEP 40 tauthcliserv FIRSTSTART |
|
76 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\ |
|
77 |
|
78 END_TESTCASE SEC-AUT-AUTHCLISVR-0001 |
|
79 |
|
80 //// |
|
81 //! @SYMTestCaseID SEC-AUT-AUTHCLISVR-0002 |
|
82 //! @SYMTestCaseDesc Tests that correct list of identities are retrieved from auth server |
|
83 //! database. |
|
84 //! Expected plugins are listed correctly. |
|
85 //! Authentication of a single and multiple user(s). |
|
86 //! @SYMREQ REQ 4948 |
|
87 //! @SYMTestPriority Medium |
|
88 //! @SYMTestActions |
|
89 //! @SYMTestExpectedResults All tests pass. |
|
90 //! @SYMDevelopedForRelease |
|
91 |
|
92 START_TESTCASE SEC-AUT-AUTHCLISVR-0002 |
|
93 RUN_UTILS MKDIR C:\testplugin_active\ |
|
94 RUN_TEST_STEP 120 tauthcliserv CLIENT |
|
95 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\ |
|
96 |
|
97 END_TESTCASE SEC-AUT-AUTHCLISVR-0002 |
|
98 |
|
99 //// |
|
100 //! @SYMTestCaseID SEC-AUT-AUTHCLISVR-0003 |
|
101 //! @SYMTestCaseDesc Tests removal of identity, registration, training and retaining of plugin. |
|
102 //! @SYMREQ REQ 4948 |
|
103 //! @SYMTestPriority Medium |
|
104 //! @SYMTestActions |
|
105 //! @SYMTestExpectedResults All tests pass. |
|
106 //! @SYMDevelopedForRelease |
|
107 |
|
108 START_TESTCASE SEC-AUT-AUTHCLISVR-0003 |
|
109 RUN_UTILS MKDIR C:\testplugin_active\ |
|
110 RUN_TEST_STEP 120 tauthcliserv MGRCLIENT |
|
111 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\ |
|
112 |
|
113 END_TESTCASE SEC-AUT-AUTHCLISVR-0003 |
|
114 |
|
115 //// |
|
116 //! @SYMTestCaseID SEC-AUT-AUTHCLISVR-0006 |
|
117 //! @SYMTestCaseDesc Remove_PinPlugin_Data |
|
118 START_TESTCASE SEC-AUT-AUTHCLISVR-0006 |
|
119 RUN_UTILS DeleteFile C:\t_pinplugindlg_in.dat |
|
120 RUN_UTILS DeleteFile C:\t_pinplugindlg_out.dat |
|
121 END_TESTCASE SEC-AUT-AUTHCLISVR-0006 |