|
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 "Symbian Foundation License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 |
|
17 START_TESTCASE SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0001 |
|
18 |
|
19 //! @SYMTestCaseID SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0001 |
|
20 |
|
21 //! @SYMTestCaseDesc 3.1 Test cases for configuration 2 |
|
22 |
|
23 //! |
|
24 |
|
25 //! 3.1.1 Opening one UnifiedCertStore in write mode |
|
26 |
|
27 //! @SYMTestActions 1) 3.1.1.1,Opening writable certificate store manager |
|
28 |
|
29 //! 2) 3.1.1.3,Retrieving number of writable certificate store manager |
|
30 |
|
31 //! 3) 3.1.1.4,Retrieving number of read-only certificate store manager |
|
32 |
|
33 //! 4) 3.1.1.5,Retrieving number of certificate store manager |
|
34 |
|
35 //! 5) 3.1.1.6,Retrieving the store informations |
|
36 |
|
37 //! 6) 3.1.1.7,Deleting the writable certificate store manager |
|
38 |
|
39 RUN_TEST_STEP -1 CTestHandler init unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0001-001 |
|
40 |
|
41 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_WritableCertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0001-002 |
|
42 |
|
43 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_ReadOnlyCertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0001-003 |
|
44 |
|
45 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_CertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0001-004 |
|
46 |
|
47 RUN_TEST_STEP -1 CTestHandler CCTTokenTypeInfo_Attributes |
|
48 |
|
49 RUN_TEST_STEP -1 CTestHandler delete |
|
50 |
|
51 END_TESTCASE SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0001 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 START_TESTCASE SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0002 |
|
58 |
|
59 //! @SYMTestCaseID SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0002 |
|
60 |
|
61 //! @SYMTestCaseDesc 3.1.2 Opening two UnifiedCertStore in read-only mode |
|
62 |
|
63 //! @SYMTestActions 1) 3.1.2.1,Opening a read-only certificate store manager |
|
64 |
|
65 //! 2) 3.1.2.3,Retrieving number of writable certificate store manager |
|
66 |
|
67 //! 3) 3.1.2.4,Retrieving number of read-only certificate store manager |
|
68 |
|
69 //! 4) 3.1.2.5,Retrieving number of certificate store manager |
|
70 |
|
71 //! 5) 3.1.2.6,Opening a second read-only certificate store manager |
|
72 |
|
73 //! 6) 3.1.2.8,Retrieving number of writable certificate store manager |
|
74 |
|
75 //! 7) 3.1.2.9,Retrieving number of read-only certificate store manager |
|
76 |
|
77 //! 8) 3.1.2.10,Retrieving number of certificate store manager |
|
78 |
|
79 //! 9) 3.1.2.11,Deleting the second read-only certificate store manager |
|
80 |
|
81 //! 10) 3.1.2.12,Deleting the first read-only certificate store manager |
|
82 |
|
83 RUN_TEST_STEP -1 CTestHandler init unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0002-001 |
|
84 |
|
85 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_WritableCertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0002-002 |
|
86 |
|
87 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_ReadOnlyCertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0002-003 |
|
88 |
|
89 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_CertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0002-004 |
|
90 |
|
91 RUN_TEST_STEP -1 CTestHandler init unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0002-005 |
|
92 |
|
93 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_WritableCertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0002-006 |
|
94 |
|
95 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_ReadOnlyCertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0002-007 |
|
96 |
|
97 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_CertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0002-008 |
|
98 |
|
99 RUN_TEST_STEP -1 CTestHandler delete |
|
100 |
|
101 RUN_TEST_STEP -1 CTestHandler delete |
|
102 |
|
103 END_TESTCASE SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0002 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 START_TESTCASE SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0003 |
|
110 |
|
111 //! @SYMTestCaseID SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0003 |
|
112 |
|
113 //! @SYMTestCaseDesc 3.1.3 Opening one store in write mode and a second one in read-only or write mode |
|
114 |
|
115 //! @SYMTestActions 1) 3.1.3.1,Opening a writable certificate store manager |
|
116 |
|
117 //! 2) 3.1.3.3,Retrieving number of writable certificate store manager |
|
118 |
|
119 //! 3) 3.1.3.4,Retrieving number of read-only certificate store manager |
|
120 |
|
121 //! 4) 3.1.3.5,Retrieving number of certificate store manager |
|
122 |
|
123 RUN_TEST_STEP -1 CTestHandler init unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0003-001 |
|
124 |
|
125 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_WritableCertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0003-002 |
|
126 |
|
127 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_ReadOnlyCertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0003-003 |
|
128 |
|
129 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_CertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0003-004 |
|
130 |
|
131 END_TESTCASE SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0003 |
|
132 |
|
133 |
|
134 |
|
135 |
|
136 |
|
137 START_TESTCASE SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0004 |
|
138 |
|
139 //! @SYMTestCaseID SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0004 |
|
140 |
|
141 //! @SYMTestCaseDesc The behaviour of the following tests (3.1.3.6 - 3.1.3.17) has changed - now |
|
142 |
|
143 //! it's possible for there to be multiple writeable file cert stores open - jc |
|
144 |
|
145 //! @SYMTestActions 1) 3.1.3.6,Opening a read-only certificate store manager |
|
146 |
|
147 //! 2) 3.1.3.8,Retrieving number of writable certificate store manager |
|
148 |
|
149 //! 3) 3.1.3.9,Retrieving number of read-only certificate store manager |
|
150 |
|
151 //! 4) 3.1.3.10,Retrieving number of certificate store manager |
|
152 |
|
153 //! 5) 3.1.3.11,Deleting the second certificate store manager |
|
154 |
|
155 //! 6) 3.1.3.12,Opening a second writable certificate store manager |
|
156 |
|
157 //! 7) 3.1.3.14,Retrieving number of writable certificate store manager |
|
158 |
|
159 //! 8) 3.1.3.15,Retrieving number of read-only certificate store manager |
|
160 |
|
161 //! 9) 3.1.3.16,Retrieving number of certificate store manager |
|
162 |
|
163 //! 10) 3.1.3.17,Deleting the second writable certificate store manager |
|
164 |
|
165 //! 11) 3.1.3.18,Deleting the first writable certificate store manager |
|
166 |
|
167 RUN_TEST_STEP -1 CTestHandler init unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0004-001 |
|
168 |
|
169 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_WritableCertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0004-002 |
|
170 |
|
171 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_ReadOnlyCertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0004-003 |
|
172 |
|
173 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_CertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0004-004 |
|
174 |
|
175 RUN_TEST_STEP -1 CTestHandler delete |
|
176 |
|
177 RUN_TEST_STEP -1 CTestHandler init unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0004-006 |
|
178 |
|
179 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_WritableCertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0004-007 |
|
180 |
|
181 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_ReadOnlyCertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0004-008 |
|
182 |
|
183 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_CertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0004-009 |
|
184 |
|
185 RUN_TEST_STEP -1 CTestHandler delete |
|
186 |
|
187 RUN_TEST_STEP -1 CTestHandler delete |
|
188 |
|
189 END_TESTCASE SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0004 |
|
190 |
|
191 |
|
192 |
|
193 |
|
194 |
|
195 START_TESTCASE SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0005 |
|
196 |
|
197 //! @SYMTestCaseID SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0005 |
|
198 |
|
199 //! @SYMTestCaseDesc 3.1.4 Opening two stores in write mode (because we can) |
|
200 |
|
201 //! @SYMTestActions 1) 3.1.4.1, Opening a writable certificate store manager |
|
202 |
|
203 //! 2) 3.1.4.2, Retrieving number of writable certificate store manager |
|
204 |
|
205 //! 3) 3.1.4.3, Retrieving number of read-only certificate store manager |
|
206 |
|
207 //! 4) 3.1.4.5, Retrieving number of certificate store manager |
|
208 |
|
209 //! 5) 3.1.4.6, Opening a second writable certificate store manager |
|
210 |
|
211 //! 6) 3.1.4.7, Retrieving number of second writable certificate store manager |
|
212 |
|
213 //! 7) 3.1.4.8, Retrieving number of readable certificate store manager |
|
214 |
|
215 //! 8) 3.1.4.9, Deleting the second certificate store manager |
|
216 |
|
217 //! 9) 3.1.4.10, Deleting the first writable certificate store manager |
|
218 |
|
219 RUN_TEST_STEP -1 CTestHandler init unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0005-001 |
|
220 |
|
221 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_WritableCertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0005-002 |
|
222 |
|
223 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_ReadOnlyCertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0005-003 |
|
224 |
|
225 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_CertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0005-004 |
|
226 |
|
227 RUN_TEST_STEP -1 CTestHandler init unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0005-005 |
|
228 |
|
229 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_WritableCertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0005-006 |
|
230 |
|
231 RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_ReadOnlyCertStoreCount unifiedcertstore1-conf1.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0005-007 |
|
232 |
|
233 RUN_TEST_STEP -1 CTestHandler delete |
|
234 |
|
235 RUN_TEST_STEP -1 CTestHandler delete |
|
236 |
|
237 END_TESTCASE SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF1-0005 |
|
238 |
|
239 |
|
240 |
|
241 |
|
242 |