diff -r 000000000000 -r 2c201484c85f cryptoservices/certificateandkeymgmt/tcertstore/scripts/swicertstore2.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cryptoservices/certificateandkeymgmt/tcertstore/scripts/swicertstore2.txt Wed Jul 08 11:25:26 2009 +0100
@@ -0,0 +1,368 @@
+// swicertstore2.txt
+//
+// Test access to SWI cert store through unified cert store
+// This is run in configuration 4, with only the swi cert store present
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-1
+//! @SYMTestCaseDesc Open a writable unified cert store
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Open a writable unified cert store
+ init
+
+ write
+
+
+ KErrNone
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-2
+//! @SYMTestCaseDesc Get number of writable cert stores
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Get number of writable cert stores
+ CUnifiedCertStore WritableCertStoreCount
+
+ 0
+
+
+ KErrNone
+ 0
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-3
+//! @SYMTestCaseDesc Get number of read-only cert stores
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Get number of read-only cert stores
+ CUnifiedCertStore ReadOnlyCertStoreCount
+
+ 0
+
+
+ KErrNone
+ 1
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-4
+//! @SYMTestCaseDesc Get number of cert stores
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Get number of cert stores
+ CUnifiedCertStore CertStoreCount
+
+ 0
+
+
+ KErrNone
+ 1
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-3.2.1.6
+//! @SYMTestCaseDesc Retrieving the store informations
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ 3.2.1.6,Retrieving the store informations
+ CCTTokenTypeInfo Attributes
+
+
+ KErrNone
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-6
+//! @SYMTestCaseDesc Get the list of CA certificates
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Get the list of CA certificates
+ listcert
+
+
+ ca
+
+
+
+ KErrNone
+ True
+ True
+ True
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-6b
+//! @SYMTestCaseDesc Get the list of CA certificates filtered by label 'Root5CA'
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Get the list of CA certificates filtered by label 'Root5CA'
+ listcert
+
+
+ ca
+
+
+
+
+ KErrNone
+ True
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-6c
+//! @SYMTestCaseDesc Get the list of CA certificates filtered by label 'SymbianTestDSACA'
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Get the list of CA certificates filtered by label 'SymbianTestDSACA'
+ listcert
+
+
+ ca
+
+
+
+
+ KErrNone
+ True
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-7
+//! @SYMTestCaseDesc Get the list of user certificates
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Get the list of user certificates
+ listcert
+
+
+ user
+
+
+
+ KErrNone
+
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-7b
+//! @SYMTestCaseDesc Get the list of user certificates filtered by label CertLabel
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Get the list of user certificates filtered by label CertLabel
+ listcert
+
+
+ user
+
+
+
+
+ KErrNone
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-8
+//! @SYMTestCaseDesc Retrieve Root5CA cert
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Retrieve Root5CA cert
+ retrieve
+
+
+
+
+ KErrNone
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-9
+//! @SYMTestCaseDesc Retrieve SymbianTestDSACA cert
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Retrieve SymbianTestDSACA cert
+ retrieve
+
+
+
+
+ KErrNone
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-10
+//! @SYMTestCaseDesc Retrieve SymbianTestRSACA cert
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Retrieve SymbianTestRSACA cert
+ retrieve
+
+
+
+
+ KErrNone
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-11
+//! @SYMTestCaseDesc Get applications for Root5CA
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Get applications for Root5CA
+ getapplications
+
+
+
+
+ KErrNone
+ 268452523
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-12
+//! @SYMTestCaseDesc Get the trust for Root5CA
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Get the trust for Root5CA
+ gettrusters
+
+
+
+
+ KErrNone
+ 1
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-13
+//! @SYMTestCaseDesc Get applications for SymbianTestDSACA
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Get applications for SymbianTestDSACA
+ getapplications
+
+
+
+
+ KErrNone
+ 268452523 268478646
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-14
+//! @SYMTestCaseDesc Get the trust for SymbianTestDSACA
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Get the trust for SymbianTestDSACA
+ gettrusters
+
+
+
+
+ KErrNone
+ 1
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-15
+//! @SYMTestCaseDesc Get applications for SymbianTestRSACA
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Get applications for SymbianTestRSACA
+ getapplications
+
+
+
+
+ KErrNone
+ 268452523 268478646
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-16
+//! @SYMTestCaseDesc Get the trust for SymbianTestRSACA
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Get the trust for SymbianTestRSACA
+ gettrusters
+
+
+
+
+ KErrNone
+ 1
+
+
+
+//! @file
+//! @SYMTestCaseID Sec-tcertstore-swicertstore2-17
+//! @SYMTestCaseDesc Deleting the unified cert store
+//! @SYMREQ REQ0000
+//! @SYMTestCasePriority High
+//! @SYMTestExpectedResults KErrNone
+
+ Deleting the unified cert store
+ delete
+
+
+ KErrNone
+
+