cryptoservices/certificateandkeymgmt/tcertstore/scripts/unifiedcertstore2-conf2a.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cryptoservices/certificateandkeymgmt/tcertstore/scripts/unifiedcertstore2-conf2a.txt Wed Jul 08 11:25:26 2009 +0100
@@ -0,0 +1,217 @@
+//5.1 Test cases for single file-based writable certificate store
+
+//5.1.1 Successfull addition, listing and retrieval of certificates (X.509)
+<action>
+ <actionname>No Test,Opening a CertificateAppInfoManager</actionname>
+ <actiontype>initappmanager</actiontype>
+ <actionbody></actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>No Test,Adding client A1</actionname>
+ <actiontype>addclient</actiontype>
+ <actionbody>
+ <name>A1</name>
+ <uid>1</uid>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>No Test,Adding client A2</actionname>
+ <actiontype>addclient</actiontype>
+ <actionbody>
+ <name>A2</name>
+ <uid>2</uid>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>No Test,Adding client A3</actionname>
+ <actiontype>addclient</actiontype>
+ <actionbody>
+ <name>A3</name>
+ <uid>3</uid>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>No Test,Adding client A4</actionname>
+ <actiontype>addclient</actiontype>
+ <actionbody>
+ <name>A4</name>
+ <uid>4</uid>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>No Test,Deleting the CertificateAppInfoManager</actionname>
+ <actiontype>deleteappmanager</actiontype>
+ <actionbody></actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>5.1.1.1,Opening a certificate store manager</actionname>
+ <actiontype>init</actiontype>
+ <actionbody>
+ <mode>write</mode>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>5.1.1.2,Add the certificate CAX1</actionname>
+ <actiontype>addcert</actiontype>
+ <actionbody>
+ <format>X509</format>
+ <label>CAX1</label>
+ <issuerkey></issuerkey>
+ <subjectkey></subjectkey>
+ <certstore>0</certstore>
+ <certfile>c:\unifiedcertstore2\CAX1.cer</certfile>
+ <certowner>ca</certowner>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>5.1.1.3,Add the certificate CAX2</actionname>
+ <actiontype>addcert</actiontype>
+ <actionbody>
+ <format>X509</format>
+ <label>CAX2</label>
+ <issuerkey></issuerkey>
+ <subjectkey></subjectkey>
+ <certstore>1</certstore>
+ <certfile>c:\unifiedcertstore2\CAX2.cer</certfile>
+ <certowner>ca</certowner>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>5.1.1.4,Add the certificate CAX3</actionname>
+ <actiontype>addcert</actiontype>
+ <actionbody>
+ <format>X509</format>
+ <label>CAX3</label>
+ <issuerkey></issuerkey>
+ <subjectkey></subjectkey>
+ <certstore>0</certstore>
+ <certfile>c:\unifiedcertstore2\CAX3.cer</certfile>
+ <certowner>ca</certowner>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>5.1.1.5,Get the list of certificates</actionname>
+ <actiontype>listcert</actiontype>
+ <actionbody>
+ <filter>
+ <ownertype>ca</ownertype>
+ </filter>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ <CCTCertInfo><label>CAX1</label></CCTCertInfo>
+ <CCTCertInfo><label>CAX3</label></CCTCertInfo>
+ <CCTCertInfo><label>CAX2</label></CCTCertInfo>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>5.1.1.5.1,Retrieve CAX1 cert</actionname>
+ <actiontype>retrieve</actiontype>
+ <actionbody>
+ <label>CAX1</label>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>5.1.1.6,Get the list of certificates, searching by Issuer DN</actionname>
+ <actiontype>listcert</actiontype>
+ <actionbody>
+ <filter>
+ <ownertype>ca</ownertype>
+ </filter>
+ <issuerdn>c:\unifiedcertstore2\CAX1.cer</issuerdn>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ <CCTCertInfo><label>CAX1</label></CCTCertInfo>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>No Test,Deleting the certificate CAX1</actionname>
+ <actiontype>deletecert</actiontype>
+ <actionbody>
+ <certtype>ca</certtype>
+ <label>CAX1</label>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>No Test,Deleting the certificate CAX2</actionname>
+ <actiontype>deletecert</actiontype>
+ <actionbody>
+ <certtype>ca</certtype>
+ <label>CAX2</label>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>No Test,Deleting the certificate CAX3</actionname>
+ <actiontype>deletecert</actiontype>
+ <actionbody>
+ <certtype>ca</certtype>
+ <label>CAX3</label>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>5.1.1.9,Deleting the certificate store manager</actionname>
+ <actiontype>delete</actiontype>
+ <actionbody></actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>