os/security/cryptoservices/certificateandkeymgmt/tcertstore/scripts/t_certstore.script
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/cryptoservices/certificateandkeymgmt/tcertstore/scripts/t_certstore.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,304 @@
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 +START_TESTCASE SEC-CERTMAN-T_CERTSTORE-0001
1.21 +
1.22 +//! @SYMTestCaseID SEC-CERTMAN-T_CERTSTORE-0001
1.23 +
1.24 +//! @SYMTestCaseDesc
1.25 +
1.26 +//! @SYMTestActions 1) 1.1.1. Opening a certificate store manager
1.27 +
1.28 +//! 2) 1.1.2. Deleting the certificate store manager
1.29 +
1.30 +//! 3) 1.2.1. Opening a certificate store manager
1.31 +
1.32 +//! 4) 1.2.2. Trying to open another certificate store manager
1.33 +
1.34 +//! 5) 1.2.3. Deleting the certificate store manager
1.35 +
1.36 +//! 6) 1.2.4. Open a certificate store manager
1.37 +
1.38 +//! 7) 1.2.5. Deleting the certificate store manager
1.39 +
1.40 +//! 8) 2.1.1. Initializing the manager
1.41 +
1.42 +//! 9) 2.1.2. Adding a client
1.43 +
1.44 +//! 10) 2.1.3. Retrieving the clients
1.45 +
1.46 +//! 11) 2.1.4. Deleting the client
1.47 +
1.48 +//! 12) 2.1.5. Deleting the manager
1.49 +
1.50 +//! 13) 2.2.1. Initializing the manager
1.51 +
1.52 +//! 14) 2.2.2. Adding a client
1.53 +
1.54 +//! 15) 2.2.3. Deleting the manager
1.55 +
1.56 +//! 16) 2.2.4. Initializing the manager
1.57 +
1.58 +//! 17) 2.2.5. Retrieving the clients
1.59 +
1.60 +//! 18) 2.2.6. Deleting the client
1.61 +
1.62 +//! 19) 2.2.7. Deleting the manager
1.63 +
1.64 +//! 20) 2.3.1. Initializing the manager
1.65 +
1.66 +//! 21) 2.3.2. Adding a client
1.67 +
1.68 +//! 22) 2.3.3. Adding a client
1.69 +
1.70 +//! 23) 2.3.4. Retrieving the clients
1.71 +
1.72 +//! 24) 2.3.5. Deleting one of the client
1.73 +
1.74 +//! 25) 2.3.6. Retrieving the clients
1.75 +
1.76 +//! 26) 2.3.7. Deleting one of the client
1.77 +
1.78 +//! 27) 2.3.8. Retrieving the clients
1.79 +
1.80 +//! 28) 2.3.9. Deleting the manager
1.81 +
1.82 +//! 29) 2.4.1. Initializing the manager
1.83 +
1.84 +//! 30) 2.4.2. Deleting a client that doesn't exist
1.85 +
1.86 +//! 31) 2.4.3. Deleting the manager
1.87 +
1.88 +//! 32) 3.1.1. Initialize the manager
1.89 +
1.90 +//! 33) 3.1.2. Add the certificate
1.91 +
1.92 +//! 34) 3.1.3. Get the list of certificates
1.93 +
1.94 +//! 35) 3.1.4. Deleting the certificate
1.95 +
1.96 +//! 36) 3.1.5. Deleting the manager
1.97 +
1.98 +//! 37) 4.1.1. Initializing the manager
1.99 +
1.100 +//! 38) 4.1.2. Add a certificate
1.101 +
1.102 +//! 39) 4.1.3. Setting the trusters
1.103 +
1.104 +//! 40) 4.1.4. Getting the trusters
1.105 +
1.106 +//! 41) 4.1.5. Deeleting the certificate
1.107 +
1.108 +//! 42) 4.1.6. Deleting the manager
1.109 +
1.110 +//! 43) 4.2.1.
1.111 +
1.112 +//! 44) 4.2.2.
1.113 +
1.114 +//! 45) 4.2.3
1.115 +
1.116 +//! 46) 4.2.4.
1.117 +
1.118 +//! 47) 4.2.5.
1.119 +
1.120 +//! 48) 4.2.6.
1.121 +
1.122 +//! 49) 4.2.7.
1.123 +
1.124 +//! 50) 4.2.8. Deleting the manager
1.125 +
1.126 +//! 51) 5.1.1. Initialize the manager
1.127 +
1.128 +//! 52) 5.1.2. Add the certificate
1.129 +
1.130 +//! 53) 5.1.3. Get the list of certificates
1.131 +
1.132 +//! 54) 5.1.4. Get the list of certificates
1.133 +
1.134 +//! 55) 5.1.5. Deleting the certificate
1.135 +
1.136 +//! 56) 5.1.6. Deleting the manager
1.137 +
1.138 +//! 57) 5.2.1. Initialize the manager
1.139 +
1.140 +//! 58) 5.2.2. Add the certificate
1.141 +
1.142 +//! 59) 5.2.3
1.143 +
1.144 +//! 60) 5.2.4. Get the list of certificates
1.145 +
1.146 +//! 61) 5.2.5. Get the list of certificates
1.147 +
1.148 +//! 62) 5.2.6. Deleting the certificate
1.149 +
1.150 +//! 63) 5.2.7. Deleting the manager
1.151 +
1.152 +//! 64) x.1.1. Initialize the manager
1.153 +
1.154 +//! 65)
1.155 +
1.156 +//! 66)
1.157 +
1.158 +//! 67)
1.159 +
1.160 +//! 68)
1.161 +
1.162 +//! 69) x.2.6. Deleting the manager
1.163 +
1.164 +RUN_TEST_STEP -1 CTestHandler init
1.165 +
1.166 +RUN_TEST_STEP -1 CTestHandler delete
1.167 +
1.168 +RUN_TEST_STEP -1 CTestHandler init
1.169 +
1.170 +RUN_TEST_STEP !Error=-14 -1 CTestHandler init
1.171 +
1.172 +RUN_TEST_STEP -1 CTestHandler delete
1.173 +
1.174 +RUN_TEST_STEP -1 CTestHandler init
1.175 +
1.176 +RUN_TEST_STEP -1 CTestHandler delete
1.177 +
1.178 +RUN_TEST_STEP -1 CTestHandler init
1.179 +
1.180 +RUN_TEST_STEP -1 CTestHandler addclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-009
1.181 +
1.182 +RUN_TEST_STEP -1 CTestHandler getclients t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-010
1.183 +
1.184 +RUN_TEST_STEP -1 CTestHandler removeclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-011
1.185 +
1.186 +RUN_TEST_STEP -1 CTestHandler delete
1.187 +
1.188 +RUN_TEST_STEP -1 CTestHandler init
1.189 +
1.190 +RUN_TEST_STEP -1 CTestHandler addclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-014
1.191 +
1.192 +RUN_TEST_STEP -1 CTestHandler delete
1.193 +
1.194 +RUN_TEST_STEP -1 CTestHandler init
1.195 +
1.196 +RUN_TEST_STEP -1 CTestHandler getclients t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-017
1.197 +
1.198 +RUN_TEST_STEP -1 CTestHandler removeclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-018
1.199 +
1.200 +RUN_TEST_STEP -1 CTestHandler delete
1.201 +
1.202 +RUN_TEST_STEP -1 CTestHandler init
1.203 +
1.204 +RUN_TEST_STEP -1 CTestHandler addclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-021
1.205 +
1.206 +RUN_TEST_STEP -1 CTestHandler addclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-022
1.207 +
1.208 +RUN_TEST_STEP -1 CTestHandler getclients t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-023
1.209 +
1.210 +RUN_TEST_STEP -1 CTestHandler removeclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-024
1.211 +
1.212 +RUN_TEST_STEP -1 CTestHandler getclients t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-025
1.213 +
1.214 +RUN_TEST_STEP -1 CTestHandler removeclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-026
1.215 +
1.216 +RUN_TEST_STEP -1 CTestHandler getclients t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-027
1.217 +
1.218 +RUN_TEST_STEP -1 CTestHandler delete
1.219 +
1.220 +RUN_TEST_STEP -1 CTestHandler init
1.221 +
1.222 +RUN_TEST_STEP !Error=-1 -1 CTestHandler removeclient t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-030
1.223 +
1.224 +RUN_TEST_STEP -1 CTestHandler delete
1.225 +
1.226 +RUN_TEST_STEP -1 CTestHandler init
1.227 +
1.228 +RUN_TEST_STEP -1 CTestHandler addcert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-033
1.229 +
1.230 +RUN_TEST_STEP -1 CTestHandler loadcacert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-034
1.231 +
1.232 +RUN_TEST_STEP -1 CTestHandler deletecert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-035
1.233 +
1.234 +RUN_TEST_STEP -1 CTestHandler delete
1.235 +
1.236 +RUN_TEST_STEP -1 CTestHandler init
1.237 +
1.238 +RUN_TEST_STEP -1 CTestHandler addcert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-038
1.239 +
1.240 +RUN_TEST_STEP -1 CTestHandler settrusters t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-039
1.241 +
1.242 +RUN_TEST_STEP -1 CTestHandler gettrusters t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-040
1.243 +
1.244 +RUN_TEST_STEP -1 CTestHandler deletecert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-041
1.245 +
1.246 +RUN_TEST_STEP -1 CTestHandler delete
1.247 +
1.248 +RUN_TEST_STEP -1 CTestHandler init
1.249 +
1.250 +RUN_TEST_STEP -1 CTestHandler addcert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-044
1.251 +
1.252 +RUN_TEST_STEP -1 CTestHandler settrusters t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-045
1.253 +
1.254 +RUN_TEST_STEP -1 CTestHandler delete
1.255 +
1.256 +RUN_TEST_STEP -1 CTestHandler init
1.257 +
1.258 +RUN_TEST_STEP -1 CTestHandler gettrusters t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-048
1.259 +
1.260 +RUN_TEST_STEP -1 CTestHandler deletecert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-049
1.261 +
1.262 +RUN_TEST_STEP -1 CTestHandler delete
1.263 +
1.264 +RUN_TEST_STEP -1 CTestHandler init
1.265 +
1.266 +RUN_TEST_STEP -1 CTestHandler addcert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-052
1.267 +
1.268 +RUN_TEST_STEP -1 CTestHandler loadcacert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-053
1.269 +
1.270 +RUN_TEST_STEP -1 CTestHandler loadcacert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-054
1.271 +
1.272 +RUN_TEST_STEP -1 CTestHandler deletecert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-055
1.273 +
1.274 +RUN_TEST_STEP -1 CTestHandler delete
1.275 +
1.276 +RUN_TEST_STEP -1 CTestHandler init
1.277 +
1.278 +RUN_TEST_STEP -1 CTestHandler addcert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-058
1.279 +
1.280 +RUN_TEST_STEP -1 CTestHandler settrusters t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-059
1.281 +
1.282 +RUN_TEST_STEP -1 CTestHandler loadcacert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-060
1.283 +
1.284 +RUN_TEST_STEP -1 CTestHandler loadcacert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-061
1.285 +
1.286 +RUN_TEST_STEP -1 CTestHandler deletecert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-062
1.287 +
1.288 +RUN_TEST_STEP -1 CTestHandler delete
1.289 +
1.290 +RUN_TEST_STEP -1 CTestHandler init
1.291 +
1.292 +RUN_TEST_STEP -1 CTestHandler addcert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-065
1.293 +
1.294 +RUN_TEST_STEP -1 CTestHandler loadusercert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-066
1.295 +
1.296 +RUN_TEST_STEP -1 CTestHandler deleteusercert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-067
1.297 +
1.298 +RUN_TEST_STEP -1 CTestHandler loadusercert t_certstore.ini SEC-CERTMAN-T_CERTSTORE-0001-068
1.299 +
1.300 +RUN_TEST_STEP -1 CTestHandler delete
1.301 +
1.302 +END_TESTCASE SEC-CERTMAN-T_CERTSTORE-0001
1.303 +
1.304 +
1.305 +
1.306 +
1.307 +