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