|
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 |
|
32 PRINT Authentication Server tests... |
|
33 |
|
34 LOAD_SUITE tAuthSvr -SharedData |
|
35 //Next line makes use of the new keyword that is more readable |
|
36 //LOAD_SERVER tAuthSvr -SharedData |
|
37 |
|
38 |
|
39 //============================================================ |
|
40 // |
|
41 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0001 |
|
42 //! @SYMTestCaseDesc Start the authServer with no identities, having a default plugin defined |
|
43 //! (FirstStart1_Normal) |
|
44 //! @SYMREQ REQ , REQ , REQ , REQ |
|
45 //! @SYMTestPriority Medium |
|
46 //! @SYMTestActions Have a default plugin defined, use a client that has ReadDeviceData capability to connect to the AuthServer, |
|
47 //! call the Enumerate Identity API |
|
48 //! @SYMTestExpectedResults Default identity is the only one listed |
|
49 //! @SYMDevelopedForRelease Intulo |
|
50 START_TESTCASE SEC-AUT-AUTHSVR-0001 |
|
51 RUN_TEST_STEP_RESULT 0 100 tAuthSvr FIRST_START c:\tAuthSvr\scripts\tauthsvr.ini Test0001 |
|
52 //RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHSVR_CHECK c:\tAuthSvr\scripts\tauthsvr.ini Test0001 |
|
53 END_TESTCASE SEC-AUT-AUTHSVR-0001 |
|
54 |
|
55 |
|
56 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0002 |
|
57 //! @SYMTestCaseDesc Start the authServer with no identities, having no default plugin defined |
|
58 //! (FirstStart2_NoDefaultPlugin) |
|
59 //! @SYMREQ REQ , REQ , REQ , REQ |
|
60 //! @SYMTestPriority Medium |
|
61 //! @SYMTestActions Have no default plugin defined, use a client that has ReadDeviceData capability to connect to the AuthServer, |
|
62 //! call the Enumerate Identity API. |
|
63 //! @SYMTestExpectedResults KErrServerTerminated is received when trying to call the Identities API |
|
64 //! @SYMDevelopedForRelease Intulo |
|
65 START_TESTCASE SEC-AUT-AUTHSVR-0002 |
|
66 RUN_TEST_STEP_RESULT 0 100 tAuthSvr FIRST_START c:\tAuthSvr\scripts\tauthsvr.ini Test0002 |
|
67 //RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHSVR_CHECK c:\tAuthSvr\scripts\tauthsvr.ini Test0002 |
|
68 END_TESTCASE SEC-AUT-AUTHSVR-0002 |
|
69 |
|
70 |
|
71 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0003 |
|
72 //! @SYMTestCaseDesc Start the authServer with no identities, having a default plugin defined which is a Biometric type |
|
73 //! (FirstStart3_DefaultIsBiometricType) |
|
74 //! @SYMREQ REQ , REQ , REQ , REQ |
|
75 //! @SYMTestPriority Medium |
|
76 //! @SYMTestActions Have a default plugin defined, which is of Biometric type. use a client that has ReadDeviceData |
|
77 //! capability to connect to the AuthServer, call the Enumerate Identity API. |
|
78 //! @SYMTestExpectedResults KErrServerTerminated is received when trying to call the Identities API |
|
79 //! @SYMDevelopedForRelease Intulo |
|
80 START_TESTCASE SEC-AUT-AUTHSVR-0003 |
|
81 RUN_TEST_STEP_RESULT 0 100 tAuthSvr FIRST_START c:\tAuthSvr\scripts\tauthsvr.ini Test0003 |
|
82 //RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHSVR_CHECK c:\tAuthSvr\scripts\tauthsvr.ini Test0003 |
|
83 END_TESTCASE SEC-AUT-AUTHSVR-0003 |
|
84 |
|
85 |
|
86 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0004 |
|
87 //! @SYMTestCaseDesc Start the authServer with no identities, having a default plugin which does not support the returning of a default result |
|
88 //! (FirstStart4_NoDefaultResult) |
|
89 //! @SYMREQ REQ , REQ , REQ , REQ |
|
90 //! @SYMTestPriority Medium |
|
91 //! @SYMTestActions Have a default plugin defined, which returns a default result. |
|
92 //! Use a client that has ReadDeviceData capability to connect to the AuthServer, |
|
93 //! call the Enumerate Identity API |
|
94 //! @SYMTestExpectedResults KErrServerTerminated is received when trying to call the Identities API |
|
95 //! @SYMDevelopedForRelease Intulo |
|
96 START_TESTCASE SEC-AUT-AUTHSVR-0004 |
|
97 RUN_TEST_STEP_RESULT 0 100 tAuthSvr FIRST_START c:\tAuthSvr\scripts\tauthsvr.ini Test0004 |
|
98 //RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHSVR_CHECK c:\tAuthSvr\scripts\tauthsvr.ini Test0004 |
|
99 END_TESTCASE SEC-AUT-AUTHSVR-0004 |
|
100 |
|
101 |
|
102 //---------------------------------------------------------------------- |
|
103 |
|
104 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0005 |
|
105 //! @SYMTestCaseDesc Attempt to register a new identity |
|
106 //! (RegisterIdentity1_Normal) |
|
107 //! @SYMREQ REQ , REQ , REQ , REQ |
|
108 //! @SYMTestPriority Medium |
|
109 //! @SYMTestActions Have a default plugin defined, which supports the returning of a default result. |
|
110 //! Use a client that has ReadDeviceData capability to connect to the AuthServer, |
|
111 //! Call the RegisterNewUser API with a client that has WriteDeviceData then train the 1 existing active plugin |
|
112 //! call the Enumerate Identity API |
|
113 //! @SYMTestExpectedResults KErrServerTerminated is received when trying to call the Identities API |
|
114 //! @SYMDevelopedForRelease Intulo |
|
115 START_TESTCASE SEC-AUT-AUTHSVR-0005 |
|
116 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REG_IDENTITY c:\tAuthSvr\scripts\tauthsvr.ini Test0021 |
|
117 //RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHSVR_CHECK c:\tAuthSvr\scripts\tauthsvr.ini Test0021 |
|
118 END_TESTCASE SEC-AUT-AUTHSVR-0005 |