cryptoservices/certificateandkeymgmt/tcertstore/scripts/wri-swicertstore3.txt
changeset 0 2c201484c85f
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 // wri-swicertstore3.txt
       
     2 //
       
     3 // Test access to SWI cert store through unified cert store
       
     4 // This is run in configuration5.bat. This is run with only 
       
     5 // the z:\ and c:\ swi cert store present
       
     6 
       
     7 //! @file
       
     8 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore3-1
       
     9 //! @SYMTestCaseDesc Open a writable unified cert store
       
    10 //! @SYMREQ REQ0000
       
    11 //! @SYMTestCasePriority High
       
    12 //! @SYMTestExpectedResults KErrNone
       
    13 <action>
       
    14 	<actionname>Open a writable unified cert store</actionname>
       
    15 	<actiontype>init</actiontype>
       
    16 	<actionbody>
       
    17 		<mode>write</mode>
       
    18 	</actionbody>
       
    19 	<actionresult>
       
    20 		<return>KErrNone</return>
       
    21 	</actionresult>
       
    22 </action>
       
    23 
       
    24 //! @file
       
    25 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore3-2
       
    26 //! @SYMTestCaseDesc Get number of writable cert stores
       
    27 //! @SYMREQ REQ0000
       
    28 //! @SYMTestCasePriority High
       
    29 //! @SYMTestExpectedResults KErrNone
       
    30 <action>
       
    31 	<actionname>Get number of writable cert stores</actionname>
       
    32 	<actiontype>CUnifiedCertStore WritableCertStoreCount</actiontype>
       
    33 	<actionbody>
       
    34 		<storeindex>0</storeindex>
       
    35 	</actionbody>
       
    36 	<actionresult>
       
    37 		<return>KErrNone</return>
       
    38 		<numberofstores>0</numberofstores>
       
    39 	</actionresult>
       
    40 </action>
       
    41 
       
    42 //! @file
       
    43 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore3-3
       
    44 //! @SYMTestCaseDesc Get number of read-only cert stores
       
    45 //! @SYMREQ REQ0000
       
    46 //! @SYMTestCasePriority High
       
    47 //! @SYMTestExpectedResults KErrNone
       
    48 <action>
       
    49 	<actionname>Get number of read-only cert stores</actionname>
       
    50 	<actiontype>CUnifiedCertStore ReadOnlyCertStoreCount</actiontype>
       
    51 	<actionbody>
       
    52 		<storeindex>0</storeindex>
       
    53 	</actionbody>
       
    54 	<actionresult>
       
    55 		<return>KErrNone</return>
       
    56 		<numberofstores>1</numberofstores>
       
    57 	</actionresult>
       
    58 </action>
       
    59 
       
    60 //! @file
       
    61 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore3-4
       
    62 //! @SYMTestCaseDesc Retrieving the store informations
       
    63 //! @SYMREQ REQ0000
       
    64 //! @SYMTestCasePriority High
       
    65 //! @SYMTestExpectedResults KErrNone
       
    66 <action>
       
    67 	<actionname>Retrieving the store informations</actionname>
       
    68 	<actiontype>CCTTokenTypeInfo Attributes</actiontype>
       
    69 	<actionbody></actionbody>
       
    70 	<actionresult>
       
    71 		<return>KErrNone</return>
       
    72 	</actionresult>
       
    73 </action>
       
    74 
       
    75 //! @file
       
    76 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore3-5
       
    77 //! @SYMTestCaseDesc Get the list of CA certificates
       
    78 //! @SYMREQ REQ0000
       
    79 //! @SYMTestCasePriority High
       
    80 //! @SYMTestExpectedResults KErrNone
       
    81 <action>
       
    82 	<actionname>Get the list of CA certificates</actionname>
       
    83 	<actiontype>listcert</actiontype>
       
    84 	<actionbody>
       
    85 		<filter>
       
    86 			<ownertype>ca</ownertype>
       
    87 		</filter>
       
    88 	</actionbody>
       
    89 	<actionresult>
       
    90 		<return>KErrNone</return>
       
    91 		<CCTCertInfo><label>TSecuritySymbianTestTCBRSACA</label></CCTCertInfo>
       
    92 		<CCTCertInfo><label>Root5CA</label><readonly>True</readonly></CCTCertInfo>
       
    93 		<CCTCertInfo><label>SymbianTestDSACA</label><readonly>True</readonly></CCTCertInfo>
       
    94 		<CCTCertInfo><label>SymbianTestRSACA</label><readonly>True</readonly></CCTCertInfo>
       
    95 	</actionresult>
       
    96 </action>
       
    97 
       
    98 //! @file
       
    99 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore3-6
       
   100 //! @SYMTestCaseDesc Get the list of CA certificates filtered by label 'Root5CA'
       
   101 //! @SYMREQ REQ0000
       
   102 //! @SYMTestCasePriority High
       
   103 //! @SYMTestExpectedResults KErrNone
       
   104 <action>
       
   105 	<actionname>Get the list of CA certificates filtered by label 'Root5CA'</actionname>
       
   106 	<actiontype>listcert</actiontype>
       
   107 	<actionbody>
       
   108 		<filter>
       
   109 			<ownertype>ca</ownertype>
       
   110 			<label>Root5CA</label>
       
   111 		</filter>
       
   112 	</actionbody>
       
   113 	<actionresult>
       
   114 		<return>KErrNone</return>
       
   115 		<CCTCertInfo><label>Root5CA</label><readonly>True</readonly></CCTCertInfo>
       
   116 	</actionresult>
       
   117 </action>
       
   118 
       
   119 //! @file
       
   120 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore3-7
       
   121 //! @SYMTestCaseDesc Get the list of CA certificates filtered by label 'TSecuritySymbianTestTCBRSACA'
       
   122 //! @SYMREQ REQ0000
       
   123 //! @SYMTestCasePriority High
       
   124 //! @SYMTestExpectedResults KErrNone
       
   125 <action>
       
   126 	<actionname>Get the list of CA certificates filtered by label 'TSecuritySymbianTestTCBRSACA'</actionname>
       
   127 	<actiontype>listcert</actiontype>
       
   128 	<actionbody>
       
   129 		<filter>
       
   130 			<ownertype>ca</ownertype>
       
   131 			<label>TSecuritySymbianTestTCBRSACA</label>
       
   132 		</filter>
       
   133 	</actionbody>
       
   134 	<actionresult>
       
   135 		<return>KErrNone</return>
       
   136 		<CCTCertInfo><label>TSecuritySymbianTestTCBRSACA</label></CCTCertInfo>
       
   137 	</actionresult>
       
   138 </action>
       
   139 
       
   140 //! @file
       
   141 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore3-8
       
   142 //! @SYMTestCaseDesc Get the list of user certificates
       
   143 //! @SYMREQ REQ0000
       
   144 //! @SYMTestCasePriority High
       
   145 //! @SYMTestExpectedResults KErrNone
       
   146 <action>
       
   147 	<actionname>Get the list of user certificates</actionname>
       
   148 	<actiontype>listcert</actiontype>
       
   149 	<actionbody>
       
   150 		<filter>
       
   151 			<ownertype>user</ownertype>
       
   152 		</filter>
       
   153 	</actionbody>
       
   154 	<actionresult>
       
   155 		<return>KErrNone</return>
       
   156 	</actionresult>
       
   157 </action>
       
   158 
       
   159 
       
   160 //! @file
       
   161 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore3-9
       
   162 //! @SYMTestCaseDesc Get the list of user certificates filtered by label CertLabel
       
   163 //! @SYMREQ REQ0000
       
   164 //! @SYMTestCasePriority High
       
   165 //! @SYMTestExpectedResults KErrNone
       
   166 <action>
       
   167 	<actionname>Get the list of user certificates filtered by label CertLabel</actionname>
       
   168 	<actiontype>listcert</actiontype>
       
   169 	<actionbody>
       
   170 		<filter>
       
   171 			<ownertype>user</ownertype>
       
   172 			<label>CertLabel</label>
       
   173 		</filter>
       
   174 	</actionbody>
       
   175 	<actionresult>
       
   176 		<return>KErrNone</return>
       
   177 	</actionresult>
       
   178 </action>
       
   179 
       
   180 
       
   181 //! @file
       
   182 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore3-10
       
   183 //! @SYMTestCaseDesc Retrieve SymbianTestRSACA cert
       
   184 //! @SYMREQ REQ0000
       
   185 //! @SYMTestCasePriority High
       
   186 //! @SYMTestExpectedResults KErrNone
       
   187 <action>
       
   188 	<actionname>Retrieve SymbianTestRSACA cert</actionname>
       
   189 	<actiontype>retrieve</actiontype>
       
   190 	<actionbody>
       
   191 		<label>SymbianTestRSACA</label>
       
   192 	</actionbody>
       
   193 	<actionresult>
       
   194 		<return>KErrNone</return>
       
   195 	</actionresult>
       
   196 </action>
       
   197 
       
   198 //! @file
       
   199 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore3-11
       
   200 //! @SYMTestCaseDesc Retrieve TSecuritySymbianTestTCBRSACA cert
       
   201 //! @SYMREQ REQ0000
       
   202 //! @SYMTestCasePriority High
       
   203 //! @SYMTestExpectedResults KErrNone
       
   204 <action>
       
   205 	<actionname>Retrieve TSecuritySymbianTestTCBRSACA cert</actionname>
       
   206 	<actiontype>retrieve</actiontype>
       
   207 	<actionbody>
       
   208 		<label>TSecuritySymbianTestTCBRSACA</label>
       
   209 	</actionbody>
       
   210 	<actionresult>
       
   211 		<return>KErrNone</return>
       
   212 	</actionresult>
       
   213 </action>
       
   214 
       
   215 //! @file
       
   216 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore3-12
       
   217 //! @SYMTestCaseDesc Get applications for SymbianTestRSACA
       
   218 //! @SYMREQ REQ0000
       
   219 //! @SYMTestCasePriority High
       
   220 //! @SYMTestExpectedResults KErrNone
       
   221 <action>
       
   222 	<actionname>Get applications for SymbianTestRSACA</actionname>
       
   223 	<actiontype>getapplications</actiontype>
       
   224 	<actionbody>
       
   225 		<label>SymbianTestRSACA</label>
       
   226 	</actionbody>
       
   227 	<actionresult>
       
   228 		<return>KErrNone</return>
       
   229 		<uid>268452523 268478646</uid>
       
   230 	</actionresult>
       
   231 </action>
       
   232 
       
   233 //! @file
       
   234 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore3-13
       
   235 //! @SYMTestCaseDesc Get applications for TSecuritySymbianTestTCBRSACA
       
   236 //! @SYMREQ REQ0000
       
   237 //! @SYMTestCasePriority High
       
   238 //! @SYMTestExpectedResults KErrNone
       
   239 <action>
       
   240 	<actionname>Get applications for TSecuritySymbianTestTCBRSACA</actionname>
       
   241 	<actiontype>getapplications</actiontype>
       
   242 	<actionbody>
       
   243 		<label>TSecuritySymbianTestTCBRSACA</label>
       
   244 	</actionbody>
       
   245 	<actionresult>
       
   246 		<return>KErrNone</return>
       
   247 		<uid>268452523 268478646</uid>
       
   248 	</actionresult>
       
   249 </action>
       
   250 
       
   251 //! @file
       
   252 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore3-14
       
   253 //! @SYMTestCaseDesc Get the trust for SymbianTestRSACA
       
   254 //! @SYMREQ REQ0000
       
   255 //! @SYMTestCasePriority High
       
   256 //! @SYMTestExpectedResults KErrNone
       
   257 <action>
       
   258 	<actionname>Get the trust for SymbianTestRSACA</actionname>
       
   259 	<actiontype>gettrusters</actiontype>
       
   260 	<actionbody>
       
   261 		<label>SymbianTestRSACA</label>
       
   262 	</actionbody>
       
   263 	<actionresult>
       
   264 		<return>KErrNone</return>
       
   265 		<trust>1</trust>
       
   266 	</actionresult>
       
   267 </action>
       
   268 
       
   269 //! @file
       
   270 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore3-15
       
   271 //! @SYMTestCaseDesc Get the trust for TSecuritySymbianTestTCBRSACA
       
   272 //! @SYMREQ REQ0000
       
   273 //! @SYMTestCasePriority High
       
   274 //! @SYMTestExpectedResults KErrNone
       
   275 <action>
       
   276 	<actionname>Get the trust for TSecuritySymbianTestTCBRSACA</actionname>
       
   277 	<actiontype>gettrusters</actiontype>
       
   278 	<actionbody>
       
   279 		<label>TSecuritySymbianTestTCBRSACA</label>
       
   280 	</actionbody>
       
   281 	<actionresult>
       
   282 		<return>KErrNone</return>
       
   283 		<trust>1</trust>
       
   284 	</actionresult>
       
   285 </action>
       
   286 
       
   287 //! @file
       
   288 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore3-16
       
   289 //! @SYMTestCaseDesc Deleting the unified cert store
       
   290 //! @SYMREQ REQ0000
       
   291 //! @SYMTestCasePriority High
       
   292 //! @SYMTestExpectedResults KErrNone
       
   293 <action>
       
   294 	<actionname>Deleting the unified cert store</actionname>
       
   295 	<actiontype>delete</actiontype>
       
   296 	<actionbody></actionbody>
       
   297 	<actionresult>
       
   298 		<return>KErrNone</return>
       
   299 	</actionresult>
       
   300 </action>