diff -r 000000000000 -r 2c201484c85f cryptoservices/certificateandkeymgmt/tcertstore/scripts/cancel2.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cryptoservices/certificateandkeymgmt/tcertstore/scripts/cancel2.txt Wed Jul 08 11:25:26 2009 +0100
@@ -0,0 +1,533 @@
+//! Cancel2.txt
+//! Cancellation tests for the certificate addition, deletion, trust&application setting with notification
+//! to the client process.
+
+// Note: The in-source test tag is only added to the new tests for PREQ226. The tests without test tag is the existing tests
+// in the certstore component, which are used to set up the environment needed by the PREQ226 tests.
+
+// Setup ///////////////////////////////////////////////////////////////////////
+
+
+ No Test,Opening a CertificateAppInfoManager
+ initappmanager
+
+
+ KErrNone
+
+
+
+
+ No Test,Adding client A1
+ addclient
+
+ A1
+ 1
+
+
+ KErrNone
+
+
+
+
+ No Test,Adding client A2
+ addclient
+
+ A2
+ 2
+
+
+ KErrNone
+
+
+
+
+ No Test,Adding client A3
+ addclient
+
+ A3
+ 3
+
+
+ KErrNone
+
+
+
+
+ No Test,Adding client A4
+ addclient
+
+ A4
+ 4
+
+
+ KErrNone
+
+
+
+
+ No Test,Deleting the CertificateAppInfoManager
+ deleteappmanager
+
+
+ KErrNone
+
+
+
+
+ Import a RSA key rsacertkey1
+ importkey
+
+ rsacertkey1.txt
+ AllUsagesButNR
+ *IMPORTED* RSA key 1
+ Extractable
+
+
+ KErrNone
+
+
+
+
+ Opening a writable certificate store manager
+ init
+
+ write
+
+
+ KErrNone
+
+
+
+
+ Deleting all certs
+ deletecert
+
+
+ 1
+
+
+ KErrNone
+
+
+
+
+ Deleting the writable certificate store manager
+ delete
+
+
+ KErrNone
+
+
+
+
+ Enabling cancellation testing
+ startcancellation
+
+ KErrNone
+
+
+
+// Initialisation //////////////////////////////////////////////////////////////
+
+
+ Opening a writable certificate store manager
+ init
+
+ write
+
+
+ KErrNone
+
+
+
+// Add certs ///////////////////////////////////////////////////////////////////
+
+//! @file
+//! @SYMTestCaseID UCTSSEC-CT-WModeUCTAddCCancelWN1.1
+//! @SYMTestCaseDesc The test is to test cancellation of X509 CA certificate addition with notification.
+//! @SYMPREQ 226
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+
+ 1.1, Cancel X509 CA certificate CAX1 addition with notification
+ addcert
+
+ X509
+
+
+
+ 0
+ c:\unifiedcertstore2\CAX1.cer
+ CA
+ 1
+
+
+ KErrNone
+
+
+
+//! @file
+//! @SYMTestCaseID UCTSSEC-CT-WModeUCTAddCCancelWN1.2
+//! @SYMTestCaseDesc The test is to test cancellation of WTLS CA certificate addition with notification.
+//! @SYMPREQ 226
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ 1.2, Cancel WTLS CA certificate CAW1 addition with notification
+ addcert
+
+ WTLS
+
+
+
+ 0
+ c:\unifiedcertstore2\CAW1.cer
+ CA
+ 1
+
+
+ KErrNone
+
+
+
+//! @file
+//! @SYMTestCaseID UCTSSEC-CT-WModeUCTAddCCancelWN1.3
+//! @SYMTestCaseDesc The test is to test cancellation of X509 user certificate addition with notification.
+//! @SYMPREQ 226
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ 1.3, Cancel X509 user certificate rsacert1 addition with notification
+ addcert
+
+ X509
+
+
+ 4808f03892fe836e78d048bcefcca4a37913d886
+ 0
+ c:\unifiedcertstore2\rsacert1.cer
+ User
+ 1
+
+
+ KErrNone
+
+
+
+// List certs //////////////////////////////////////////////////////////////////
+
+
+ List CA certificates
+ listcert
+
+
+ ca
+
+
+
+ KErrNone
+
+
+
+
+
+
+ List user certificates
+ listcert
+
+
+ user
+
+ pkcs15
+ private
+ AllUsagesButNR
+
+
+
+
+ KErrNone
+
+
+
+
+
+ List user certificates filtered by key usage
+ listcert
+
+
+ user
+
+ pkcs15
+ private
+ Decrypt
+
+
+
+
+ KErrNone
+
+
+
+
+
+ List user certificates filtered by key usage
+ listcert
+
+
+ user
+
+ pkcs15
+ NonRepudiation
+
+
+
+
+ KErrNone
+
+
+
+
+ List certificates filtered by Issuer DN
+ listcert
+
+
+ ca
+
+ c:\unifiedcertstore2\CAX1.cer
+
+
+ KErrNone
+
+
+
+
+
+ List certificates filtered by Issuer DN
+ listcert
+
+
+ ca
+
+ c:\unifiedcertstore2\CAX1.cer
+ c:\unifiedcertstore2\CAX2.cer
+
+
+ KErrNone
+
+
+
+
+
+ List certificates filtered by Issuer DN
+ listcacert
+
+
+
+ c:\unifiedcertstore2\CAX2.cer
+
+
+ KErrNone
+
+
+
+// Retrieve certs
+
+
+ Retrieve CAX1 cert
+ retrieve
+
+
+
+
+ KErrNone
+
+
+
+
+ Retrieve CAW1 cert
+ retrieve
+
+
+
+
+ KErrNone
+
+
+
+// Applications and trust //////////////////////////////////////////////////////
+
+//! @file
+//! @SYMTestCaseID UCTSSEC-CT-WModeUCTSAppCCancelWN4.1
+//! @SYMTestCaseDesc The test is to test cancellation of setting X509 CA certificate application with notification.
+//! @SYMPREQ 226
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ 4.1 Cancel applications setting to the CAX1 certificate with notification
+ setapplications
+
+
+ 1 2 3
+ 1
+
+
+ KErrNone
+
+
+
+
+ Get applications for CAX1
+ getapplications
+
+
+
+
+ KErrNone
+ 1 2 3
+
+
+
+//! @file
+//! @SYMTestCaseID UCTSSEC-CT-WModeUCTSTrustCCancelWN3.1
+//! @SYMTestCaseDesc The test is to test cancellation of setting X509 CA certificates trust with notification.
+//! @SYMPREQ 226
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ 3.1, Cancel the trust setting for CAX1 with notification
+ settrust
+
+
+ 1
+ 1
+
+
+ KErrNone
+
+
+
+
+ Get the trust for CAX1
+ gettrusters
+
+
+
+
+ KErrNone
+ 1
+
+
+
+// Delete certs ////////////////////////////////////////////////////////////////
+//! @file
+//! @SYMTestCaseID UCTSSEC-CT-WModeUCTDelCCancelWN2.1
+//! @SYMTestCaseDesc The test is to test cancellation of X509 CA certificates deletion with notification.
+//! @SYMPREQ 226
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ 2.1, Cancel CAX1 certs deletion with notification
+ deletecert
+
+ ca
+
+ 1
+
+
+ KErrNone
+
+
+
+// Cleanup /////////////////////////////////////////////////////////////////////
+
+
+ Disabling cancellation testing
+ stopcancellation
+
+ KErrNone
+
+
+
+
+ Deleting all certs
+ deletecert
+
+
+ 1
+
+
+ KErrNone
+
+
+
+
+ Deleting the writable certificate store manager
+ delete
+
+
+ KErrNone
+
+
+
+
+ No Test,Opening a CertificateAppInfoManager
+ initappmanager
+
+
+ KErrNone
+
+
+
+
+ No Test,Deleting the client A1
+ removeclient
+
+ 1
+
+
+ KErrNone
+
+
+
+
+ No Test,Deleting the client A2
+ removeclient
+
+ 2
+
+
+ KErrNone
+
+
+
+
+ No Test,Deleting the client A3
+ removeclient
+
+ 3
+
+
+ KErrNone
+
+
+
+
+ No Test,Deleting the client A4
+ removeclient
+
+ 4
+
+
+ KErrNone
+
+
+
+
+ No Test,Deleting the CertificateAppInfoManager
+ deleteappmanager
+
+
+ KErrNone
+
+