|
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 //! @file |
|
17 // filetokens tools unit (integration) tests |
|
18 PRINT Run all certtool and keytool tests |
|
19 LOAD_SUITE ttesttools |
|
20 |
|
21 //! @SYMTestCaseID FILETOKENS-EC097-0001 |
|
22 //! @SYMTestCaseDesc Certool help command |
|
23 //! @SYMTestPriority Medium |
|
24 //! @SYMTestActions call Certool for the help command |
|
25 //! @SYMTestExpectedResults Certtool help command should display the help command as expected |
|
26 //! @SYMDevelopedForRelease Sphinx |
|
27 |
|
28 START_TESTCASE certhelp |
|
29 RUN_PROGRAM certtool.exe c:\ttesttools\data\certhelp.txt c:\output.txt |
|
30 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp |
|
31 END_TESTCASE certhelp |
|
32 |
|
33 //! @SYMTestCaseID FILETOKENS-EC097-0002 |
|
34 //! @SYMTestCaseDesc Certool Individual help command |
|
35 //! @SYMTestPriority Medium |
|
36 //! @SYMTestActions call Certool for the Individual help command |
|
37 //! @SYMTestExpectedResults Certtool Individual help command should display the help command as expected |
|
38 //! @SYMDevelopedForRelease Sphinx |
|
39 |
|
40 START_TESTCASE certhelp_individual |
|
41 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpls.txt c:\output.txt |
|
42 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp_individual |
|
43 END_TESTCASE certhelp_individual |
|
44 |
|
45 //! @SYMTestCaseID FILETOKENS-EC097-0003 |
|
46 //! @SYMTestCaseDesc Certool liststore command |
|
47 //! @SYMTestPriority Medium |
|
48 //! @SYMTestActions call Certool for the liststore command then parse the output file and constuct the expected stores |
|
49 //! @SYMTestExpectedResults Call certstore via CUnifiedCertstore and compare with the expected stores |
|
50 //! @SYMDevelopedForRelease Sphinx |
|
51 |
|
52 START_TESTCASE certtool_liststores |
|
53 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_ls.txt c:\output.txt |
|
54 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_liststores |
|
55 END_TESTCASE certtool_liststores |
|
56 |
|
57 //! @SYMTestCaseID FILETOKENS-EC097-0004 |
|
58 //! @SYMTestCaseDesc Certool import command |
|
59 //! @SYMTestPriority Medium |
|
60 //! @SYMTestActions call Certool to import the certificate. |
|
61 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed |
|
62 //! @SYMDevelopedForRelease Sphinx |
|
63 |
|
64 START_TESTCASE certtool_import_store0 |
|
65 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import1.txt c:\output.txt |
|
66 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store0 |
|
67 END_TESTCASE certtool_import_store0 |
|
68 |
|
69 |
|
70 //! @SYMTestCaseID FILETOKENS-EC097-0005 |
|
71 //! @SYMTestCaseDesc Certool import command |
|
72 //! @SYMTestPriority Medium |
|
73 //! @SYMTestActions call Certool to import the certificate to store 1 |
|
74 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed |
|
75 //! @SYMDevelopedForRelease Sphinx |
|
76 |
|
77 START_TESTCASE certtool_import_store1 |
|
78 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import2.txt c:\output.txt |
|
79 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store1 |
|
80 END_TESTCASE certtool_import_store1 |
|
81 |
|
82 |
|
83 //! @SYMTestCaseID FILETOKENS-EC097-0006 |
|
84 //! @SYMTestCaseDesc Certool import command |
|
85 //! @SYMTestPriority Medium |
|
86 //! @SYMTestActions call Certool to import the same certificate with same name in two different stores |
|
87 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed |
|
88 //! @SYMDevelopedForRelease Sphinx |
|
89 |
|
90 START_TESTCASE certtool_import_store01twice |
|
91 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import3.txt c:\output.txt |
|
92 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store01twice |
|
93 END_TESTCASE certtool_import_store01twice |
|
94 |
|
95 |
|
96 //! @SYMTestCaseID FILETOKENS-EC097-0007 |
|
97 //! @SYMTestCaseDesc Certool import command |
|
98 //! @SYMTestPriority Medium |
|
99 //! @SYMTestActions call Certool to import the certificate as well as the key |
|
100 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed |
|
101 //! Call keystore list via CUnifiedKeystore and confirms the key is listed |
|
102 //! @SYMDevelopedForRelease Sphinx |
|
103 |
|
104 START_TESTCASE certtool_import_keycert |
|
105 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import4.txt c:\output.txt |
|
106 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert |
|
107 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert |
|
108 END_TESTCASE certtool_import_keycert |
|
109 |
|
110 |
|
111 //! @SYMTestCaseID FILETOKENS-EC097-0008 |
|
112 //! @SYMTestCaseDesc Certool setapps command |
|
113 //! @SYMTestPriority Medium |
|
114 //! @SYMTestActions call Certool to set the application trust status for the certificate |
|
115 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status |
|
116 //! @SYMDevelopedForRelease Sphinx |
|
117 |
|
118 START_TESTCASE certtool_setapps |
|
119 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps.txt c:\output.txt |
|
120 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps |
|
121 END_TESTCASE certtool_setapps |
|
122 |
|
123 //! @SYMTestCaseID FILETOKENS-EC097-0009 |
|
124 //! @SYMTestCaseDesc Certool addapps command |
|
125 //! @SYMTestPriority Medium |
|
126 //! @SYMTestActions call Certool to add the application trust status for the certificate |
|
127 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status |
|
128 //! @SYMDevelopedForRelease Sphinx |
|
129 |
|
130 START_TESTCASE certtool_addapps |
|
131 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_addapps.txt c:\output.txt |
|
132 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps |
|
133 END_TESTCASE certtool_addapps |
|
134 |
|
135 |
|
136 |
|
137 //! @SYMTestCaseID FILETOKENS-EC097-0010 |
|
138 //! @SYMTestCaseDesc Certool removeapps command |
|
139 //! @SYMTestPriority Medium |
|
140 //! @SYMTestActions call Certool to remove the application trust status for the certificate |
|
141 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status |
|
142 //! @SYMDevelopedForRelease Sphinx |
|
143 |
|
144 START_TESTCASE certtool_removeapps |
|
145 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeapps.txt c:\output.txt |
|
146 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps |
|
147 END_TESTCASE certtool_removeapps |
|
148 |
|
149 |
|
150 |
|
151 //! @SYMTestCaseID FILETOKENS-EC097-0011 |
|
152 //! @SYMTestCaseDesc Certool list command |
|
153 //! @SYMTestPriority Medium |
|
154 //! @SYMTestActions call Certool to list the certificate then parse the output file and construct the expected cert list |
|
155 //! @SYMTestExpectedResults Query certstore list via CUnifiedCertstore and confirms with the expected certlist |
|
156 //! @SYMDevelopedForRelease Sphinx |
|
157 |
|
158 START_TESTCASE certtool_list |
|
159 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list1.txt c:\output.txt |
|
160 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list |
|
161 END_TESTCASE certtool_list |
|
162 |
|
163 //! @SYMTestCaseID FILETOKENS-EC097-0012 |
|
164 //! @SYMTestCaseDesc Certool list the certficate in store 1 |
|
165 //! @SYMTestPriority Medium |
|
166 //! @SYMTestActions call Certool to list the certificate in store 1 then parse the output file and construct the expected cert list |
|
167 //! @SYMTestExpectedResults Query certstore list via CUnifiedCertstore and confirms with the expected certlist |
|
168 //! @SYMDevelopedForRelease Sphinx |
|
169 |
|
170 START_TESTCASE certtool_list_store |
|
171 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list2.txt c:\output.txt |
|
172 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_store |
|
173 END_TESTCASE certtool_list_store |
|
174 |
|
175 //! @SYMTestCaseID FILETOKENS-EC097-0013 |
|
176 //! @SYMTestCaseDesc Certool list a particular certificate |
|
177 //! @SYMTestPriority Medium |
|
178 //! @SYMTestActions call Certool to list the certificate |
|
179 //! @SYMTestExpectedResults Query certstore list via CUnifiedCertstore and confirms with the expected certificate |
|
180 //! @SYMDevelopedForRelease Sphinx |
|
181 |
|
182 START_TESTCASE certtool_list_cert |
|
183 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list3.txt c:\output.txt |
|
184 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_cert |
|
185 END_TESTCASE certtool_list_cert |
|
186 |
|
187 |
|
188 //! @SYMTestCaseID FILETOKENS-EC097-0014 |
|
189 //! @SYMTestCaseDesc Certool list a particular owner type |
|
190 //! @SYMTestPriority Medium |
|
191 //! @SYMTestActions call Certool to list the certificate for a particular owner |
|
192 //! @SYMTestExpectedResults Query certstore list via CUnifiedCertstore and confirms with the expected certlist |
|
193 //! @SYMDevelopedForRelease Sphinx |
|
194 |
|
195 START_TESTCASE certtool_list_certowner |
|
196 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list4.txt c:\output.txt |
|
197 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_certowner |
|
198 END_TESTCASE certtool_list_certowner |
|
199 |
|
200 |
|
201 //! @SYMTestCaseID FILETOKENS-EC097-0015 |
|
202 //! @SYMTestCaseDesc Certool remove command |
|
203 //! @SYMTestPriority Medium |
|
204 //! @SYMTestActions call Certool to remove the certificate |
|
205 //! @SYMTestExpectedResults Query certstore list via CUnifiedCertstore and confirm that the certificate won't be listed |
|
206 //! @SYMDevelopedForRelease Sphinx |
|
207 |
|
208 START_TESTCASE certtool_remove |
|
209 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove1.txt c:\output.txt |
|
210 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove1 |
|
211 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove2 |
|
212 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove3 |
|
213 END_TESTCASE certtool_remove |
|
214 |
|
215 |
|
216 //! @SYMTestCaseID FILETOKENS-EC097-0016 |
|
217 //! @SYMTestCaseDesc Certool remove key and cert |
|
218 //! @SYMTestPriority Medium |
|
219 //! @SYMTestActions call Certool to remove the certificate as well as key |
|
220 //! @SYMTestExpectedResults Query certstore and keystore and confirms both cert and key are deleted. |
|
221 //! @SYMDevelopedForRelease Sphinx |
|
222 |
|
223 START_TESTCASE certtool_removekey |
|
224 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove2.txt c:\output.txt |
|
225 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removekey |
|
226 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removekey |
|
227 END_TESTCASE certtool_removekey |
|
228 |
|
229 |
|
230 //! @SYMTestCaseID FILETOKENS-EC097-0017 |
|
231 //! @SYMTestCaseDesc keytool help command |
|
232 //! @SYMTestPriority Medium |
|
233 //! @SYMTestActions call keytool to display the help command |
|
234 //! @SYMTestExpectedResults help command should display the help command as expected |
|
235 //! @SYMDevelopedForRelease Sphinx |
|
236 |
|
237 START_TESTCASE keytool_help |
|
238 RUN_PROGRAM keytool.exe c:\ttesttools\data\keyhelp.txt c:\output.txt |
|
239 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help |
|
240 END_TESTCASE keytool_help |
|
241 |
|
242 //! @SYMTestCaseID FILETOKENS-EC097-0018 |
|
243 //! @SYMTestCaseDesc keytool Individual help command |
|
244 //! @SYMTestPriority Medium |
|
245 //! @SYMTestActions call keytool to display the Individual help command |
|
246 //! @SYMTestExpectedResults help command should display the help command as expected |
|
247 //! @SYMDevelopedForRelease Sphinx |
|
248 |
|
249 START_TESTCASE keytool_help_individual |
|
250 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserhelp.txt c:\output.txt |
|
251 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help_individual |
|
252 END_TESTCASE keytool_help_individual |
|
253 |
|
254 |
|
255 //! @SYMTestCaseID FILETOKENS-EC097-0019 |
|
256 //! @SYMTestCaseDesc keytool liststore command |
|
257 //! @SYMTestPriority Medium |
|
258 //! @SYMTestActions call keytool for the liststore command then parse the output file and constuct the expected stores |
|
259 //! @SYMTestExpectedResults Call keystore via CUnifiedKeystore and compare with the expected stores |
|
260 //! @SYMDevelopedForRelease Sphinx |
|
261 |
|
262 START_TESTCASE keytool_liststores |
|
263 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_ls.txt c:\output.txt |
|
264 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_liststores |
|
265 END_TESTCASE keytool_liststores |
|
266 |
|
267 //! @SYMTestCaseID FILETOKENS-EC097-0020 |
|
268 //! @SYMTestCaseDesc keytool import command |
|
269 //! @SYMTestPriority Medium |
|
270 //! @SYMTestActions call keytool to import the certtificate. |
|
271 //! @SYMTestExpectedResults Call keystore list via CUnifiedkeystore and confirms the key is listed |
|
272 //! @SYMDevelopedForRelease Sphinx |
|
273 |
|
274 START_TESTCASE keytool_import_key |
|
275 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import1.txt c:\output.txt |
|
276 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key |
|
277 END_TESTCASE keytool_import_key |
|
278 |
|
279 //! Test case 21 and 22 should be uncommented after fix the defect DEF113031 |
|
280 //! @SYMTestCaseID FILETOKENS-EC097-0021 |
|
281 //! @SYMTestCaseDesc keytool import command |
|
282 //! @SYMTestPriority Medium |
|
283 //! @SYMTestActions call keytool to import the key to store 1 |
|
284 //! @SYMTestExpectedResults Call keystore list via CUnifiedKeystore and confirms the key is listed |
|
285 //! @SYMDevelopedForRelease Sphinx |
|
286 |
|
287 // START_TESTCASE keytool_import_key_store1 |
|
288 // RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import2.txt c:\output.txt |
|
289 // RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key_store1 |
|
290 // END_TESTCASE keytool_import_key_store1 |
|
291 |
|
292 |
|
293 //! @SYMTestCaseID FILETOKENS-EC097-0022 |
|
294 //! @SYMTestCaseDesc keytool import command |
|
295 //! @SYMTestPriority Medium |
|
296 //! @SYMTestActions call keytool to import the same key with same name in two different stores |
|
297 //! @SYMTestExpectedResults Call keystore list via CUnifiedKeystore and confirms the key is listed |
|
298 //! @SYMDevelopedForRelease Sphinx |
|
299 |
|
300 // START_TESTCASE keytool_import_key_store01twice |
|
301 // RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import3.txt c:\output.txt |
|
302 // RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key_store01twice |
|
303 // END_TESTCASE keytool_import_key_store01twice |
|
304 |
|
305 |
|
306 //! @SYMTestCaseID FILETOKENS-EC097-0023 |
|
307 //! @SYMTestCaseDesc keytool list command |
|
308 //! @SYMTestPriority Medium |
|
309 //! @SYMTestActions call keytool to list the keys then parse the output file and construct the expected key list |
|
310 //! @SYMTestExpectedResults Query keystore list via CUnifiedKeystore and confirms with the expected keylist |
|
311 //! @SYMDevelopedForRelease Sphinx |
|
312 |
|
313 START_TESTCASE keytool_list |
|
314 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list1.txt c:\output.txt |
|
315 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list |
|
316 END_TESTCASE keytool_list |
|
317 |
|
318 |
|
319 //! @SYMTestCaseID FILETOKENS-EC097-0024 |
|
320 //! @SYMTestCaseDesc keytool list the keys in store 0 |
|
321 //! @SYMTestPriority Medium |
|
322 //! @SYMTestActions call keytool to list the keys in store 0 then parse the output file and construct the expected key list |
|
323 //! @SYMTestExpectedResults Query keystore list via CUnifiedKeystore and confirms with the expected key list. |
|
324 //! @SYMDevelopedForRelease Sphinx |
|
325 |
|
326 START_TESTCASE keytool_list_store |
|
327 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list2.txt c:\output.txt |
|
328 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_store |
|
329 END_TESTCASE keytool_list_store |
|
330 |
|
331 |
|
332 //! @SYMTestCaseID FILETOKENS-EC097-0025 |
|
333 //! @SYMTestCaseDesc keytool list a particular key |
|
334 //! @SYMTestPriority Medium |
|
335 //! @SYMTestActions call keytool to list the key |
|
336 //! @SYMTestExpectedResults Query keystore list via CUnifiedKeystore and confirms with the expected key |
|
337 //! @SYMDevelopedForRelease Sphinx |
|
338 |
|
339 START_TESTCASE keytool_list_key |
|
340 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list3.txt c:\output.txt |
|
341 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_key |
|
342 END_TESTCASE keytool_list_key |
|
343 |
|
344 |
|
345 //! @SYMTestCaseID FILETOKENS-EC097-0026 |
|
346 //! @SYMTestCaseDesc keytool remove a particular key |
|
347 //! @SYMTestPriority Medium |
|
348 //! @SYMTestActions call keytool to remove the key |
|
349 //! @SYMTestExpectedResults Query keystore list via CUnifiedKeystore and confirms with the expected key won't be listed |
|
350 //! @SYMDevelopedForRelease Sphinx |
|
351 |
|
352 START_TESTCASE keytool_remove |
|
353 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_remove.txt c:\output.txt |
|
354 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_remove |
|
355 END_TESTCASE keytool_remove |
|
356 |
|
357 |
|
358 //! @SYMTestCaseID FILETOKENS-EC097-0027 |
|
359 //! @SYMTestCaseDesc keytool setuser command |
|
360 //! @SYMTestPriority Medium |
|
361 //! @SYMTestActions call keytool to setuser for the key |
|
362 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user. |
|
363 //! @SYMDevelopedForRelease Sphinx |
|
364 |
|
365 START_TESTCASE keytool_setuser |
|
366 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuser.txt c:\output.txt |
|
367 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser |
|
368 END_TESTCASE keytool_setuser |
|
369 |
|
370 |
|
371 //! @SYMTestCaseID FILETOKENS-EC097-0028 |
|
372 //! @SYMTestCaseDesc keytool setalluser command |
|
373 //! @SYMTestPriority Medium |
|
374 //! @SYMTestActions call keytool to setalluser for the key |
|
375 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user. |
|
376 //! @SYMDevelopedForRelease Sphinx |
|
377 |
|
378 START_TESTCASE keytool_setallusers |
|
379 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluser.txt c:\output.txt |
|
380 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers |
|
381 END_TESTCASE keytool_setallusers |
|
382 |
|
383 |
|
384 //! @SYMTestCaseID FILETOKENS-EC097-0029 |
|
385 //! @SYMTestCaseDesc keytool setmanager command |
|
386 //! @SYMTestPriority Medium |
|
387 //! @SYMTestActions call keytool to setmanager for the key |
|
388 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key manager. |
|
389 //! @SYMDevelopedForRelease Sphinx |
|
390 |
|
391 START_TESTCASE keytool_setmanager |
|
392 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanager.txt c:\output.txt |
|
393 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager |
|
394 END_TESTCASE keytool_setmanager |
|
395 |
|
396 |
|
397 //! @SYMTestCaseID FILETOKENS-EC097-0030 |
|
398 //! @SYMTestCaseDesc keytool removeuser command |
|
399 //! @SYMTestPriority Medium |
|
400 //! @SYMTestActions call keytool to remove the user for the key |
|
401 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user. |
|
402 //! @SYMDevelopedForRelease Sphinx |
|
403 |
|
404 START_TESTCASE keytool_removeuser |
|
405 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuser.txt c:\output.txt |
|
406 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser |
|
407 END_TESTCASE keytool_removeuser |
|
408 |
|
409 |
|
410 //! @SYMTestCaseID FILETOKENS-EC097-0031 |
|
411 //! @SYMTestCaseDesc certtool imported key managed by keytool |
|
412 //! @SYMTestPriority Medium |
|
413 //! @SYMTestActions call certtool to import a key then call keytool to setuser,removeuser , remove the key |
|
414 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key Details. |
|
415 //! @SYMDevelopedForRelease Sphinx |
|
416 |
|
417 START_TESTCASE certtoolkey_keytoolmanage |
|
418 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import4.txt c:\output.txt |
|
419 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert |
|
420 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert |
|
421 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import4.txt c:\output.txt |
|
422 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtoolkey_keytoolmanage |
|
423 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtoolkey_keytoolmanage1 |
|
424 END_TESTCASE certtoolkey_keytoolmanage |
|
425 |
|
426 |
|
427 //! @SYMTestCaseID FILETOKENS-EC097-0032 |
|
428 //! @SYMTestCaseDesc Certool help command |
|
429 //! @SYMTestPriority Medium |
|
430 //! @SYMTestActions call Certool for the help command without any argument |
|
431 //! @SYMTestExpectedResults Certtool help command should display the help command as expected |
|
432 //! @SYMDevelopedForRelease Sphinx |
|
433 |
|
434 START_TESTCASE certtool_helpfail |
|
435 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpfail1.txt c:\output.txt |
|
436 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp |
|
437 END_TESTCASE certtool_helpfail |
|
438 |
|
439 |
|
440 //! @SYMTestCaseID FILETOKENS-EC097-0033 |
|
441 //! @SYMTestCaseDesc Certool Individual help command |
|
442 //! @SYMTestPriority Medium |
|
443 //! @SYMTestActions call Certool for the individual help command with wrong command |
|
444 //! @SYMTestExpectedResults Certtool help command should display the help command as expected |
|
445 //! @SYMDevelopedForRelease Sphinx |
|
446 |
|
447 START_TESTCASE certtool_individual_helpfail |
|
448 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpfail2.txt c:\output.txt |
|
449 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp |
|
450 END_TESTCASE certtool_individual_helpfail |
|
451 |
|
452 |
|
453 //! @SYMTestCaseID FILETOKENS-EC097-0035 |
|
454 //! @SYMTestCaseDesc Certool importing twice |
|
455 //! @SYMTestPriority Medium |
|
456 //! @SYMTestActions call Certool to import a certificate twice |
|
457 //! @SYMTestExpectedResults Certtool should display the error message as already exists |
|
458 //! @SYMDevelopedForRelease Sphinx |
|
459 |
|
460 START_TESTCASE certtool_import_twicefail |
|
461 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail1.txt c:\output.txt |
|
462 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail1.txt c:\output.txt |
|
463 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_twicefail |
|
464 END_TESTCASE certtool_import_twicefail |
|
465 |
|
466 |
|
467 //! @SYMTestCaseID FILETOKENS-EC097-0036 |
|
468 //! @SYMTestCaseDesc Certool importing certficate to non existing store |
|
469 //! @SYMTestPriority Medium |
|
470 //! @SYMTestActions call Certool to import a certificate to non existing store |
|
471 //! @SYMTestExpectedResults Certtool should display the error message as not exist |
|
472 //! @SYMDevelopedForRelease Sphinx |
|
473 |
|
474 START_TESTCASE certtool_import_emptycertstorefail |
|
475 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail2.txt c:\output.txt |
|
476 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_emptycertstorefail |
|
477 END_TESTCASE certtool_import_emptycertstorefail |
|
478 |
|
479 |
|
480 //! @SYMTestCaseID FILETOKENS-EC097-0037 |
|
481 //! @SYMTestCaseDesc Certool importing nonexisting certificate |
|
482 //! @SYMTestPriority Medium |
|
483 //! @SYMTestActions call Certool to import a nonexisting certficate |
|
484 //! @SYMTestExpectedResults Certtool should display the error message as cannot open the file |
|
485 //! @SYMDevelopedForRelease Sphinx |
|
486 |
|
487 START_TESTCASE certtool_import_nonexistfail |
|
488 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail3.txt c:\output.txt |
|
489 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_nonexistfail |
|
490 END_TESTCASE certtool_import_nonexistfail |
|
491 |
|
492 |
|
493 //! @SYMTestCaseID FILETOKENS-EC097-0038 |
|
494 //! @SYMTestCaseDesc Certool importing corrupted certificate |
|
495 //! @SYMTestPriority Medium |
|
496 //! @SYMTestActions call Certool to import a corrupted certificate |
|
497 //! @SYMTestExpectedResults Certtool should display the error message as corrupted |
|
498 //! @SYMDevelopedForRelease Sphinx |
|
499 |
|
500 START_TESTCASE certtool_import_corruptcertfail |
|
501 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail4.txt c:\output.txt |
|
502 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_corruptcertfail |
|
503 END_TESTCASE certtool_import_corruptcertfail |
|
504 |
|
505 //! @SYMTestCaseID FILETOKENS-EC097-0039 |
|
506 //! @SYMTestCaseDesc Certool importing a empty certficate |
|
507 //! @SYMTestPriority Medium |
|
508 //! @SYMTestActions call Certool to import a empty certficate |
|
509 //! @SYMTestExpectedResults Certtool should display the error message as cannot open the file |
|
510 //! @SYMDevelopedForRelease Sphinx |
|
511 |
|
512 START_TESTCASE certtool_import_emptycertfail |
|
513 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail5.txt c:\output.txt |
|
514 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_emptycertfail |
|
515 END_TESTCASE certtool_import_emptycertfail |
|
516 |
|
517 |
|
518 |
|
519 //! @SYMTestCaseID FILETOKENS-EC097-0040 |
|
520 //! @SYMTestCaseDesc Certool setapps command |
|
521 //! @SYMTestPriority Medium |
|
522 //! @SYMTestActions call Certool to setapps a certificate where the apps is not exist |
|
523 //! @SYMTestExpectedResults Certtool should display the error message try one of existing apps |
|
524 //! @SYMDevelopedForRelease Sphinx |
|
525 |
|
526 |
|
527 START_TESTCASE certtool_setapps_invalidfail |
|
528 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail1.txt c:\output.txt |
|
529 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps_invalidfail |
|
530 END_TESTCASE certtool_setapps_invalidfail |
|
531 |
|
532 |
|
533 //! @SYMTestCaseID FILETOKENS-EC097-0041 |
|
534 //! @SYMTestCaseDesc Certool setapps command |
|
535 //! @SYMTestPriority Medium |
|
536 //! @SYMTestActions call Certool to setapps a user certificate |
|
537 //! @SYMTestExpectedResults Certtool should display the error message error occured while adding applicability |
|
538 //! @SYMDevelopedForRelease Sphinx |
|
539 |
|
540 START_TESTCASE certtool_setapps_userfail |
|
541 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail2.txt c:\output.txt |
|
542 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps_userfail |
|
543 END_TESTCASE certtool_setapps_userfail |
|
544 |
|
545 |
|
546 //! @SYMTestCaseID FILETOKENS-EC097-0042 |
|
547 //! @SYMTestCaseDesc Certool addapps command |
|
548 //! @SYMTestPriority Medium |
|
549 //! @SYMTestActions call Certool to addapps a certificate where the apps is not exist |
|
550 //! @SYMTestExpectedResults Certtool should display the error message try one of existing apps |
|
551 //! @SYMDevelopedForRelease Sphinx |
|
552 |
|
553 |
|
554 START_TESTCASE certtool_addapps_invalidfail |
|
555 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_addappsfail1.txt c:\output.txt |
|
556 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps_invalidfail |
|
557 END_TESTCASE certtool_addapps_invalidfail |
|
558 |
|
559 |
|
560 //! @SYMTestCaseID FILETOKENS-EC097-0043 |
|
561 //! @SYMTestCaseDesc Certool addapps command |
|
562 //! @SYMTestPriority Medium |
|
563 //! @SYMTestActions call Certool to addapps a certificate where the apps is not exist |
|
564 //! @SYMTestExpectedResults Certtool should display the error message error occured while adding applicability |
|
565 //! @SYMDevelopedForRelease Sphinx |
|
566 |
|
567 START_TESTCASE certtool_addapps_userfail |
|
568 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail2.txt c:\output.txt |
|
569 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps_userfail |
|
570 END_TESTCASE certtool_addapps_userfail |
|
571 |
|
572 //! @SYMTestCaseID FILETOKENS-EC097-0044 |
|
573 //! @SYMTestCaseDesc Certool removeapps command |
|
574 //! @SYMTestPriority Medium |
|
575 //! @SYMTestActions call Certool to removeapps a certificate where the apps is not exist |
|
576 //! @SYMTestExpectedResults Certtool should display the error message try one of existing apps |
|
577 //! @SYMDevelopedForRelease Sphinx |
|
578 |
|
579 |
|
580 START_TESTCASE certtool_removeapps_invalidfail |
|
581 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeappsfail1.txt c:\output.txt |
|
582 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps_invalidfail |
|
583 END_TESTCASE certtool_removeapps_invalidfail |
|
584 |
|
585 |
|
586 //! @SYMTestCaseID FILETOKENS-EC097-0045 |
|
587 //! @SYMTestCaseDesc Certool removeapps command |
|
588 //! @SYMTestPriority Medium |
|
589 //! @SYMTestActions call Certool to removeapps a certificate where the applicability is not exist |
|
590 //! @SYMTestExpectedResults Certtool should display the error message not trusted for the apps |
|
591 //! @SYMDevelopedForRelease Sphinx |
|
592 |
|
593 START_TESTCASE certtool_removeapps_untrustfail |
|
594 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeappsfail2.txt c:\output.txt |
|
595 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps_untrustfail |
|
596 END_TESTCASE certtool_removeapps_untrustfail |
|
597 |
|
598 |
|
599 //! @SYMTestCaseID FILETOKENS-EC097-0046 |
|
600 //! @SYMTestCaseDesc Certool list command |
|
601 //! @SYMTestPriority Medium |
|
602 //! @SYMTestActions call Certool to list a certificate where the certificate store is not exist |
|
603 //! @SYMTestExpectedResults Certtool should display the error message store not exist |
|
604 //! @SYMDevelopedForRelease Sphinx |
|
605 |
|
606 START_TESTCASE certtool_list_fail |
|
607 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail1.txt c:\output.txt |
|
608 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail |
|
609 END_TESTCASE certtool_list_fail |
|
610 |
|
611 |
|
612 //! @SYMTestCaseID FILETOKENS-EC097-0047 |
|
613 //! @SYMTestCaseDesc Certool list command |
|
614 //! @SYMTestPriority Medium |
|
615 //! @SYMTestActions call Certool to list a certificate where the certificate is not exist |
|
616 //! @SYMTestExpectedResults Certtool should display the error message certificate is not exist |
|
617 //! @SYMDevelopedForRelease Sphinx |
|
618 |
|
619 |
|
620 START_TESTCASE certtool_list_fail1 |
|
621 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail2.txt c:\output.txt |
|
622 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail1 |
|
623 END_TESTCASE certtool_list_fail1 |
|
624 |
|
625 |
|
626 //! @SYMTestCaseID FILETOKENS-EC097-0047 |
|
627 //! @SYMTestCaseDesc Certool list command |
|
628 //! @SYMTestPriority Medium |
|
629 //! @SYMTestActions call Certool to list a certificate ownere where the owner is not exist |
|
630 //! @SYMTestExpectedResults Certtool should display the error message as no certificate exist |
|
631 //! @SYMDevelopedForRelease Sphinx |
|
632 |
|
633 START_TESTCASE certtool_list_fail2 |
|
634 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail3.txt c:\output.txt |
|
635 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail2 |
|
636 END_TESTCASE certtool_list_fail2 |
|
637 |
|
638 |
|
639 //! @SYMTestCaseID FILETOKENS-EC097-0048 |
|
640 //! @SYMTestCaseDesc Certool remove command |
|
641 //! @SYMTestPriority Medium |
|
642 //! @SYMTestActions call Certool to remove a certificate where the certificate is not exist |
|
643 //! @SYMTestExpectedResults Certtool should display the error message certificate not exist |
|
644 //! @SYMDevelopedForRelease Sphinx |
|
645 |
|
646 START_TESTCASE certtool_remove_fail |
|
647 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removefail.txt c:\output.txt |
|
648 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove_fail |
|
649 END_TESTCASE certtool_remove_fail |
|
650 |
|
651 |
|
652 //! @SYMTestCaseID FILETOKENS-EC097-0049 |
|
653 //! @SYMTestCaseDesc Certool command |
|
654 //! @SYMTestPriority Medium |
|
655 //! @SYMTestActions call Certool command in unspecified order |
|
656 //! @SYMTestExpectedResults Certtool should display the help message |
|
657 //! @SYMDevelopedForRelease Sphinx |
|
658 |
|
659 START_TESTCASE certtool_fail |
|
660 RUN_PROGRAM certtool.exe c:\ttesttools\data\certfail.txt c:\output.txt |
|
661 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp |
|
662 END_TESTCASE certtool_fail |
|
663 |
|
664 |
|
665 //! @SYMTestCaseID FILETOKENS-EC097-0050 |
|
666 //! @SYMTestCaseDesc Keytool help command |
|
667 //! @SYMTestPriority Medium |
|
668 //! @SYMTestActions call Keytool help command without any argument |
|
669 //! @SYMTestExpectedResults Keytool should display the help message |
|
670 //! @SYMDevelopedForRelease Sphinx |
|
671 |
|
672 START_TESTCASE keytool_help_fail |
|
673 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_helpfail1.txt c:\output.txt |
|
674 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help |
|
675 END_TESTCASE keytool_help_fail |
|
676 |
|
677 //! @SYMTestCaseID FILETOKENS-EC097-0051 |
|
678 //! @SYMTestCaseDesc Keytool Individual help command |
|
679 //! @SYMTestPriority Medium |
|
680 //! @SYMTestActions call Keytool Individual help command where the command is not exist |
|
681 //! @SYMTestExpectedResults Keytool should display the help message |
|
682 //! @SYMDevelopedForRelease Sphinx |
|
683 |
|
684 START_TESTCASE keytool_help_fail1 |
|
685 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_helpfail2.txt c:\output.txt |
|
686 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help |
|
687 END_TESTCASE keytool_help_fail1 |
|
688 |
|
689 |
|
690 //! @SYMTestCaseID FILETOKENS-EC097-0053 |
|
691 //! @SYMTestCaseDesc Keytool import command |
|
692 //! @SYMTestPriority Medium |
|
693 //! @SYMTestActions call Keytool import key twice |
|
694 //! @SYMTestExpectedResults Keytool should display the error message as already exists |
|
695 //! @SYMDevelopedForRelease Sphinx |
|
696 |
|
697 START_TESTCASE keytool_import_fail |
|
698 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail1.txt c:\output.txt |
|
699 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail1.txt c:\output.txt |
|
700 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail |
|
701 END_TESTCASE keytool_import_fail |
|
702 |
|
703 |
|
704 //! @SYMTestCaseID FILETOKENS-EC097-0054 |
|
705 //! @SYMTestCaseDesc Keytool import command |
|
706 //! @SYMTestPriority Medium |
|
707 //! @SYMTestActions call Keytool import key where keystore doesn't exist |
|
708 //! @SYMTestExpectedResults Keytool should display the error message as store not exist |
|
709 //! @SYMDevelopedForRelease Sphinx |
|
710 |
|
711 START_TESTCASE keytool_import_fail1 |
|
712 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail2.txt c:\output.txt |
|
713 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail1 |
|
714 END_TESTCASE keytool_import_fail1 |
|
715 |
|
716 |
|
717 //! @SYMTestCaseID FILETOKENS-EC097-0055 |
|
718 //! @SYMTestCaseDesc Keytool import command |
|
719 //! @SYMTestPriority Medium |
|
720 //! @SYMTestActions call Keytool import key where key doesn't exist |
|
721 //! @SYMTestExpectedResults Keytool should display the error message as key not exist |
|
722 //! @SYMDevelopedForRelease Sphinx |
|
723 |
|
724 START_TESTCASE keytool_import_fail2 |
|
725 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail3.txt c:\output.txt |
|
726 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail2 |
|
727 END_TESTCASE keytool_import_fail2 |
|
728 |
|
729 |
|
730 //! @SYMTestCaseID FILETOKENS-EC097-0056 |
|
731 //! @SYMTestCaseDesc Keytool import command |
|
732 //! @SYMTestPriority Medium |
|
733 //! @SYMTestActions call Keytool import a corrupted key |
|
734 //! @SYMTestExpectedResults Keytool should display the error message as corrupted key |
|
735 //! @SYMDevelopedForRelease Sphinx |
|
736 |
|
737 START_TESTCASE keytool_import_fail3 |
|
738 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail4.txt c:\output.txt |
|
739 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail3 |
|
740 END_TESTCASE keytool_import_fail3 |
|
741 |
|
742 |
|
743 //! @SYMTestCaseID FILETOKENS-EC097-0057 |
|
744 //! @SYMTestCaseDesc Keytool import command |
|
745 //! @SYMTestPriority Medium |
|
746 //! @SYMTestActions call Keytool import empty key |
|
747 //! @SYMTestExpectedResults Keytool should display the error message as key is empty |
|
748 //! @SYMDevelopedForRelease Sphinx |
|
749 |
|
750 START_TESTCASE keytool_import_fail4 |
|
751 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail5.txt c:\output.txt |
|
752 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail4 |
|
753 END_TESTCASE keytool_import_fail4 |
|
754 |
|
755 //! @SYMTestCaseID FILETOKENS-EC097-0058 |
|
756 //! @SYMTestCaseDesc Keytool setuser command |
|
757 //! @SYMTestPriority Medium |
|
758 //! @SYMTestActions call Keytool setuser for key where key is not exist |
|
759 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist |
|
760 //! @SYMDevelopedForRelease Sphinx |
|
761 |
|
762 START_TESTCASE keytool_setuser_fail |
|
763 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserfail1.txt c:\output.txt |
|
764 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser_fail |
|
765 END_TESTCASE keytool_setuser_fail |
|
766 |
|
767 //! @SYMTestCaseID FILETOKENS-EC097-0059 |
|
768 //! @SYMTestCaseDesc Keytool setuser command |
|
769 //! @SYMTestPriority Medium |
|
770 //! @SYMTestActions call Keytool setuser for key where key is created by third party |
|
771 //! @SYMTestExpectedResults Keytool should display the error message as setusers failed with -46 |
|
772 //! @SYMDevelopedForRelease Sphinx |
|
773 |
|
774 START_TESTCASE keytool_setuser_fail1 |
|
775 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserfail2.txt c:\output.txt |
|
776 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser_fail1 |
|
777 END_TESTCASE keytool_setuser_fail1 |
|
778 |
|
779 //! @SYMTestCaseID FILETOKENS-EC097-0060 |
|
780 //! @SYMTestCaseDesc Keytool setalluser command |
|
781 //! @SYMTestPriority Medium |
|
782 //! @SYMTestActions call Keytool setalluser for key where key is not exist |
|
783 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist |
|
784 //! @SYMDevelopedForRelease Sphinx |
|
785 |
|
786 START_TESTCASE keytool_setallusers_fail |
|
787 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluserfail1.txt c:\output.txt |
|
788 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers_fail |
|
789 END_TESTCASE keytool_setallusers_fail |
|
790 |
|
791 //! @SYMTestCaseID FILETOKENS-EC097-0061 |
|
792 //! @SYMTestCaseDesc Keytool setuser command |
|
793 //! @SYMTestPriority Medium |
|
794 //! @SYMTestActions call Keytool setuser for key where key is created by third party |
|
795 //! @SYMTestExpectedResults Keytool should display the error message as setusers failed with -46 |
|
796 //! @SYMDevelopedForRelease Sphinx |
|
797 |
|
798 START_TESTCASE keytool_setallusers_fail1 |
|
799 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluserfail2.txt c:\output.txt |
|
800 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers_fail1 |
|
801 END_TESTCASE keytool_setallusers_fail1 |
|
802 |
|
803 |
|
804 //! @SYMTestCaseID FILETOKENS-EC097-0062 |
|
805 //! @SYMTestCaseDesc Keytool setmanager command |
|
806 //! @SYMTestPriority Medium |
|
807 //! @SYMTestActions call Keytool setmanager for key where key is not exist |
|
808 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist |
|
809 //! @SYMDevelopedForRelease Sphinx |
|
810 |
|
811 START_TESTCASE keytool_setmanager_fail |
|
812 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanagerfail1.txt c:\output.txt |
|
813 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager_fail |
|
814 END_TESTCASE keytool_setmanager_fail |
|
815 |
|
816 |
|
817 //! @SYMTestCaseID FILETOKENS-EC097-0063 |
|
818 //! @SYMTestCaseDesc Keytool setmanager command |
|
819 //! @SYMTestPriority Medium |
|
820 //! @SYMTestActions call Keytool setmanager for key where key is created by third party |
|
821 //! @SYMTestExpectedResults Keytool should display the error message as key as setmanager failed with -46 |
|
822 //! @SYMDevelopedForRelease Sphinx |
|
823 |
|
824 START_TESTCASE keytool_setmanager_fail1 |
|
825 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanagerfail2.txt c:\output.txt |
|
826 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager_fail1 |
|
827 END_TESTCASE keytool_setmanager_fail1 |
|
828 |
|
829 //! @SYMTestCaseID FILETOKENS-EC097-0064 |
|
830 //! @SYMTestCaseDesc Keytool remove user command |
|
831 //! @SYMTestPriority Medium |
|
832 //! @SYMTestActions call Keytool remove user for key where key is not exist |
|
833 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist |
|
834 //! @SYMDevelopedForRelease Sphinx |
|
835 |
|
836 START_TESTCASE keytool_removeuser_fail |
|
837 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuserfail1.txt c:\output.txt |
|
838 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser_fail |
|
839 END_TESTCASE keytool_removeuser_fail |
|
840 |
|
841 //! @SYMTestCaseID FILETOKENS-EC097-0065 |
|
842 //! @SYMTestCaseDesc Keytool remove user command |
|
843 //! @SYMTestPriority Medium |
|
844 //! @SYMTestActions call Keytool removeuser for key where key is created by third party |
|
845 //! @SYMTestExpectedResults Keytool should display the error message as key is removeusers failed with -46 |
|
846 //! @SYMDevelopedForRelease Sphinx |
|
847 |
|
848 START_TESTCASE keytool_removeuser_fail1 |
|
849 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuserfail2.txt c:\output.txt |
|
850 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser_fail1 |
|
851 END_TESTCASE keytool_removeuser_fail1 |
|
852 |
|
853 //! @SYMTestCaseID FILETOKENS-EC097-0066 |
|
854 //! @SYMTestCaseDesc Keytool list command |
|
855 //! @SYMTestPriority Medium |
|
856 //! @SYMTestActions call Keytool list for the key where keystore is not exist |
|
857 //! @SYMTestExpectedResults Keytool should display the error message as key is store not exist |
|
858 //! @SYMDevelopedForRelease Sphinx |
|
859 |
|
860 START_TESTCASE keytool_list_fail |
|
861 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_listfail1.txt c:\output.txt |
|
862 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_fail |
|
863 END_TESTCASE keytool_list_fail |
|
864 |
|
865 //! @SYMTestCaseID FILETOKENS-EC097-0067 |
|
866 //! @SYMTestCaseDesc Keytool list command |
|
867 //! @SYMTestPriority Medium |
|
868 //! @SYMTestActions call Keytool list for key where key is not exist |
|
869 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist |
|
870 //! @SYMDevelopedForRelease Sphinx |
|
871 |
|
872 START_TESTCASE keytool_list_fail1 |
|
873 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_listfail2.txt c:\output.txt |
|
874 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_fail1 |
|
875 END_TESTCASE keytool_list_fail1 |
|
876 |
|
877 //! @SYMTestCaseID FILETOKENS-EC097-0068 |
|
878 //! @SYMTestCaseDesc Keytool remove command |
|
879 //! @SYMTestPriority Medium |
|
880 //! @SYMTestActions call Keytool remove for key where key is not exist |
|
881 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist |
|
882 //! @SYMDevelopedForRelease Sphinx |
|
883 |
|
884 START_TESTCASE keytool_remove_fail |
|
885 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removefail.txt c:\output.txt |
|
886 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_remove_fail |
|
887 END_TESTCASE keytool_remove_fail |
|
888 |
|
889 //! @SYMTestCaseID FILETOKENS-EC097-0069 |
|
890 //! @SYMTestCaseDesc Keytool command |
|
891 //! @SYMTestPriority Medium |
|
892 //! @SYMTestActions call Keytool command in unspeicifed order |
|
893 //! @SYMTestExpectedResults Keytool should display the help message |
|
894 //! @SYMDevelopedForRelease Sphinx |
|
895 |
|
896 START_TESTCASE keytool_fail |
|
897 RUN_PROGRAM keytool.exe c:\ttesttools\data\keyfail.txt c:\output.txt |
|
898 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help |
|
899 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove3.txt c:\output.txt |
|
900 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_remove1.txt c:\output.txt |
|
901 END_TESTCASE keytool_fail |
|
902 |
|
903 |
|
904 //! @SYMTestCaseID FILETOKENS-Defect118391_01 |
|
905 //! @SYMTestCaseDesc Certool import command |
|
906 //! @SYMTestPriority Medium |
|
907 //! @SYMTestActions call Certool import command without a label specified |
|
908 //! @SYMTestExpectedResults Certtool should not display any error message and work fine. |
|
909 |
|
910 START_TESTCASE certtool_import_def118391 |
|
911 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import.txt c:\output.txt |
|
912 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import |
|
913 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import |
|
914 END_TESTCASE certtool_import_def118391 |
|
915 |
|
916 |
|
917 //! @SYMTestCaseID FILETOKENS-Defect118391_02 |
|
918 //! @SYMTestCaseDesc Certool setapps command |
|
919 //! @SYMTestPriority Medium |
|
920 //! @SYMTestActions call Certool setapps command with a label option specified |
|
921 //! @SYMTestExpectedResults Certtool should not display any error message and work fine. |
|
922 |
|
923 |
|
924 START_TESTCASE certtool_setapps_defect118391 |
|
925 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps1.txt c:\output.txt |
|
926 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps1 |
|
927 END_TESTCASE certtool_setapps_defect118391 |
|
928 |
|
929 |
|
930 //! @SYMTestCaseID FILETOKENS-Defect118391_03 |
|
931 //! @SYMTestCaseDesc Certool setapps command |
|
932 //! @SYMTestPriority Medium |
|
933 //! @SYMTestActions call Certool to set the application trust status for the certificate |
|
934 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status |
|
935 |
|
936 START_TESTCASE certtool_trust |
|
937 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps.txt c:\output.txt |
|
938 RUN_TEST_STEP 100 ttesttools GetTrustStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps2 |
|
939 END_TESTCASE certtool_trust |