os/security/cryptoservices/certificateandkeymgmt/tcertstore/scripts/wri-swicertstore2.script
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/cryptoservices/certificateandkeymgmt/tcertstore/scripts/wri-swicertstore2.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,248 @@
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-swicertstore2.txt
1.21 +
1.22 +//
1.23 +
1.24 +// Test SWI cert store with non-certstore formatted
1.25 +
1.26 +// swicertstore in c:\ and the DLL can still access
1.27 +
1.28 +// the z:\ swicertstore
1.29 +
1.30 +//
1.31 +
1.32 +
1.33 +
1.34 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-1
1.35 +
1.36 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE2-1
1.37 +
1.38 +//! @file
1.39 +
1.40 +//! @SYMTestCaseDesc Copy the non-certstore formatted swicertstore to
1.41 +
1.42 +//! c:\Resource\Swicertstore\dat\; and open the SWI cert store
1.43 +
1.44 +//! @SYMREQ REQ0000
1.45 +
1.46 +//! @SYMTestCasePriority High
1.47 +
1.48 +//! @SYMTestExpectedResults KErrNone
1.49 +
1.50 +//! @SYMTestActions 1) Open the SWI cert store
1.51 +
1.52 +RUN_TEST_STEP -1 CTestHandler initswicertstore wri-swicertstore2.ini SEC-TCERTSTORE-WRI-SWICERTSTORE2-1-001
1.53 +
1.54 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-1
1.55 +
1.56 +
1.57 +
1.58 +
1.59 +
1.60 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-2
1.61 +
1.62 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE2-2
1.63 +
1.64 +//! @file
1.65 +
1.66 +//! @SYMTestCaseDesc Get the list of CA certificates
1.67 +
1.68 +//! @SYMREQ REQ0000
1.69 +
1.70 +//! @SYMTestCasePriority High
1.71 +
1.72 +//! @SYMTestExpectedResults KErrNone
1.73 +
1.74 +//! @SYMTestActions 1) Get the list of CA certificates
1.75 +
1.76 +RUN_TEST_STEP -1 CTestHandler listcert wri-swicertstore2.ini SEC-TCERTSTORE-WRI-SWICERTSTORE2-2-001
1.77 +
1.78 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-2
1.79 +
1.80 +
1.81 +
1.82 +
1.83 +
1.84 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-3
1.85 +
1.86 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE2-3
1.87 +
1.88 +//! @file
1.89 +
1.90 +//! @SYMTestCaseDesc Retrieve Root5CA cert
1.91 +
1.92 +//! @SYMREQ REQ0000
1.93 +
1.94 +//! @SYMTestCasePriority High
1.95 +
1.96 +//! @SYMTestExpectedResults KErrNone
1.97 +
1.98 +//! @SYMTestActions 1) Retrieve Root5CA cert
1.99 +
1.100 +RUN_TEST_STEP -1 CTestHandler retrieve wri-swicertstore2.ini SEC-TCERTSTORE-WRI-SWICERTSTORE2-3-001
1.101 +
1.102 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-3
1.103 +
1.104 +
1.105 +
1.106 +
1.107 +
1.108 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-4
1.109 +
1.110 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE2-4
1.111 +
1.112 +//! @file
1.113 +
1.114 +//! @SYMTestCaseDesc Get applications for Root5CA
1.115 +
1.116 +//! @SYMREQ REQ0000
1.117 +
1.118 +//! @SYMTestCasePriority High
1.119 +
1.120 +//! @SYMTestExpectedResults KErrNone
1.121 +
1.122 +//! @SYMTestActions 1) Get applications for Root5CA
1.123 +
1.124 +RUN_TEST_STEP -1 CTestHandler getapplications wri-swicertstore2.ini SEC-TCERTSTORE-WRI-SWICERTSTORE2-4-001
1.125 +
1.126 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-4
1.127 +
1.128 +
1.129 +
1.130 +
1.131 +
1.132 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-5
1.133 +
1.134 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE2-5
1.135 +
1.136 +//! @file
1.137 +
1.138 +//! @SYMTestCaseDesc Get the trust for SymbianTestDSACA
1.139 +
1.140 +//! @SYMREQ REQ0000
1.141 +
1.142 +//! @SYMTestCasePriority High
1.143 +
1.144 +//! @SYMTestExpectedResults KErrNone
1.145 +
1.146 +//! @SYMTestActions 1) Get the trust for SymbianTestDSACA
1.147 +
1.148 +RUN_TEST_STEP -1 CTestHandler gettrusters wri-swicertstore2.ini SEC-TCERTSTORE-WRI-SWICERTSTORE2-5-001
1.149 +
1.150 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-5
1.151 +
1.152 +
1.153 +
1.154 +
1.155 +
1.156 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-6
1.157 +
1.158 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE2-6
1.159 +
1.160 +//! @file
1.161 +
1.162 +//! @SYMTestCaseDesc Get the capabilities for SymbianTestDSACA
1.163 +
1.164 +//! @SYMREQ REQ0000
1.165 +
1.166 +//! @SYMTestCasePriority High
1.167 +
1.168 +//! @SYMTestExpectedResults KErrNone
1.169 +
1.170 +//! @SYMTestActions 1) Get the capabilities for SymbianTestDSACA
1.171 +
1.172 +RUN_TEST_STEP -1 CTestHandler getcapabilities wri-swicertstore2.ini SEC-TCERTSTORE-WRI-SWICERTSTORE2-6-001
1.173 +
1.174 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-6
1.175 +
1.176 +
1.177 +
1.178 +
1.179 +
1.180 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-7
1.181 +
1.182 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE2-7
1.183 +
1.184 +//! @file
1.185 +
1.186 +//! @SYMTestCaseDesc Get the mandatory flag for SymbianTestRSACA
1.187 +
1.188 +//! @SYMREQ REQ0000
1.189 +
1.190 +//! @SYMTestCasePriority High
1.191 +
1.192 +//! @SYMTestExpectedResults KErrNone
1.193 +
1.194 +//! @SYMTestActions 1) Get the mandatory flag for SymbianTestRSACA
1.195 +
1.196 +RUN_TEST_STEP -1 CTestHandler getmandatory wri-swicertstore2.ini SEC-TCERTSTORE-WRI-SWICERTSTORE2-7-001
1.197 +
1.198 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-7
1.199 +
1.200 +
1.201 +
1.202 +
1.203 +
1.204 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-8
1.205 +
1.206 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE2-8
1.207 +
1.208 +//! @file
1.209 +
1.210 +//! @SYMTestCaseDesc Retrieve TSecuritySymbianTestTCBRSACA cert
1.211 +
1.212 +//! @SYMREQ REQ0000
1.213 +
1.214 +//! @SYMTestCasePriority High
1.215 +
1.216 +//! @SYMTestExpectedResults KErrNone
1.217 +
1.218 +//! @SYMTestActions 1) Retrieve TSecuritySymbianTestTCBRSACA cert
1.219 +
1.220 +RUN_TEST_STEP !Error=-1 -1 CTestHandler retrieve wri-swicertstore2.ini SEC-TCERTSTORE-WRI-SWICERTSTORE2-8-001
1.221 +
1.222 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-8
1.223 +
1.224 +
1.225 +
1.226 +
1.227 +
1.228 +START_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-9
1.229 +
1.230 +//! @SYMTestCaseID SEC-TCERTSTORE-WRI-SWICERTSTORE2-9
1.231 +
1.232 +//! @file
1.233 +
1.234 +//! @SYMTestCaseDesc Deleting the SWI cert store
1.235 +
1.236 +//! @SYMREQ REQ0000
1.237 +
1.238 +//! @SYMTestCasePriority High
1.239 +
1.240 +//! @SYMTestExpectedResults KErrNone
1.241 +
1.242 +//! @SYMTestActions 1) Deleting the SWI cert store
1.243 +
1.244 +RUN_TEST_STEP -1 CTestHandler delete
1.245 +
1.246 +END_TESTCASE SEC-TCERTSTORE-WRI-SWICERTSTORE2-9
1.247 +
1.248 +
1.249 +
1.250 +
1.251 +