Update contrib.
2 //! Cancellation tests for the certificate addition, deletion, trust&application setting with notification
3 //! to the client process.
5 // Note: The in-source test tag is only added to the new tests for PREQ226. The tests without test tag is the existing tests
6 // in the certstore component, which are used to set up the environment needed by the PREQ226 tests.
8 // Setup ///////////////////////////////////////////////////////////////////////
11 <actionname>No Test,Opening a CertificateAppInfoManager</actionname>
12 <actiontype>initappmanager</actiontype>
13 <actionbody></actionbody>
15 <return>KErrNone</return>
20 <actionname>No Test,Adding client A1</actionname>
21 <actiontype>addclient</actiontype>
27 <return>KErrNone</return>
32 <actionname>No Test,Adding client A2</actionname>
33 <actiontype>addclient</actiontype>
39 <return>KErrNone</return>
44 <actionname>No Test,Adding client A3</actionname>
45 <actiontype>addclient</actiontype>
51 <return>KErrNone</return>
56 <actionname>No Test,Adding client A4</actionname>
57 <actiontype>addclient</actiontype>
63 <return>KErrNone</return>
68 <actionname>No Test,Deleting the CertificateAppInfoManager</actionname>
69 <actiontype>deleteappmanager</actiontype>
70 <actionbody></actionbody>
72 <return>KErrNone</return>
77 <actionname>Import a RSA key rsacertkey1</actionname>
78 <actiontype>importkey</actiontype>
80 <ImportData>rsacertkey1.txt</ImportData>
81 <keyusage>AllUsagesButNR</keyusage>
82 <keylabel>*IMPORTED* RSA key 1</keylabel>
83 <keyaccesstype>Extractable</keyaccesstype>
86 <return>KErrNone</return>
91 <actionname>Opening a writable certificate store manager</actionname>
92 <actiontype>init</actiontype>
97 <return>KErrNone</return>
102 <actionname>Deleting all certs</actionname>
103 <actiontype>deletecert</actiontype>
106 <deleteallcerts>1</deleteallcerts>
109 <return>KErrNone</return>
114 <actionname>Deleting the writable certificate store manager</actionname>
115 <actiontype>delete</actiontype>
116 <actionbody></actionbody>
118 <return>KErrNone</return>
123 <actionname>Enabling cancellation testing</actionname>
124 <actiontype>startcancellation</actiontype>
126 <return>KErrNone</return>
130 // Initialisation //////////////////////////////////////////////////////////////
133 <actionname>Opening a writable certificate store manager</actionname>
134 <actiontype>init</actiontype>
139 <return>KErrNone</return>
143 // Add certs ///////////////////////////////////////////////////////////////////
146 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTAddCCancelWN1.1
147 //! @SYMTestCaseDesc The test is to test cancellation of X509 CA certificate addition with notification.
149 //! @SYMTestCasePriority High
150 //! @SYMTestExpectedResults KErrNone
153 <actionname>1.1, Cancel X509 CA certificate CAX1 addition with notification</actionname>
154 <actiontype>addcert</actiontype>
156 <format>X509</format>
158 <issuerkey></issuerkey>
159 <subjectkey></subjectkey>
160 <certstore>0</certstore>
161 <certfile>c:\unifiedcertstore2\CAX1.cer</certfile>
162 <certowner>CA</certowner>
163 <ChangeNotification>1</ChangeNotification>
166 <return>KErrNone</return>
171 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTAddCCancelWN1.2
172 //! @SYMTestCaseDesc The test is to test cancellation of WTLS CA certificate addition with notification.
174 //! @SYMTestCasePriority High
175 //! @SYMTestExpectedResults KErrNone
177 <actionname>1.2, Cancel WTLS CA certificate CAW1 addition with notification</actionname>
178 <actiontype>addcert</actiontype>
180 <format>WTLS</format>
182 <issuerkey></issuerkey>
183 <subjectkey></subjectkey>
184 <certstore>0</certstore>
185 <certfile>c:\unifiedcertstore2\CAW1.cer</certfile>
186 <certowner>CA</certowner>
187 <ChangeNotification>1</ChangeNotification>
190 <return>KErrNone</return>
195 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTAddCCancelWN1.3
196 //! @SYMTestCaseDesc The test is to test cancellation of X509 user certificate addition with notification.
198 //! @SYMTestCasePriority High
199 //! @SYMTestExpectedResults KErrNone
201 <actionname>1.3, Cancel X509 user certificate rsacert1 addition with notification</actionname>
202 <actiontype>addcert</actiontype>
204 <format>X509</format>
205 <label>rsacert1</label>
206 <issuerkey></issuerkey>
207 <subjectkey>4808f03892fe836e78d048bcefcca4a37913d886</subjectkey>
208 <certstore>0</certstore>
209 <certfile>c:\unifiedcertstore2\rsacert1.cer</certfile>
210 <certowner>User</certowner>
211 <ChangeNotification>1</ChangeNotification>
214 <return>KErrNone</return>
218 // List certs //////////////////////////////////////////////////////////////////
221 <actionname>List CA certificates</actionname>
222 <actiontype>listcert</actiontype>
225 <ownertype>ca</ownertype>
229 <return>KErrNone</return>
230 <CCTCertInfo><label>CAX1</label></CCTCertInfo>
231 <CCTCertInfo><label>CAW1</label></CCTCertInfo>
236 <actionname>List user certificates</actionname>
237 <actiontype>listcert</actiontype>
240 <ownertype>user</ownertype>
241 <keyusagedescription>
242 <keyusagescheme>pkcs15</keyusagescheme>
243 <keytype>private</keytype>
244 <keyusage>AllUsagesButNR</keyusage>
245 </keyusagedescription>
249 <return>KErrNone</return>
250 <CCTCertInfo><label>rsacert1</label></CCTCertInfo>
255 <actionname>List user certificates filtered by key usage</actionname>
256 <actiontype>listcert</actiontype>
259 <ownertype>user</ownertype>
260 <keyusagedescription>
261 <keyusagescheme>pkcs15</keyusagescheme>
262 <keytype>private</keytype>
263 <keyusage>Decrypt</keyusage>
264 </keyusagedescription>
268 <return>KErrNone</return>
269 <CCTCertInfo><label>rsacert1</label></CCTCertInfo>
274 <actionname>List user certificates filtered by key usage</actionname>
275 <actiontype>listcert</actiontype>
278 <ownertype>user</ownertype>
279 <keyusagedescription>
280 <keyusagescheme>pkcs15</keyusagescheme>
281 <keyusage>NonRepudiation</keyusage>
282 <keyusagedescription>
286 <return>KErrNone</return>
291 <actionname>List certificates filtered by Issuer DN</actionname>
292 <actiontype>listcert</actiontype>
295 <ownertype>ca</ownertype>
297 <issuerdn>c:\unifiedcertstore2\CAX1.cer</issuerdn>
300 <return>KErrNone</return>
301 <CCTCertInfo><label>CAX1</label></CCTCertInfo>
306 <actionname>List certificates filtered by Issuer DN</actionname>
307 <actiontype>listcert</actiontype>
310 <ownertype>ca</ownertype>
312 <issuerdn>c:\unifiedcertstore2\CAX1.cer</issuerdn>
313 <issuerdn>c:\unifiedcertstore2\CAX2.cer</issuerdn>
316 <return>KErrNone</return>
317 <CCTCertInfo><label>CAX1</label></CCTCertInfo>
322 <actionname>List certificates filtered by Issuer DN</actionname>
323 <actiontype>listcacert</actiontype>
326 <formatflags></formatflags>
327 <issuerdn>c:\unifiedcertstore2\CAX2.cer</issuerdn>
330 <return>KErrNone</return>
337 <actionname>Retrieve CAX1 cert</actionname>
338 <actiontype>retrieve</actiontype>
343 <return>KErrNone</return>
348 <actionname>Retrieve CAW1 cert</actionname>
349 <actiontype>retrieve</actiontype>
354 <return>KErrNone</return>
358 // Applications and trust //////////////////////////////////////////////////////
361 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTSAppCCancelWN4.1
362 //! @SYMTestCaseDesc The test is to test cancellation of setting X509 CA certificate application with notification.
364 //! @SYMTestCasePriority High
365 //! @SYMTestExpectedResults KErrNone
367 <actionname>4.1 Cancel applications setting to the CAX1 certificate with notification</actionname>
368 <actiontype>setapplications</actiontype>
372 <ChangeNotification>1</ChangeNotification>
375 <return>KErrNone</return>
380 <actionname>Get applications for CAX1</actionname>
381 <actiontype>getapplications</actiontype>
386 <return>KErrNone</return>
392 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTSTrustCCancelWN3.1
393 //! @SYMTestCaseDesc The test is to test cancellation of setting X509 CA certificates trust with notification.
395 //! @SYMTestCasePriority High
396 //! @SYMTestExpectedResults KErrNone
398 <actionname>3.1, Cancel the trust setting for CAX1 with notification</actionname>
399 <actiontype>settrust</actiontype>
403 <ChangeNotification>1</ChangeNotification>
406 <return>KErrNone</return>
411 <actionname>Get the trust for CAX1</actionname>
412 <actiontype>gettrusters</actiontype>
417 <return>KErrNone</return>
422 // Delete certs ////////////////////////////////////////////////////////////////
424 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTDelCCancelWN2.1
425 //! @SYMTestCaseDesc The test is to test cancellation of X509 CA certificates deletion with notification.
427 //! @SYMTestCasePriority High
428 //! @SYMTestExpectedResults KErrNone
430 <actionname>2.1, Cancel CAX1 certs deletion with notification</actionname>
431 <actiontype>deletecert</actiontype>
433 <certtype>ca</certtype>
435 <ChangeNotification>1</ChangeNotification>
438 <return>KErrNone</return>
442 // Cleanup /////////////////////////////////////////////////////////////////////
445 <actionname>Disabling cancellation testing</actionname>
446 <actiontype>stopcancellation</actiontype>
448 <return>KErrNone</return>
453 <actionname>Deleting all certs</actionname>
454 <actiontype>deletecert</actiontype>
457 <deleteallcerts>1</deleteallcerts>
460 <return>KErrNone</return>
465 <actionname>Deleting the writable certificate store manager</actionname>
466 <actiontype>delete</actiontype>
467 <actionbody></actionbody>
469 <return>KErrNone</return>
474 <actionname>No Test,Opening a CertificateAppInfoManager</actionname>
475 <actiontype>initappmanager</actiontype>
476 <actionbody></actionbody>
478 <return>KErrNone</return>
483 <actionname>No Test,Deleting the client A1</actionname>
484 <actiontype>removeclient</actiontype>
489 <return>KErrNone</return>
494 <actionname>No Test,Deleting the client A2</actionname>
495 <actiontype>removeclient</actiontype>
500 <return>KErrNone</return>
505 <actionname>No Test,Deleting the client A3</actionname>
506 <actiontype>removeclient</actiontype>
511 <return>KErrNone</return>
516 <actionname>No Test,Deleting the client A4</actionname>
517 <actiontype>removeclient</actiontype>
522 <return>KErrNone</return>
527 <actionname>No Test,Deleting the CertificateAppInfoManager</actionname>
528 <actiontype>deleteappmanager</actiontype>
529 <actionbody></actionbody>
531 <return>KErrNone</return>