os/security/cryptoservices/certificateandkeymgmt/tcertstore/scripts/t_certstore.script
Update contrib.
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".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
17 START_TESTCASE SEC-CERTMAN-T_CERTSTORE-0001
19 //! @SYMTestCaseID SEC-CERTMAN-T_CERTSTORE-0001
23 //! @SYMTestActions 1) 1.1.1. Opening a certificate store manager
25 //! 2) 1.1.2. Deleting the certificate store manager
27 //! 3) 1.2.1. Opening a certificate store manager
29 //! 4) 1.2.2. Trying to open another certificate store manager
31 //! 5) 1.2.3. Deleting the certificate store manager
33 //! 6) 1.2.4. Open a certificate store manager
35 //! 7) 1.2.5. Deleting the certificate store manager
37 //! 8) 2.1.1. Initializing the manager
39 //! 9) 2.1.2. Adding a client
41 //! 10) 2.1.3. Retrieving the clients
43 //! 11) 2.1.4. Deleting the client
45 //! 12) 2.1.5. Deleting the manager
47 //! 13) 2.2.1. Initializing the manager
49 //! 14) 2.2.2. Adding a client
51 //! 15) 2.2.3. Deleting the manager
53 //! 16) 2.2.4. Initializing the manager
55 //! 17) 2.2.5. Retrieving the clients
57 //! 18) 2.2.6. Deleting the client
59 //! 19) 2.2.7. Deleting the manager
61 //! 20) 2.3.1. Initializing the manager
63 //! 21) 2.3.2. Adding a client
65 //! 22) 2.3.3. Adding a client
67 //! 23) 2.3.4. Retrieving the clients
69 //! 24) 2.3.5. Deleting one of the client
71 //! 25) 2.3.6. Retrieving the clients
73 //! 26) 2.3.7. Deleting one of the client
75 //! 27) 2.3.8. Retrieving the clients
77 //! 28) 2.3.9. Deleting the manager
79 //! 29) 2.4.1. Initializing the manager
81 //! 30) 2.4.2. Deleting a client that doesn't exist
83 //! 31) 2.4.3. Deleting the manager
85 //! 32) 3.1.1. Initialize the manager
87 //! 33) 3.1.2. Add the certificate
89 //! 34) 3.1.3. Get the list of certificates
91 //! 35) 3.1.4. Deleting the certificate
93 //! 36) 3.1.5. Deleting the manager
95 //! 37) 4.1.1. Initializing the manager
97 //! 38) 4.1.2. Add a certificate
99 //! 39) 4.1.3. Setting the trusters
101 //! 40) 4.1.4. Getting the trusters
103 //! 41) 4.1.5. Deeleting the certificate
105 //! 42) 4.1.6. Deleting the manager
121 //! 50) 4.2.8. Deleting the manager
123 //! 51) 5.1.1. Initialize the manager
125 //! 52) 5.1.2. Add the certificate
127 //! 53) 5.1.3. Get the list of certificates
129 //! 54) 5.1.4. Get the list of certificates
131 //! 55) 5.1.5. Deleting the certificate
133 //! 56) 5.1.6. Deleting the manager
135 //! 57) 5.2.1. Initialize the manager
137 //! 58) 5.2.2. Add the certificate
141 //! 60) 5.2.4. Get the list of certificates
143 //! 61) 5.2.5. Get the list of certificates
145 //! 62) 5.2.6. Deleting the certificate
147 //! 63) 5.2.7. Deleting the manager
149 //! 64) x.1.1. Initialize the manager
159 //! 69) x.2.6. Deleting the manager
161 RUN_TEST_STEP -1 CTestHandler init
163 RUN_TEST_STEP -1 CTestHandler delete
165 RUN_TEST_STEP -1 CTestHandler init
167 RUN_TEST_STEP !Error=-14 -1 CTestHandler init
169 RUN_TEST_STEP -1 CTestHandler delete
171 RUN_TEST_STEP -1 CTestHandler init
173 RUN_TEST_STEP -1 CTestHandler delete
175 RUN_TEST_STEP -1 CTestHandler init
177 RUN_TEST_STEP -1 CTestHandler addclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-009
179 RUN_TEST_STEP -1 CTestHandler getclients t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-010
181 RUN_TEST_STEP -1 CTestHandler removeclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-011
183 RUN_TEST_STEP -1 CTestHandler delete
185 RUN_TEST_STEP -1 CTestHandler init
187 RUN_TEST_STEP -1 CTestHandler addclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-014
189 RUN_TEST_STEP -1 CTestHandler delete
191 RUN_TEST_STEP -1 CTestHandler init
193 RUN_TEST_STEP -1 CTestHandler getclients t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-017
195 RUN_TEST_STEP -1 CTestHandler removeclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-018
197 RUN_TEST_STEP -1 CTestHandler delete
199 RUN_TEST_STEP -1 CTestHandler init
201 RUN_TEST_STEP -1 CTestHandler addclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-021
203 RUN_TEST_STEP -1 CTestHandler addclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-022
205 RUN_TEST_STEP -1 CTestHandler getclients t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-023
207 RUN_TEST_STEP -1 CTestHandler removeclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-024
209 RUN_TEST_STEP -1 CTestHandler getclients t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-025
211 RUN_TEST_STEP -1 CTestHandler removeclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-026
213 RUN_TEST_STEP -1 CTestHandler getclients t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-027
215 RUN_TEST_STEP -1 CTestHandler delete
217 RUN_TEST_STEP -1 CTestHandler init
219 RUN_TEST_STEP !Error=-1 -1 CTestHandler removeclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-030
221 RUN_TEST_STEP -1 CTestHandler delete
223 RUN_TEST_STEP -1 CTestHandler init
225 RUN_TEST_STEP -1 CTestHandler addcert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-033
227 RUN_TEST_STEP -1 CTestHandler loadcacert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-034
229 RUN_TEST_STEP -1 CTestHandler deletecert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-035
231 RUN_TEST_STEP -1 CTestHandler delete
233 RUN_TEST_STEP -1 CTestHandler init
235 RUN_TEST_STEP -1 CTestHandler addcert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-038
237 RUN_TEST_STEP -1 CTestHandler settrusters t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-039
239 RUN_TEST_STEP -1 CTestHandler gettrusters t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-040
241 RUN_TEST_STEP -1 CTestHandler deletecert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-041
243 RUN_TEST_STEP -1 CTestHandler delete
245 RUN_TEST_STEP -1 CTestHandler init
247 RUN_TEST_STEP -1 CTestHandler addcert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-044
249 RUN_TEST_STEP -1 CTestHandler settrusters t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-045
251 RUN_TEST_STEP -1 CTestHandler delete
253 RUN_TEST_STEP -1 CTestHandler init
255 RUN_TEST_STEP -1 CTestHandler gettrusters t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-048
257 RUN_TEST_STEP -1 CTestHandler deletecert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-049
259 RUN_TEST_STEP -1 CTestHandler delete
261 RUN_TEST_STEP -1 CTestHandler init
263 RUN_TEST_STEP -1 CTestHandler addcert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-052
265 RUN_TEST_STEP -1 CTestHandler loadcacert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-053
267 RUN_TEST_STEP -1 CTestHandler loadcacert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-054
269 RUN_TEST_STEP -1 CTestHandler deletecert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-055
271 RUN_TEST_STEP -1 CTestHandler delete
273 RUN_TEST_STEP -1 CTestHandler init
275 RUN_TEST_STEP -1 CTestHandler addcert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-058
277 RUN_TEST_STEP -1 CTestHandler settrusters t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-059
279 RUN_TEST_STEP -1 CTestHandler loadcacert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-060
281 RUN_TEST_STEP -1 CTestHandler loadcacert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-061
283 RUN_TEST_STEP -1 CTestHandler deletecert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-062
285 RUN_TEST_STEP -1 CTestHandler delete
287 RUN_TEST_STEP -1 CTestHandler init
289 RUN_TEST_STEP -1 CTestHandler addcert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-065
291 RUN_TEST_STEP -1 CTestHandler loadusercert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-066
293 RUN_TEST_STEP -1 CTestHandler deleteusercert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-067
295 RUN_TEST_STEP -1 CTestHandler loadusercert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-068
297 RUN_TEST_STEP -1 CTestHandler delete
299 END_TESTCASE SEC-CERTMAN-T_CERTSTORE-0001