os/security/cryptoservices/certificateandkeymgmt/tcertstore/scripts/unifiedcertstore2-conf2.script
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/cryptoservices/certificateandkeymgmt/tcertstore/scripts/unifiedcertstore2-conf2.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,824 @@
     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-UNIFIEDCERTSTORE2-CONF2-0001
    1.21 +
    1.22 +//! @SYMTestCaseID            SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0001
    1.23 +
    1.24 +//! @SYMTestCaseDesc          unifiedcertstore2-conf2.txt
    1.25 +
    1.26 +//!                           
    1.27 +
    1.28 +//!                           New tests are added to the existing test scripts to test certificate addition, removal, setapplication
    1.29 +
    1.30 +//!                           and settrust which required in PREQ226 MIDP 2.0 support.
    1.31 +
    1.32 +//!                           These tests need to have taddtionalstores enabled.
    1.33 +
    1.34 +//!                           
    1.35 +
    1.36 +//!                           Note: The in-source test tag is only added to the new tests for PREQ226. The tests without test tag is the existing tests
    1.37 +
    1.38 +//!                           in the certstore component, which are used to set up the environment needed by the PREQ226 tests.
    1.39 +
    1.40 +//!                           
    1.41 +
    1.42 +//!                           5.1 Test cases for single file-based writable certificate store
    1.43 +
    1.44 +//!                           
    1.45 +
    1.46 +//!                           5.1.1 Successfull addition, listing and retrieval of certificates (X.509)
    1.47 +
    1.48 +//! @SYMTestActions           1) No Test,Opening a CertificateAppInfoManager
    1.49 +
    1.50 +//!                           2) No Test,Adding client A1
    1.51 +
    1.52 +//!                           3) No Test,Adding client A2
    1.53 +
    1.54 +//!                           4) No Test,Adding client A3
    1.55 +
    1.56 +//!                           5) No Test,Adding client A4
    1.57 +
    1.58 +//!                           6) No Test,Deleting the CertificateAppInfoManager
    1.59 +
    1.60 +//!                           7) 5.1.1.1,Opening a certificate store manager
    1.61 +
    1.62 +RUN_TEST_STEP                 -1    CTestHandler        initappmanager      
    1.63 +
    1.64 +RUN_TEST_STEP                 -1    CTestHandler        addclient              unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0001-002
    1.65 +
    1.66 +RUN_TEST_STEP                 -1    CTestHandler        addclient              unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0001-003
    1.67 +
    1.68 +RUN_TEST_STEP                 -1    CTestHandler        addclient              unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0001-004
    1.69 +
    1.70 +RUN_TEST_STEP                 -1    CTestHandler        addclient              unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0001-005
    1.71 +
    1.72 +RUN_TEST_STEP                 -1    CTestHandler        deleteappmanager    
    1.73 +
    1.74 +RUN_TEST_STEP                 -1    CTestHandler        init                   unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0001-007
    1.75 +
    1.76 +END_TESTCASE                  SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0001
    1.77 +
    1.78 +
    1.79 +
    1.80 +
    1.81 +
    1.82 +START_TESTCASE                UCTSSEC-CT-WMODEUCTADDCWN5.1.1.2
    1.83 +
    1.84 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTADDCWN5.1.1.2
    1.85 +
    1.86 +//! @file                     
    1.87 +
    1.88 +//! @SYMTestCaseDesc          The test is to add a X509 CA certficate CAX1 in the CertStore and get notification.
    1.89 +
    1.90 +//! @SYMPREQ                  226
    1.91 +
    1.92 +//! @SYMTestCasePriority      High
    1.93 +
    1.94 +//! @SYMTestExpectedResults   KErrNone
    1.95 +
    1.96 +//! @SYMTestActions           1) 5.1.1.2,Add the certificate CAX1 with notification
    1.97 +
    1.98 +RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.1.2-001
    1.99 +
   1.100 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTADDCWN5.1.1.2
   1.101 +
   1.102 +
   1.103 +
   1.104 +
   1.105 +
   1.106 +START_TESTCASE                UCTSSEC-CT-WMODEUCTADDCWN5.1.1.3
   1.107 +
   1.108 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTADDCWN5.1.1.3
   1.109 +
   1.110 +//! @file                     
   1.111 +
   1.112 +//! @SYMTestCaseDesc          The test is to a X509 CA certficate CAX2 in the CertStore and get notification.
   1.113 +
   1.114 +//! @SYMPREQ                  226
   1.115 +
   1.116 +//! @SYMTestCasePriority      High
   1.117 +
   1.118 +//! @SYMTestExpectedResults   KErrNone
   1.119 +
   1.120 +//! @SYMTestActions           1) 5.1.1.3,Add the certificate CAX2 with notification
   1.121 +
   1.122 +RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.1.3-001
   1.123 +
   1.124 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTADDCWN5.1.1.3
   1.125 +
   1.126 +
   1.127 +
   1.128 +
   1.129 +
   1.130 +START_TESTCASE                UCTSSEC-CT-WMODEUCTADDCWN5.1.1.4
   1.131 +
   1.132 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTADDCWN5.1.1.4
   1.133 +
   1.134 +//! @file                     
   1.135 +
   1.136 +//! @SYMTestCaseDesc          The test is to add a X509 CA certficate CAX3 in the CertStore and get notification.
   1.137 +
   1.138 +//! @SYMPREQ                  226
   1.139 +
   1.140 +//! @SYMTestCasePriority      High
   1.141 +
   1.142 +//! @SYMTestExpectedResults   KErrNone
   1.143 +
   1.144 +//! @SYMTestActions           1) 5.1.1.4,Add the certificate CAX3 with notification
   1.145 +
   1.146 +//!                           2) 5.1.1.5,Get the list of certificates
   1.147 +
   1.148 +//!                           3) 5.1.1.5.1,Retrieve CAX1 cert
   1.149 +
   1.150 +//!                           4) 5.1.1.9,Deleting the certificate store manager
   1.151 +
   1.152 +//!                           5) 5.1.1.10,Opening a certificate store manager
   1.153 +
   1.154 +//!                           6) 5.1.1.11,Get the list of certificates
   1.155 +
   1.156 +RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.1.4-001
   1.157 +
   1.158 +RUN_TEST_STEP                 -1    CTestHandler        listcert               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.1.4-002
   1.159 +
   1.160 +RUN_TEST_STEP                 -1    CTestHandler        retrieve               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.1.4-003
   1.161 +
   1.162 +RUN_TEST_STEP                 -1    CTestHandler        delete              
   1.163 +
   1.164 +RUN_TEST_STEP                 -1    CTestHandler        init                   unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.1.4-005
   1.165 +
   1.166 +RUN_TEST_STEP                 -1    CTestHandler        listcert               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.1.4-006
   1.167 +
   1.168 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTADDCWN5.1.1.4
   1.169 +
   1.170 +
   1.171 +
   1.172 +
   1.173 +
   1.174 +// 5.1.2 Successfull addition, listing and retrieval of certificates (WTLS)
   1.175 +
   1.176 +
   1.177 +
   1.178 +START_TESTCASE                UCTSSEC-CT-WMODEUCTADDCWN5.1.2.1
   1.179 +
   1.180 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTADDCWN5.1.2.1
   1.181 +
   1.182 +//! @file                     
   1.183 +
   1.184 +//! @SYMTestCaseDesc          The test is to add a WTLS CA certficate CAW1 in the CertStore and get notification.
   1.185 +
   1.186 +//! @SYMPREQ                  226
   1.187 +
   1.188 +//! @SYMTestCasePriority      High
   1.189 +
   1.190 +//! @SYMTestExpectedResults   KErrNone
   1.191 +
   1.192 +//! @SYMTestActions           1) 5.1.2.1,Add the certificate CAW1 with notification
   1.193 +
   1.194 +RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.2.1-001
   1.195 +
   1.196 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTADDCWN5.1.2.1
   1.197 +
   1.198 +
   1.199 +
   1.200 +
   1.201 +
   1.202 +START_TESTCASE                UCTSSEC-CT-WMODEUCTADDCWN5.1.2.2
   1.203 +
   1.204 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTADDCWN5.1.2.2
   1.205 +
   1.206 +//! @file                     
   1.207 +
   1.208 +//! @SYMTestCaseDesc          The test is to add a WTLS CA certficate CAW2 in the CertStore and get notification.
   1.209 +
   1.210 +//! @SYMPREQ                  226
   1.211 +
   1.212 +//! @SYMTestCasePriority      High
   1.213 +
   1.214 +//! @SYMTestExpectedResults   KErrNone
   1.215 +
   1.216 +//! @SYMTestActions           1) 5.1.2.2,Add the certificate CAW2 with notification
   1.217 +
   1.218 +RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.2.2-001
   1.219 +
   1.220 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTADDCWN5.1.2.2
   1.221 +
   1.222 +
   1.223 +
   1.224 +
   1.225 +
   1.226 +START_TESTCASE                UCTSSEC-CT-WMODEUCTADDCWN5.1.2.3
   1.227 +
   1.228 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTADDCWN5.1.2.3
   1.229 +
   1.230 +//! @file                     
   1.231 +
   1.232 +//! @SYMTestCaseDesc          The test is to add a WTLS CA certficate CAW3 in the CertStore and get notification.
   1.233 +
   1.234 +//! @SYMPREQ                  226
   1.235 +
   1.236 +//! @SYMTestCasePriority      High
   1.237 +
   1.238 +//! @SYMTestExpectedResults   KErrNone
   1.239 +
   1.240 +//! @SYMTestActions           1) 5.1.2.3,Add the certificate CAW3 with notification
   1.241 +
   1.242 +//!                           2) 5.1.2.4,Get the list of certificates
   1.243 +
   1.244 +//!                           3) 5.1.2.4.1,Retrieve CAW1 cert
   1.245 +
   1.246 +//!                           4) 5.1.2.5,Deleting the certificate store manager
   1.247 +
   1.248 +//!                           5) 5.1.2.6,Opening a certificate store manager
   1.249 +
   1.250 +//!                           6) 5.1.2.7,Get the list of certificates
   1.251 +
   1.252 +RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.2.3-001
   1.253 +
   1.254 +RUN_TEST_STEP                 -1    CTestHandler        listcert               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.2.3-002
   1.255 +
   1.256 +RUN_TEST_STEP                 -1    CTestHandler        retrieve               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.2.3-003
   1.257 +
   1.258 +RUN_TEST_STEP                 -1    CTestHandler        delete              
   1.259 +
   1.260 +RUN_TEST_STEP                 -1    CTestHandler        init                   unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.2.3-005
   1.261 +
   1.262 +RUN_TEST_STEP                 -1    CTestHandler        listcert               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.2.3-006
   1.263 +
   1.264 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTADDCWN5.1.2.3
   1.265 +
   1.266 +
   1.267 +
   1.268 +
   1.269 +
   1.270 +// 5.1.3 Successfull trust settings updates and retrieval
   1.271 +
   1.272 +
   1.273 +
   1.274 +START_TESTCASE                UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.1
   1.275 +
   1.276 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.1
   1.277 +
   1.278 +//! @file                     
   1.279 +
   1.280 +//! @SYMTestCaseDesc          The test is to set application to a X509 CA certficate CAX1 in the CertStore and get notification.
   1.281 +
   1.282 +//! @SYMPREQ                  226
   1.283 +
   1.284 +//! @SYMTestCasePriority      High
   1.285 +
   1.286 +//! @SYMTestExpectedResults   KErrNone
   1.287 +
   1.288 +//! @SYMTestActions           1) 5.1.3.1,Set applications to the CAX1 certificate with notification
   1.289 +
   1.290 +RUN_TEST_STEP                 -1    CTestHandler        setapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.1-001
   1.291 +
   1.292 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.1
   1.293 +
   1.294 +
   1.295 +
   1.296 +
   1.297 +
   1.298 +START_TESTCASE                UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.2
   1.299 +
   1.300 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.2
   1.301 +
   1.302 +//! @file                     
   1.303 +
   1.304 +//! @SYMTestCaseDesc          The test is to set trust to a X509 CA certficate CAX1 in the CertStore and get notification.
   1.305 +
   1.306 +//! @SYMPREQ                  226
   1.307 +
   1.308 +//! @SYMTestCasePriority      High
   1.309 +
   1.310 +//! @SYMTestExpectedResults   KErrNone
   1.311 +
   1.312 +//! @SYMTestActions           1) 5.1.3.2,set the trust for CAX1 with notification
   1.313 +
   1.314 +RUN_TEST_STEP                 -1    CTestHandler        settrust               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.2-001
   1.315 +
   1.316 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.2
   1.317 +
   1.318 +
   1.319 +
   1.320 +
   1.321 +
   1.322 +START_TESTCASE                UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.3
   1.323 +
   1.324 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.3
   1.325 +
   1.326 +//! @file                     
   1.327 +
   1.328 +//! @SYMTestCaseDesc          The test is to set application to a X509 CA certficate CAX2 in the CertStore and get notification.
   1.329 +
   1.330 +//! @SYMPREQ                  226
   1.331 +
   1.332 +//! @SYMTestCasePriority      High
   1.333 +
   1.334 +//! @SYMTestExpectedResults   KErrNone
   1.335 +
   1.336 +//! @SYMTestActions           1) 5.1.3.3,Set applications to the CAX2 certificate with notification
   1.337 +
   1.338 +RUN_TEST_STEP                 -1    CTestHandler        setapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.3-001
   1.339 +
   1.340 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.3
   1.341 +
   1.342 +
   1.343 +
   1.344 +
   1.345 +
   1.346 +START_TESTCASE                UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.4
   1.347 +
   1.348 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.4
   1.349 +
   1.350 +//! @file                     
   1.351 +
   1.352 +//! @SYMTestCaseDesc          The test is to set trust to a X509 CA certficate CAX2 in the CertStore and get notification.
   1.353 +
   1.354 +//! @SYMPREQ                  226
   1.355 +
   1.356 +//! @SYMTestCasePriority      High
   1.357 +
   1.358 +//! @SYMTestExpectedResults   KErrNone
   1.359 +
   1.360 +//! @SYMTestActions           1) 5.1.3.4,set the trust for CAX2 with notification
   1.361 +
   1.362 +RUN_TEST_STEP                 -1    CTestHandler        settrust               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.4-001
   1.363 +
   1.364 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.4
   1.365 +
   1.366 +
   1.367 +
   1.368 +
   1.369 +
   1.370 +START_TESTCASE                UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.5
   1.371 +
   1.372 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.5
   1.373 +
   1.374 +//! @file                     
   1.375 +
   1.376 +//! @SYMTestCaseDesc          The test is to set application to a X509 CA certficate CAX3 in the CertStore and get notification.
   1.377 +
   1.378 +//! @SYMPREQ                  226
   1.379 +
   1.380 +//! @SYMTestCasePriority      High
   1.381 +
   1.382 +//! @SYMTestExpectedResults   KErrNone
   1.383 +
   1.384 +//! @SYMTestActions           1) 5.1.3.5,Set applications to the CAX3 certificate with notification
   1.385 +
   1.386 +RUN_TEST_STEP                 -1    CTestHandler        setapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.5-001
   1.387 +
   1.388 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.5
   1.389 +
   1.390 +
   1.391 +
   1.392 +
   1.393 +
   1.394 +START_TESTCASE                UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6
   1.395 +
   1.396 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6
   1.397 +
   1.398 +//! @file                     
   1.399 +
   1.400 +//! @SYMTestCaseDesc          The test is to set trust to a X509 CA certficate CAX3 in the CertStore and get notification.
   1.401 +
   1.402 +//! @SYMPREQ                  226
   1.403 +
   1.404 +//! @SYMTestCasePriority      High
   1.405 +
   1.406 +//! @SYMTestExpectedResults   KErrNone
   1.407 +
   1.408 +//! @SYMTestActions           1) 5.1.3.6,set the trust for CAX3 with notification
   1.409 +
   1.410 +//!                           2) 5.1.3.7,Get applications for CAX1
   1.411 +
   1.412 +//!                           3) 5.1.3.8,Get the trust for CAX1
   1.413 +
   1.414 +//!                           4) 5.1.3.9,Get applications for CAX2
   1.415 +
   1.416 +//!                           5) 5.1.3.10,Get the trust for CAX2
   1.417 +
   1.418 +//!                           6) 5.1.3.11,Get applications for CAX3
   1.419 +
   1.420 +//!                           7) 5.1.3.12,Get the trust for CAX3
   1.421 +
   1.422 +RUN_TEST_STEP                 -1    CTestHandler        settrust               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6-001
   1.423 +
   1.424 +RUN_TEST_STEP                 -1    CTestHandler        getapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6-002
   1.425 +
   1.426 +RUN_TEST_STEP                 -1    CTestHandler        gettrusters            unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6-003
   1.427 +
   1.428 +RUN_TEST_STEP                 -1    CTestHandler        getapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6-004
   1.429 +
   1.430 +RUN_TEST_STEP                 -1    CTestHandler        gettrusters            unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6-005
   1.431 +
   1.432 +RUN_TEST_STEP                 -1    CTestHandler        getapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6-006
   1.433 +
   1.434 +RUN_TEST_STEP                 -1    CTestHandler        gettrusters            unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6-007
   1.435 +
   1.436 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6
   1.437 +
   1.438 +
   1.439 +
   1.440 +
   1.441 +
   1.442 +START_TESTCASE                UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.13
   1.443 +
   1.444 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.13
   1.445 +
   1.446 +//! @file                     
   1.447 +
   1.448 +//! @SYMTestCaseDesc          The test is to set application to a WTLS CA certficate CAW2 in the CertStore and get notification.
   1.449 +
   1.450 +//! @SYMPREQ                  226
   1.451 +
   1.452 +//! @SYMTestCasePriority      High
   1.453 +
   1.454 +//! @SYMTestExpectedResults   KErrNone
   1.455 +
   1.456 +//! @SYMTestActions           1) 5.1.3.13,Set trusters to the CAW2 certificate with notification
   1.457 +
   1.458 +RUN_TEST_STEP                 -1    CTestHandler        setapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.13-001
   1.459 +
   1.460 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.13
   1.461 +
   1.462 +
   1.463 +
   1.464 +
   1.465 +
   1.466 +START_TESTCASE                UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.14
   1.467 +
   1.468 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.14
   1.469 +
   1.470 +//! @file                     
   1.471 +
   1.472 +//! @SYMTestCaseDesc          The test is to set trust to a WTLS CA certficate CAW2 in the CertStore and get notification.
   1.473 +
   1.474 +//! @SYMPREQ                  226
   1.475 +
   1.476 +//! @SYMTestCasePriority      High
   1.477 +
   1.478 +//! @SYMTestExpectedResults   KErrNone
   1.479 +
   1.480 +//! @SYMTestActions           1) 5.1.3.14,set the trust for CAW2 with notification
   1.481 +
   1.482 +RUN_TEST_STEP                 -1    CTestHandler        settrust               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.14-001
   1.483 +
   1.484 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.14
   1.485 +
   1.486 +
   1.487 +
   1.488 +
   1.489 +
   1.490 +START_TESTCASE                UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.15
   1.491 +
   1.492 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.15
   1.493 +
   1.494 +//! @file                     
   1.495 +
   1.496 +//! @SYMTestCaseDesc          The test is to set application to a WTLS CA certficate CAW3 in the CertStore and get notification.
   1.497 +
   1.498 +//! @SYMPREQ                  226
   1.499 +
   1.500 +//! @SYMTestCasePriority      High
   1.501 +
   1.502 +//! @SYMTestExpectedResults   KErrNone
   1.503 +
   1.504 +//! @SYMTestActions           1) 5.1.3.15,Set trusters to the CAW3 certificate with notification
   1.505 +
   1.506 +RUN_TEST_STEP                 -1    CTestHandler        setapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.15-001
   1.507 +
   1.508 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.15
   1.509 +
   1.510 +
   1.511 +
   1.512 +
   1.513 +
   1.514 +START_TESTCASE                UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16
   1.515 +
   1.516 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16
   1.517 +
   1.518 +//! @file                     
   1.519 +
   1.520 +//! @SYMTestCaseDesc          The test is to set trust to a WTLS CA certficate CAW3 in the CertStore and get notification.
   1.521 +
   1.522 +//! @SYMPREQ                  226
   1.523 +
   1.524 +//! @SYMTestCasePriority      High
   1.525 +
   1.526 +//! @SYMTestExpectedResults   KErrNone
   1.527 +
   1.528 +//! @SYMTestActions           1) 5.1.3.16,set the trust for CAW3 with notification
   1.529 +
   1.530 +//!                           2) 5.1.3.17,Get applications for CAW1
   1.531 +
   1.532 +//!                           3) 5.1.3.18,Get the trust for CAW1
   1.533 +
   1.534 +//!                           4) 5.1.3.19,Get applications for CAW2
   1.535 +
   1.536 +//!                           5) 5.1.3.20,Get the trust for CAW2
   1.537 +
   1.538 +//!                           6) 5.1.3.21,Get applications for CAW3
   1.539 +
   1.540 +//!                           7) 5.1.3.22,Get the trust for CAW3
   1.541 +
   1.542 +RUN_TEST_STEP                 -1    CTestHandler        settrust               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16-001
   1.543 +
   1.544 +RUN_TEST_STEP                 -1    CTestHandler        getapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16-002
   1.545 +
   1.546 +RUN_TEST_STEP                 -1    CTestHandler        gettrusters            unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16-003
   1.547 +
   1.548 +RUN_TEST_STEP                 -1    CTestHandler        getapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16-004
   1.549 +
   1.550 +RUN_TEST_STEP                 -1    CTestHandler        gettrusters            unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16-005
   1.551 +
   1.552 +RUN_TEST_STEP                 -1    CTestHandler        getapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16-006
   1.553 +
   1.554 +RUN_TEST_STEP                 -1    CTestHandler        gettrusters            unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16-007
   1.555 +
   1.556 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16
   1.557 +
   1.558 +
   1.559 +
   1.560 +
   1.561 +
   1.562 +START_TESTCASE                SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018
   1.563 +
   1.564 +//! @SYMTestCaseID            SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018
   1.565 +
   1.566 +//! @SYMTestCaseDesc          5.1.4 Successfull addition and retrieval of user certificates
   1.567 +
   1.568 +//! @SYMTestActions           1) 1.1.0.4 Import a RSA key
   1.569 +
   1.570 +//!                           2) 1.1.0.5 Import a RSA key
   1.571 +
   1.572 +//!                           3) 1.1.0.6 Import a RSA key
   1.573 +
   1.574 +//!                           4) 5.1.4.1, Add certificate rsacert1 ***NEW***
   1.575 +
   1.576 +//!                           5) 5.1.4.2,Add the certificate rsacert2 ***NEW***
   1.577 +
   1.578 +//!                           6) 5.1.4.3,Add the certificate rsacert3 ***NEW***
   1.579 +
   1.580 +//!                           7) 5.1.4.4.a,Get the list of certificates
   1.581 +
   1.582 +//!                           8) 5.1.4.4.b,Get the list of certificates
   1.583 +
   1.584 +//!                           9) 5.1.4.4.c,Retrieve rsacert1 cert
   1.585 +
   1.586 +RUN_TEST_STEP                 -1    CTestHandler        importkey              unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-001
   1.587 +
   1.588 +RUN_TEST_STEP                 -1    CTestHandler        importkey              unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-002
   1.589 +
   1.590 +RUN_TEST_STEP                 -1    CTestHandler        importkey              unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-003
   1.591 +
   1.592 +RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-004
   1.593 +
   1.594 +RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-005
   1.595 +
   1.596 +RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-006
   1.597 +
   1.598 +RUN_TEST_STEP                 -1    CTestHandler        listcert               unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-007
   1.599 +
   1.600 +RUN_TEST_STEP                 -1    CTestHandler        listcert               unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-008
   1.601 +
   1.602 +RUN_TEST_STEP                 -1    CTestHandler        retrieve               unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-009
   1.603 +
   1.604 +END_TESTCASE                  SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018
   1.605 +
   1.606 +
   1.607 +
   1.608 +
   1.609 +
   1.610 +START_TESTCASE                UCTSSEC-CT-WMODEUCTDELCWN1.1
   1.611 +
   1.612 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTDELCWN1.1
   1.613 +
   1.614 +//! @file                     
   1.615 +
   1.616 +//! @SYMTestCaseDesc          The test is to delete a X509 CA certficate CAX1 in the CertStore and get notification.
   1.617 +
   1.618 +//! @SYMPREQ                  226
   1.619 +
   1.620 +//! @SYMTestCasePriority      High
   1.621 +
   1.622 +//! @SYMTestExpectedResults   KErrNone
   1.623 +
   1.624 +//! @SYMTestActions           1) No Test,Deleting the certificate CAX1 with notification
   1.625 +
   1.626 +RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.1-001
   1.627 +
   1.628 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTDELCWN1.1
   1.629 +
   1.630 +
   1.631 +
   1.632 +
   1.633 +
   1.634 +START_TESTCASE                UCTSSEC-CT-WMODEUCTDELCWN1.2
   1.635 +
   1.636 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTDELCWN1.2
   1.637 +
   1.638 +//! @file                     
   1.639 +
   1.640 +//! @SYMTestCaseDesc          The test is to delete a X509 CA certficate CAX2 in the CertStore and get notification.
   1.641 +
   1.642 +//! @SYMPREQ                  226
   1.643 +
   1.644 +//! @SYMTestCasePriority      High
   1.645 +
   1.646 +//! @SYMTestExpectedResults   KErrNone
   1.647 +
   1.648 +//! @SYMTestActions           1) No Test,Deleting the certificate CAX2 with notification
   1.649 +
   1.650 +RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.2-001
   1.651 +
   1.652 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTDELCWN1.2
   1.653 +
   1.654 +
   1.655 +
   1.656 +
   1.657 +
   1.658 +START_TESTCASE                UCTSSEC-CT-WMODEUCTDELCWN1.3
   1.659 +
   1.660 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTDELCWN1.3
   1.661 +
   1.662 +//! @file                     
   1.663 +
   1.664 +//! @SYMTestCaseDesc          The test is to delete a X509 CA certficate CAX3 in the CertStore and get notification.
   1.665 +
   1.666 +//! @SYMPREQ                  226
   1.667 +
   1.668 +//! @SYMTestCasePriority      High
   1.669 +
   1.670 +//! @SYMTestExpectedResults   KErrNone
   1.671 +
   1.672 +//! @SYMTestActions           1) No Test,Deleting the certificate CAX3 with notification
   1.673 +
   1.674 +RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.3-001
   1.675 +
   1.676 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTDELCWN1.3
   1.677 +
   1.678 +
   1.679 +
   1.680 +
   1.681 +
   1.682 +START_TESTCASE                UCTSSEC-CT-WMODEUCTDELCWN1.4
   1.683 +
   1.684 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTDELCWN1.4
   1.685 +
   1.686 +//! @file                     
   1.687 +
   1.688 +//! @SYMTestCaseDesc          The test is to delete a WTLS CA certficate CAW1 in the CertStore and get notification.
   1.689 +
   1.690 +//! @SYMPREQ                  226
   1.691 +
   1.692 +//! @SYMTestCasePriority      High
   1.693 +
   1.694 +//! @SYMTestExpectedResults   KErrNone
   1.695 +
   1.696 +//! @SYMTestActions           1) No Test,Deleting the certificate CAW1 with notification
   1.697 +
   1.698 +RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.4-001
   1.699 +
   1.700 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTDELCWN1.4
   1.701 +
   1.702 +
   1.703 +
   1.704 +
   1.705 +
   1.706 +START_TESTCASE                UCTSSEC-CT-WMODEUCTDELCWN1.5
   1.707 +
   1.708 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTDELCWN1.5
   1.709 +
   1.710 +//! @file                     
   1.711 +
   1.712 +//! @SYMTestCaseDesc          The test is to delete a WTLS CA certficate CAW2 in the CertStore and get notification.
   1.713 +
   1.714 +//! @SYMPREQ                  226
   1.715 +
   1.716 +//! @SYMTestCasePriority      High
   1.717 +
   1.718 +//! @SYMTestExpectedResults   KErrNone
   1.719 +
   1.720 +//! @SYMTestActions           1) No Test,Deleting the certificate CAW2 with notification
   1.721 +
   1.722 +RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.5-001
   1.723 +
   1.724 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTDELCWN1.5
   1.725 +
   1.726 +
   1.727 +
   1.728 +
   1.729 +
   1.730 +START_TESTCASE                UCTSSEC-CT-WMODEUCTDELCWN1.6
   1.731 +
   1.732 +//! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTDELCWN1.6
   1.733 +
   1.734 +//! @file                     
   1.735 +
   1.736 +//! @SYMTestCaseDesc          The test is to delete a WTLS CA certficate CAW3 in the CertStore and get notification.
   1.737 +
   1.738 +//! @SYMPREQ                  226
   1.739 +
   1.740 +//! @SYMTestCasePriority      High
   1.741 +
   1.742 +//! @SYMTestExpectedResults   KErrNone
   1.743 +
   1.744 +//! @SYMTestActions           1) No Test,Deleting the certificate CAW3 with notification
   1.745 +
   1.746 +//!                           2) No Test,Deleting the certificate rsacert1 ***NEW***
   1.747 +
   1.748 +//!                           3) No Test,Deleting the certificate rsacert2 ***NEW***
   1.749 +
   1.750 +//!                           4) No Test,Deleting the certificate rsacert3 ***NEW***
   1.751 +
   1.752 +//!                           5) No Test,Deleting the writable certificate store manager
   1.753 +
   1.754 +//!                           6) No Test,Opening a CertificateAppInfoManager
   1.755 +
   1.756 +//!                           7) No Test,Deleting the client A1
   1.757 +
   1.758 +//!                           8) No Test,Deleting the client A2
   1.759 +
   1.760 +//!                           9) No Test,Deleting the client A3
   1.761 +
   1.762 +//!                           10) No Test,Deleting the client A4
   1.763 +
   1.764 +//!                           11) No Test,Deleting the CertificateAppInfoManager
   1.765 +
   1.766 +RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.6-001
   1.767 +
   1.768 +RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.6-002
   1.769 +
   1.770 +RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.6-003
   1.771 +
   1.772 +RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.6-004
   1.773 +
   1.774 +RUN_TEST_STEP                 -1    CTestHandler        delete              
   1.775 +
   1.776 +RUN_TEST_STEP                 -1    CTestHandler        initappmanager      
   1.777 +
   1.778 +RUN_TEST_STEP                 -1    CTestHandler        removeclient           unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.6-007
   1.779 +
   1.780 +RUN_TEST_STEP                 -1    CTestHandler        removeclient           unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.6-008
   1.781 +
   1.782 +RUN_TEST_STEP                 -1    CTestHandler        removeclient           unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.6-009
   1.783 +
   1.784 +RUN_TEST_STEP                 -1    CTestHandler        removeclient           unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.6-010
   1.785 +
   1.786 +RUN_TEST_STEP                 -1    CTestHandler        deleteappmanager    
   1.787 +
   1.788 +END_TESTCASE                  UCTSSEC-CT-WMODEUCTDELCWN1.6
   1.789 +
   1.790 +
   1.791 +
   1.792 +
   1.793 +
   1.794 +START_TESTCASE                UCTSSEC-CT-RMODEUCTWITHSS5.6
   1.795 +
   1.796 +//! @SYMTestCaseID            UCTSSEC-CT-RMODEUCTWITHSS5.6
   1.797 +
   1.798 +//! @file                     
   1.799 +
   1.800 +//! @SYMTestCaseDesc          The test is to open one UnifiedCertStore in read mode with the
   1.801 +
   1.802 +//!                           sequence of UICC, WIM, unknown hardware, SIM, ManufactureSoftware and ThirdpartySoftware cerstore
   1.803 +
   1.804 +//!                           implementations, and expect the correct order.The test needs
   1.805 +
   1.806 +//!                           tadditionalstores.dll enabled
   1.807 +
   1.808 +//! @SYMPREQ                  226
   1.809 +
   1.810 +//! @SYMTestCasePriority      High
   1.811 +
   1.812 +//! @SYMTestExpectedResults   KErrNone
   1.813 +
   1.814 +//! @SYMTestActions           1) 5.6,Opening a read-only certificate store manager
   1.815 +
   1.816 +//!                           2) 0.2,Deleting the second read-only certificate store manager
   1.817 +
   1.818 +RUN_TEST_STEP                 -1    CTestHandler        init                   unifiedcertstore2-conf2.ini   UCTSSEC-CT-RMODEUCTWITHSS5.6-001
   1.819 +
   1.820 +RUN_TEST_STEP                 -1    CTestHandler        delete              
   1.821 +
   1.822 +END_TESTCASE                  UCTSSEC-CT-RMODEUCTWITHSS5.6
   1.823 +
   1.824 +
   1.825 +
   1.826 +
   1.827 +