os/security/cryptoservices/certificateandkeymgmt/tcertstore/scripts/wri-swicertstore1.script
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/cryptoservices/certificateandkeymgmt/tcertstore/scripts/wri-swicertstore1.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,364 @@
1.4 +//
1.5 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of the License "Eclipse Public License v1.0"
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +// wri-swicertstore1.txt
1.21 +
1.22 +//
1.23 +
1.24 +// Test direct access to SWI cert store
1.25 +
1.26 +//
1.27 +
1.28 +
1.29 +
1.30 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-1-0002
1.31 +
1.32 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE1-1-0002
1.33 +
1.34 +//! @file
1.35 +
1.36 +//! @SYMTestCaseDesc Copy the swicertstore to
1.37 +
1.38 +//! c:\Resource\Swicertstore\dat\; and open the SWI cert store
1.39 +
1.40 +//! @SYMREQ REQ0000
1.41 +
1.42 +//! @SYMTestCasePriority High
1.43 +
1.44 +//! @SYMTestExpectedResults KErrNone
1.45 +
1.46 +//! @SYMTestActions 1) Open the SWI cert store
1.47 +
1.48 +RUN_TEST_STEP -1 CTestHandler initswicertstore wri-swicertstore1.ini SEC-TCERTSTORE-WRI-SWICERTSTORE1-1-001
1.49 +
1.50 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-1-0002
1.51 +
1.52 +
1.53 +
1.54 +
1.55 +
1.56 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-2-0002
1.57 +
1.58 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE1-2-0002
1.59 +
1.60 +//! @file
1.61 +
1.62 +//! @SYMTestCaseDesc Get the list of CA certificates
1.63 +
1.64 +//! @SYMREQ REQ0000
1.65 +
1.66 +//! @SYMTestCasePriority High
1.67 +
1.68 +//! @SYMTestExpectedResults KErrNone
1.69 +
1.70 +//! @SYMTestActions 1) Get the list of CA certificates
1.71 +
1.72 +RUN_TEST_STEP -1 CTestHandler listcert wri-swicertstore1.ini SEC-TCERTSTORE-WRI-SWICERTSTORE1-2-001
1.73 +
1.74 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-2-0002
1.75 +
1.76 +
1.77 +
1.78 +
1.79 +
1.80 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-3-0002
1.81 +
1.82 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE1-3-0002
1.83 +
1.84 +//! @file
1.85 +
1.86 +//! @SYMTestCaseDesc Retrieve Root5CA cert
1.87 +
1.88 +//! @SYMREQ REQ0000
1.89 +
1.90 +//! @SYMTestCasePriority High
1.91 +
1.92 +//! @SYMTestExpectedResults KErrNone
1.93 +
1.94 +//! @SYMTestActions 1) Retrieve Root5CA cert
1.95 +
1.96 +RUN_TEST_STEP -1 CTestHandler retrieve wri-swicertstore1.ini SEC-TCERTSTORE-WRI-SWICERTSTORE1-3-001
1.97 +
1.98 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-3-0002
1.99 +
1.100 +
1.101 +
1.102 +
1.103 +
1.104 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-4-0002
1.105 +
1.106 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE1-4-0002
1.107 +
1.108 +//! @file
1.109 +
1.110 +//! @SYMTestCaseDesc Retrieve TSecuritySymbianTestTCBRSACA cert
1.111 +
1.112 +//! @SYMREQ REQ0000
1.113 +
1.114 +//! @SYMTestCasePriority High
1.115 +
1.116 +//! @SYMTestExpectedResults KErrNone
1.117 +
1.118 +//! @SYMTestActions 1) Retrieve TSecuritySymbianTestTCBRSACA cert
1.119 +
1.120 +RUN_TEST_STEP -1 CTestHandler retrieve wri-swicertstore1.ini SEC-TCERTSTORE-WRI-SWICERTSTORE1-4-001
1.121 +
1.122 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-4-0002
1.123 +
1.124 +
1.125 +
1.126 +
1.127 +
1.128 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-5-0002
1.129 +
1.130 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE1-5-0002
1.131 +
1.132 +//! @file
1.133 +
1.134 +//! @SYMTestCaseDesc Get applications for Root5CA
1.135 +
1.136 +//! @SYMREQ REQ0000
1.137 +
1.138 +//! @SYMTestCasePriority High
1.139 +
1.140 +//! @SYMTestExpectedResults KErrNone
1.141 +
1.142 +//! @SYMTestActions 1) Get applications for Root5CA
1.143 +
1.144 +RUN_TEST_STEP -1 CTestHandler getapplications wri-swicertstore1.ini SEC-TCERTSTORE-WRI-SWICERTSTORE1-5-001
1.145 +
1.146 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-5-0002
1.147 +
1.148 +
1.149 +
1.150 +
1.151 +
1.152 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-6-0002
1.153 +
1.154 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE1-6-0002
1.155 +
1.156 +//! @file
1.157 +
1.158 +//! @SYMTestCaseDesc Get applications for TSecuritySymbianTestTCBRSACA
1.159 +
1.160 +//! @SYMREQ REQ0000
1.161 +
1.162 +//! @SYMTestCasePriority High
1.163 +
1.164 +//! @SYMTestExpectedResults KErrNone
1.165 +
1.166 +//! @SYMTestActions 1) Get applications for TSecuritySymbianTestTCBRSACA
1.167 +
1.168 +RUN_TEST_STEP -1 CTestHandler getapplications wri-swicertstore1.ini SEC-TCERTSTORE-WRI-SWICERTSTORE1-6-001
1.169 +
1.170 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-6-0002
1.171 +
1.172 +
1.173 +
1.174 +
1.175 +
1.176 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-7-0002
1.177 +
1.178 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE1-7-0002
1.179 +
1.180 +//! @file
1.181 +
1.182 +//! @SYMTestCaseDesc Get the trust for SymbianTestDSACA
1.183 +
1.184 +//! @SYMREQ REQ0000
1.185 +
1.186 +//! @SYMTestCasePriority High
1.187 +
1.188 +//! @SYMTestExpectedResults KErrNone
1.189 +
1.190 +//! @SYMTestActions 1) Get the trust for SymbianTestDSACA
1.191 +
1.192 +RUN_TEST_STEP -1 CTestHandler gettrusters wri-swicertstore1.ini SEC-TCERTSTORE-WRI-SWICERTSTORE1-7-001
1.193 +
1.194 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-7-0002
1.195 +
1.196 +
1.197 +
1.198 +
1.199 +
1.200 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-8-0002
1.201 +
1.202 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE1-8-0002
1.203 +
1.204 +//! @file
1.205 +
1.206 +//! @SYMTestCaseDesc Get the trust for TSecuritySymbianTestTCBRSACA
1.207 +
1.208 +//! @SYMREQ REQ0000
1.209 +
1.210 +//! @SYMTestCasePriority High
1.211 +
1.212 +//! @SYMTestExpectedResults KErrNone
1.213 +
1.214 +//! @SYMTestActions 1) Get the trust for TSecuritySymbianTestTCBRSACA
1.215 +
1.216 +RUN_TEST_STEP -1 CTestHandler gettrusters wri-swicertstore1.ini SEC-TCERTSTORE-WRI-SWICERTSTORE1-8-001
1.217 +
1.218 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-8-0002
1.219 +
1.220 +
1.221 +
1.222 +
1.223 +
1.224 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-9-0002
1.225 +
1.226 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE1-9-0002
1.227 +
1.228 +//! @file
1.229 +
1.230 +//! @SYMTestCaseDesc Get the capabilities for SymbianTestDSACA
1.231 +
1.232 +//! @SYMREQ REQ0000
1.233 +
1.234 +//! @SYMTestCasePriority High
1.235 +
1.236 +//! @SYMTestExpectedResults KErrNone
1.237 +
1.238 +//! @SYMTestActions 1) Get the capabilities for SymbianTestDSACA
1.239 +
1.240 +RUN_TEST_STEP -1 CTestHandler getcapabilities wri-swicertstore1.ini SEC-TCERTSTORE-WRI-SWICERTSTORE1-9-001
1.241 +
1.242 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-9-0002
1.243 +
1.244 +
1.245 +
1.246 +
1.247 +
1.248 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-10-0002
1.249 +
1.250 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE1-10-0002
1.251 +
1.252 +//! @file
1.253 +
1.254 +//! @SYMTestCaseDesc Get the capabilities for TSecuritySymbianTestTCBRSACA
1.255 +
1.256 +//! @SYMREQ REQ0000
1.257 +
1.258 +//! @SYMTestCasePriority High
1.259 +
1.260 +//! @SYMTestExpectedResults KErrNone
1.261 +
1.262 +//! @SYMTestActions 1) Get the capabilities for TSecuritySymbianTestTCBRSACA
1.263 +
1.264 +RUN_TEST_STEP -1 CTestHandler getcapabilities wri-swicertstore1.ini SEC-TCERTSTORE-WRI-SWICERTSTORE1-10-001
1.265 +
1.266 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-10-0002
1.267 +
1.268 +
1.269 +
1.270 +
1.271 +
1.272 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-11-0002
1.273 +
1.274 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE1-11-0002
1.275 +
1.276 +//! @file
1.277 +
1.278 +//! @SYMTestCaseDesc Get the mandatory flag for SymbianTestRSACA
1.279 +
1.280 +//! @SYMREQ REQ0000
1.281 +
1.282 +//! @SYMTestCasePriority High
1.283 +
1.284 +//! @SYMTestExpectedResults KErrNone
1.285 +
1.286 +//! @SYMTestActions 1) Get the mandatory flag for SymbianTestRSACA
1.287 +
1.288 +RUN_TEST_STEP -1 CTestHandler getmandatory wri-swicertstore1.ini SEC-TCERTSTORE-WRI-SWICERTSTORE1-11-001
1.289 +
1.290 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-11-0002
1.291 +
1.292 +
1.293 +
1.294 +
1.295 +
1.296 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-12-0002
1.297 +
1.298 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE1-12-0002
1.299 +
1.300 +//! @file
1.301 +
1.302 +//! @SYMTestCaseDesc Get the mandatory flag for TSecuritySymbianTestTCBRSACA
1.303 +
1.304 +//! @SYMREQ REQ0000
1.305 +
1.306 +//! @SYMTestCasePriority High
1.307 +
1.308 +//! @SYMTestExpectedResults KErrNone
1.309 +
1.310 +//! @SYMTestActions 1) Get the mandatory flag for TSecuritySymbianTestTCBRSACA
1.311 +
1.312 +RUN_TEST_STEP -1 CTestHandler getmandatory wri-swicertstore1.ini SEC-TCERTSTORE-WRI-SWICERTSTORE1-12-001
1.313 +
1.314 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-12-0002
1.315 +
1.316 +
1.317 +
1.318 +
1.319 +
1.320 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-13-0002
1.321 +
1.322 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE1-13-0002
1.323 +
1.324 +//! @file
1.325 +
1.326 +//! @SYMTestCaseDesc Get TSecuritySymbianTestTCBRSACA by handle
1.327 +
1.328 +//! @SYMREQ REQ0000
1.329 +
1.330 +//! @SYMTestCasePriority High
1.331 +
1.332 +//! @SYMTestExpectedResults KErrNone
1.333 +
1.334 +//! @SYMTestActions 1) Getting the TSecuritySymbianTestTCBRSACA by handle
1.335 +
1.336 +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_GetCert wri-swicertstore1.ini SEC-TCERTSTORE-WRI-SWICERTSTORE1-13-001
1.337 +
1.338 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-13-0002
1.339 +
1.340 +
1.341 +
1.342 +
1.343 +
1.344 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-14-0002
1.345 +
1.346 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE1-14-0002
1.347 +
1.348 +//! @file
1.349 +
1.350 +//! @SYMTestCaseDesc Deleting the SWI cert store
1.351 +
1.352 +//! @SYMREQ REQ0000
1.353 +
1.354 +//! @SYMTestCasePriority High
1.355 +
1.356 +//! @SYMTestExpectedResults KErrNone
1.357 +
1.358 +//! @SYMTestActions 1) Deleting the SWI cert store
1.359 +
1.360 +RUN_TEST_STEP -1 CTestHandler delete
1.361 +
1.362 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE1-14-0002
1.363 +
1.364 +
1.365 +
1.366 +
1.367 +