cryptoservices/certificateandkeymgmt/tcertstore/scripts/unifiedcertstore2-conf2.script
changeset 8 35751d3474b7
child 29 ece3df019add
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
       
     1 //
       
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of the License "Symbian Foundation License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 
       
    17 START_TESTCASE                SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0001
       
    18 
       
    19 //! @SYMTestCaseID            SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0001
       
    20 
       
    21 //! @SYMTestCaseDesc          unifiedcertstore2-conf2.txt
       
    22 
       
    23 //!                           
       
    24 
       
    25 //!                           New tests are added to the existing test scripts to test certificate addition, removal, setapplication
       
    26 
       
    27 //!                           and settrust which required in PREQ226 MIDP 2.0 support.
       
    28 
       
    29 //!                           These tests need to have taddtionalstores enabled.
       
    30 
       
    31 //!                           
       
    32 
       
    33 //!                           Note: The in-source test tag is only added to the new tests for PREQ226. The tests without test tag is the existing tests
       
    34 
       
    35 //!                           in the certstore component, which are used to set up the environment needed by the PREQ226 tests.
       
    36 
       
    37 //!                           
       
    38 
       
    39 //!                           5.1 Test cases for single file-based writable certificate store
       
    40 
       
    41 //!                           
       
    42 
       
    43 //!                           5.1.1 Successfull addition, listing and retrieval of certificates (X.509)
       
    44 
       
    45 //! @SYMTestActions           1) No Test,Opening a CertificateAppInfoManager
       
    46 
       
    47 //!                           2) No Test,Adding client A1
       
    48 
       
    49 //!                           3) No Test,Adding client A2
       
    50 
       
    51 //!                           4) No Test,Adding client A3
       
    52 
       
    53 //!                           5) No Test,Adding client A4
       
    54 
       
    55 //!                           6) No Test,Deleting the CertificateAppInfoManager
       
    56 
       
    57 //!                           7) 5.1.1.1,Opening a certificate store manager
       
    58 
       
    59 RUN_TEST_STEP                 -1    CTestHandler        initappmanager      
       
    60 
       
    61 RUN_TEST_STEP                 -1    CTestHandler        addclient              unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0001-002
       
    62 
       
    63 RUN_TEST_STEP                 -1    CTestHandler        addclient              unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0001-003
       
    64 
       
    65 RUN_TEST_STEP                 -1    CTestHandler        addclient              unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0001-004
       
    66 
       
    67 RUN_TEST_STEP                 -1    CTestHandler        addclient              unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0001-005
       
    68 
       
    69 RUN_TEST_STEP                 -1    CTestHandler        deleteappmanager    
       
    70 
       
    71 RUN_TEST_STEP                 -1    CTestHandler        init                   unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0001-007
       
    72 
       
    73 END_TESTCASE                  SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0001
       
    74 
       
    75 
       
    76 
       
    77 
       
    78 
       
    79 START_TESTCASE                UCTSSEC-CT-WMODEUCTADDCWN5.1.1.2
       
    80 
       
    81 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTADDCWN5.1.1.2
       
    82 
       
    83 //! @file                     
       
    84 
       
    85 //! @SYMTestCaseDesc          The test is to add a X509 CA certficate CAX1 in the CertStore and get notification.
       
    86 
       
    87 //! @SYMPREQ                  226
       
    88 
       
    89 //! @SYMTestCasePriority      High
       
    90 
       
    91 //! @SYMTestExpectedResults   KErrNone
       
    92 
       
    93 //! @SYMTestActions           1) 5.1.1.2,Add the certificate CAX1 with notification
       
    94 
       
    95 RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.1.2-001
       
    96 
       
    97 END_TESTCASE                  UCTSSEC-CT-WMODEUCTADDCWN5.1.1.2
       
    98 
       
    99 
       
   100 
       
   101 
       
   102 
       
   103 START_TESTCASE                UCTSSEC-CT-WMODEUCTADDCWN5.1.1.3
       
   104 
       
   105 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTADDCWN5.1.1.3
       
   106 
       
   107 //! @file                     
       
   108 
       
   109 //! @SYMTestCaseDesc          The test is to a X509 CA certficate CAX2 in the CertStore and get notification.
       
   110 
       
   111 //! @SYMPREQ                  226
       
   112 
       
   113 //! @SYMTestCasePriority      High
       
   114 
       
   115 //! @SYMTestExpectedResults   KErrNone
       
   116 
       
   117 //! @SYMTestActions           1) 5.1.1.3,Add the certificate CAX2 with notification
       
   118 
       
   119 RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.1.3-001
       
   120 
       
   121 END_TESTCASE                  UCTSSEC-CT-WMODEUCTADDCWN5.1.1.3
       
   122 
       
   123 
       
   124 
       
   125 
       
   126 
       
   127 START_TESTCASE                UCTSSEC-CT-WMODEUCTADDCWN5.1.1.4
       
   128 
       
   129 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTADDCWN5.1.1.4
       
   130 
       
   131 //! @file                     
       
   132 
       
   133 //! @SYMTestCaseDesc          The test is to add a X509 CA certficate CAX3 in the CertStore and get notification.
       
   134 
       
   135 //! @SYMPREQ                  226
       
   136 
       
   137 //! @SYMTestCasePriority      High
       
   138 
       
   139 //! @SYMTestExpectedResults   KErrNone
       
   140 
       
   141 //! @SYMTestActions           1) 5.1.1.4,Add the certificate CAX3 with notification
       
   142 
       
   143 //!                           2) 5.1.1.5,Get the list of certificates
       
   144 
       
   145 //!                           3) 5.1.1.5.1,Retrieve CAX1 cert
       
   146 
       
   147 //!                           4) 5.1.1.9,Deleting the certificate store manager
       
   148 
       
   149 //!                           5) 5.1.1.10,Opening a certificate store manager
       
   150 
       
   151 //!                           6) 5.1.1.11,Get the list of certificates
       
   152 
       
   153 RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.1.4-001
       
   154 
       
   155 RUN_TEST_STEP                 -1    CTestHandler        listcert               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.1.4-002
       
   156 
       
   157 RUN_TEST_STEP                 -1    CTestHandler        retrieve               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.1.4-003
       
   158 
       
   159 RUN_TEST_STEP                 -1    CTestHandler        delete              
       
   160 
       
   161 RUN_TEST_STEP                 -1    CTestHandler        init                   unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.1.4-005
       
   162 
       
   163 RUN_TEST_STEP                 -1    CTestHandler        listcert               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.1.4-006
       
   164 
       
   165 END_TESTCASE                  UCTSSEC-CT-WMODEUCTADDCWN5.1.1.4
       
   166 
       
   167 
       
   168 
       
   169 
       
   170 
       
   171 // 5.1.2 Successfull addition, listing and retrieval of certificates (WTLS)
       
   172 
       
   173 
       
   174 
       
   175 START_TESTCASE                UCTSSEC-CT-WMODEUCTADDCWN5.1.2.1
       
   176 
       
   177 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTADDCWN5.1.2.1
       
   178 
       
   179 //! @file                     
       
   180 
       
   181 //! @SYMTestCaseDesc          The test is to add a WTLS CA certficate CAW1 in the CertStore and get notification.
       
   182 
       
   183 //! @SYMPREQ                  226
       
   184 
       
   185 //! @SYMTestCasePriority      High
       
   186 
       
   187 //! @SYMTestExpectedResults   KErrNone
       
   188 
       
   189 //! @SYMTestActions           1) 5.1.2.1,Add the certificate CAW1 with notification
       
   190 
       
   191 RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.2.1-001
       
   192 
       
   193 END_TESTCASE                  UCTSSEC-CT-WMODEUCTADDCWN5.1.2.1
       
   194 
       
   195 
       
   196 
       
   197 
       
   198 
       
   199 START_TESTCASE                UCTSSEC-CT-WMODEUCTADDCWN5.1.2.2
       
   200 
       
   201 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTADDCWN5.1.2.2
       
   202 
       
   203 //! @file                     
       
   204 
       
   205 //! @SYMTestCaseDesc          The test is to add a WTLS CA certficate CAW2 in the CertStore and get notification.
       
   206 
       
   207 //! @SYMPREQ                  226
       
   208 
       
   209 //! @SYMTestCasePriority      High
       
   210 
       
   211 //! @SYMTestExpectedResults   KErrNone
       
   212 
       
   213 //! @SYMTestActions           1) 5.1.2.2,Add the certificate CAW2 with notification
       
   214 
       
   215 RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.2.2-001
       
   216 
       
   217 END_TESTCASE                  UCTSSEC-CT-WMODEUCTADDCWN5.1.2.2
       
   218 
       
   219 
       
   220 
       
   221 
       
   222 
       
   223 START_TESTCASE                UCTSSEC-CT-WMODEUCTADDCWN5.1.2.3
       
   224 
       
   225 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTADDCWN5.1.2.3
       
   226 
       
   227 //! @file                     
       
   228 
       
   229 //! @SYMTestCaseDesc          The test is to add a WTLS CA certficate CAW3 in the CertStore and get notification.
       
   230 
       
   231 //! @SYMPREQ                  226
       
   232 
       
   233 //! @SYMTestCasePriority      High
       
   234 
       
   235 //! @SYMTestExpectedResults   KErrNone
       
   236 
       
   237 //! @SYMTestActions           1) 5.1.2.3,Add the certificate CAW3 with notification
       
   238 
       
   239 //!                           2) 5.1.2.4,Get the list of certificates
       
   240 
       
   241 //!                           3) 5.1.2.4.1,Retrieve CAW1 cert
       
   242 
       
   243 //!                           4) 5.1.2.5,Deleting the certificate store manager
       
   244 
       
   245 //!                           5) 5.1.2.6,Opening a certificate store manager
       
   246 
       
   247 //!                           6) 5.1.2.7,Get the list of certificates
       
   248 
       
   249 RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.2.3-001
       
   250 
       
   251 RUN_TEST_STEP                 -1    CTestHandler        listcert               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.2.3-002
       
   252 
       
   253 RUN_TEST_STEP                 -1    CTestHandler        retrieve               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.2.3-003
       
   254 
       
   255 RUN_TEST_STEP                 -1    CTestHandler        delete              
       
   256 
       
   257 RUN_TEST_STEP                 -1    CTestHandler        init                   unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.2.3-005
       
   258 
       
   259 RUN_TEST_STEP                 -1    CTestHandler        listcert               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTADDCWN5.1.2.3-006
       
   260 
       
   261 END_TESTCASE                  UCTSSEC-CT-WMODEUCTADDCWN5.1.2.3
       
   262 
       
   263 
       
   264 
       
   265 
       
   266 
       
   267 // 5.1.3 Successfull trust settings updates and retrieval
       
   268 
       
   269 
       
   270 
       
   271 START_TESTCASE                UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.1
       
   272 
       
   273 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.1
       
   274 
       
   275 //! @file                     
       
   276 
       
   277 //! @SYMTestCaseDesc          The test is to set application to a X509 CA certficate CAX1 in the CertStore and get notification.
       
   278 
       
   279 //! @SYMPREQ                  226
       
   280 
       
   281 //! @SYMTestCasePriority      High
       
   282 
       
   283 //! @SYMTestExpectedResults   KErrNone
       
   284 
       
   285 //! @SYMTestActions           1) 5.1.3.1,Set applications to the CAX1 certificate with notification
       
   286 
       
   287 RUN_TEST_STEP                 -1    CTestHandler        setapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.1-001
       
   288 
       
   289 END_TESTCASE                  UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.1
       
   290 
       
   291 
       
   292 
       
   293 
       
   294 
       
   295 START_TESTCASE                UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.2
       
   296 
       
   297 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.2
       
   298 
       
   299 //! @file                     
       
   300 
       
   301 //! @SYMTestCaseDesc          The test is to set trust to a X509 CA certficate CAX1 in the CertStore and get notification.
       
   302 
       
   303 //! @SYMPREQ                  226
       
   304 
       
   305 //! @SYMTestCasePriority      High
       
   306 
       
   307 //! @SYMTestExpectedResults   KErrNone
       
   308 
       
   309 //! @SYMTestActions           1) 5.1.3.2,set the trust for CAX1 with notification
       
   310 
       
   311 RUN_TEST_STEP                 -1    CTestHandler        settrust               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.2-001
       
   312 
       
   313 END_TESTCASE                  UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.2
       
   314 
       
   315 
       
   316 
       
   317 
       
   318 
       
   319 START_TESTCASE                UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.3
       
   320 
       
   321 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.3
       
   322 
       
   323 //! @file                     
       
   324 
       
   325 //! @SYMTestCaseDesc          The test is to set application to a X509 CA certficate CAX2 in the CertStore and get notification.
       
   326 
       
   327 //! @SYMPREQ                  226
       
   328 
       
   329 //! @SYMTestCasePriority      High
       
   330 
       
   331 //! @SYMTestExpectedResults   KErrNone
       
   332 
       
   333 //! @SYMTestActions           1) 5.1.3.3,Set applications to the CAX2 certificate with notification
       
   334 
       
   335 RUN_TEST_STEP                 -1    CTestHandler        setapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.3-001
       
   336 
       
   337 END_TESTCASE                  UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.3
       
   338 
       
   339 
       
   340 
       
   341 
       
   342 
       
   343 START_TESTCASE                UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.4
       
   344 
       
   345 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.4
       
   346 
       
   347 //! @file                     
       
   348 
       
   349 //! @SYMTestCaseDesc          The test is to set trust to a X509 CA certficate CAX2 in the CertStore and get notification.
       
   350 
       
   351 //! @SYMPREQ                  226
       
   352 
       
   353 //! @SYMTestCasePriority      High
       
   354 
       
   355 //! @SYMTestExpectedResults   KErrNone
       
   356 
       
   357 //! @SYMTestActions           1) 5.1.3.4,set the trust for CAX2 with notification
       
   358 
       
   359 RUN_TEST_STEP                 -1    CTestHandler        settrust               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.4-001
       
   360 
       
   361 END_TESTCASE                  UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.4
       
   362 
       
   363 
       
   364 
       
   365 
       
   366 
       
   367 START_TESTCASE                UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.5
       
   368 
       
   369 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.5
       
   370 
       
   371 //! @file                     
       
   372 
       
   373 //! @SYMTestCaseDesc          The test is to set application to a X509 CA certficate CAX3 in the CertStore and get notification.
       
   374 
       
   375 //! @SYMPREQ                  226
       
   376 
       
   377 //! @SYMTestCasePriority      High
       
   378 
       
   379 //! @SYMTestExpectedResults   KErrNone
       
   380 
       
   381 //! @SYMTestActions           1) 5.1.3.5,Set applications to the CAX3 certificate with notification
       
   382 
       
   383 RUN_TEST_STEP                 -1    CTestHandler        setapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.5-001
       
   384 
       
   385 END_TESTCASE                  UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.5
       
   386 
       
   387 
       
   388 
       
   389 
       
   390 
       
   391 START_TESTCASE                UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6
       
   392 
       
   393 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6
       
   394 
       
   395 //! @file                     
       
   396 
       
   397 //! @SYMTestCaseDesc          The test is to set trust to a X509 CA certficate CAX3 in the CertStore and get notification.
       
   398 
       
   399 //! @SYMPREQ                  226
       
   400 
       
   401 //! @SYMTestCasePriority      High
       
   402 
       
   403 //! @SYMTestExpectedResults   KErrNone
       
   404 
       
   405 //! @SYMTestActions           1) 5.1.3.6,set the trust for CAX3 with notification
       
   406 
       
   407 //!                           2) 5.1.3.7,Get applications for CAX1
       
   408 
       
   409 //!                           3) 5.1.3.8,Get the trust for CAX1
       
   410 
       
   411 //!                           4) 5.1.3.9,Get applications for CAX2
       
   412 
       
   413 //!                           5) 5.1.3.10,Get the trust for CAX2
       
   414 
       
   415 //!                           6) 5.1.3.11,Get applications for CAX3
       
   416 
       
   417 //!                           7) 5.1.3.12,Get the trust for CAX3
       
   418 
       
   419 RUN_TEST_STEP                 -1    CTestHandler        settrust               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6-001
       
   420 
       
   421 RUN_TEST_STEP                 -1    CTestHandler        getapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6-002
       
   422 
       
   423 RUN_TEST_STEP                 -1    CTestHandler        gettrusters            unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6-003
       
   424 
       
   425 RUN_TEST_STEP                 -1    CTestHandler        getapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6-004
       
   426 
       
   427 RUN_TEST_STEP                 -1    CTestHandler        gettrusters            unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6-005
       
   428 
       
   429 RUN_TEST_STEP                 -1    CTestHandler        getapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6-006
       
   430 
       
   431 RUN_TEST_STEP                 -1    CTestHandler        gettrusters            unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6-007
       
   432 
       
   433 END_TESTCASE                  UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.6
       
   434 
       
   435 
       
   436 
       
   437 
       
   438 
       
   439 START_TESTCASE                UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.13
       
   440 
       
   441 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.13
       
   442 
       
   443 //! @file                     
       
   444 
       
   445 //! @SYMTestCaseDesc          The test is to set application to a WTLS CA certficate CAW2 in the CertStore and get notification.
       
   446 
       
   447 //! @SYMPREQ                  226
       
   448 
       
   449 //! @SYMTestCasePriority      High
       
   450 
       
   451 //! @SYMTestExpectedResults   KErrNone
       
   452 
       
   453 //! @SYMTestActions           1) 5.1.3.13,Set trusters to the CAW2 certificate with notification
       
   454 
       
   455 RUN_TEST_STEP                 -1    CTestHandler        setapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.13-001
       
   456 
       
   457 END_TESTCASE                  UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.13
       
   458 
       
   459 
       
   460 
       
   461 
       
   462 
       
   463 START_TESTCASE                UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.14
       
   464 
       
   465 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.14
       
   466 
       
   467 //! @file                     
       
   468 
       
   469 //! @SYMTestCaseDesc          The test is to set trust to a WTLS CA certficate CAW2 in the CertStore and get notification.
       
   470 
       
   471 //! @SYMPREQ                  226
       
   472 
       
   473 //! @SYMTestCasePriority      High
       
   474 
       
   475 //! @SYMTestExpectedResults   KErrNone
       
   476 
       
   477 //! @SYMTestActions           1) 5.1.3.14,set the trust for CAW2 with notification
       
   478 
       
   479 RUN_TEST_STEP                 -1    CTestHandler        settrust               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.14-001
       
   480 
       
   481 END_TESTCASE                  UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.14
       
   482 
       
   483 
       
   484 
       
   485 
       
   486 
       
   487 START_TESTCASE                UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.15
       
   488 
       
   489 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.15
       
   490 
       
   491 //! @file                     
       
   492 
       
   493 //! @SYMTestCaseDesc          The test is to set application to a WTLS CA certficate CAW3 in the CertStore and get notification.
       
   494 
       
   495 //! @SYMPREQ                  226
       
   496 
       
   497 //! @SYMTestCasePriority      High
       
   498 
       
   499 //! @SYMTestExpectedResults   KErrNone
       
   500 
       
   501 //! @SYMTestActions           1) 5.1.3.15,Set trusters to the CAW3 certificate with notification
       
   502 
       
   503 RUN_TEST_STEP                 -1    CTestHandler        setapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.15-001
       
   504 
       
   505 END_TESTCASE                  UCTSSEC-CT-WMODEUCTSAPPCWN5.1.3.15
       
   506 
       
   507 
       
   508 
       
   509 
       
   510 
       
   511 START_TESTCASE                UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16
       
   512 
       
   513 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16
       
   514 
       
   515 //! @file                     
       
   516 
       
   517 //! @SYMTestCaseDesc          The test is to set trust to a WTLS CA certficate CAW3 in the CertStore and get notification.
       
   518 
       
   519 //! @SYMPREQ                  226
       
   520 
       
   521 //! @SYMTestCasePriority      High
       
   522 
       
   523 //! @SYMTestExpectedResults   KErrNone
       
   524 
       
   525 //! @SYMTestActions           1) 5.1.3.16,set the trust for CAW3 with notification
       
   526 
       
   527 //!                           2) 5.1.3.17,Get applications for CAW1
       
   528 
       
   529 //!                           3) 5.1.3.18,Get the trust for CAW1
       
   530 
       
   531 //!                           4) 5.1.3.19,Get applications for CAW2
       
   532 
       
   533 //!                           5) 5.1.3.20,Get the trust for CAW2
       
   534 
       
   535 //!                           6) 5.1.3.21,Get applications for CAW3
       
   536 
       
   537 //!                           7) 5.1.3.22,Get the trust for CAW3
       
   538 
       
   539 RUN_TEST_STEP                 -1    CTestHandler        settrust               unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16-001
       
   540 
       
   541 RUN_TEST_STEP                 -1    CTestHandler        getapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16-002
       
   542 
       
   543 RUN_TEST_STEP                 -1    CTestHandler        gettrusters            unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16-003
       
   544 
       
   545 RUN_TEST_STEP                 -1    CTestHandler        getapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16-004
       
   546 
       
   547 RUN_TEST_STEP                 -1    CTestHandler        gettrusters            unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16-005
       
   548 
       
   549 RUN_TEST_STEP                 -1    CTestHandler        getapplications        unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16-006
       
   550 
       
   551 RUN_TEST_STEP                 -1    CTestHandler        gettrusters            unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16-007
       
   552 
       
   553 END_TESTCASE                  UCTSSEC-CT-WMODEUCTSTRUSTCWN5.1.3.16
       
   554 
       
   555 
       
   556 
       
   557 
       
   558 
       
   559 START_TESTCASE                SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018
       
   560 
       
   561 //! @SYMTestCaseID            SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018
       
   562 
       
   563 //! @SYMTestCaseDesc          5.1.4 Successfull addition and retrieval of user certificates
       
   564 
       
   565 //! @SYMTestActions           1) 1.1.0.4 Import a RSA key
       
   566 
       
   567 //!                           2) 1.1.0.5 Import a RSA key
       
   568 
       
   569 //!                           3) 1.1.0.6 Import a RSA key
       
   570 
       
   571 //!                           4) 5.1.4.1, Add certificate rsacert1 ***NEW***
       
   572 
       
   573 //!                           5) 5.1.4.2,Add the certificate rsacert2 ***NEW***
       
   574 
       
   575 //!                           6) 5.1.4.3,Add the certificate rsacert3 ***NEW***
       
   576 
       
   577 //!                           7) 5.1.4.4.a,Get the list of certificates
       
   578 
       
   579 //!                           8) 5.1.4.4.b,Get the list of certificates
       
   580 
       
   581 //!                           9) 5.1.4.4.c,Retrieve rsacert1 cert
       
   582 
       
   583 RUN_TEST_STEP                 -1    CTestHandler        importkey              unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-001
       
   584 
       
   585 RUN_TEST_STEP                 -1    CTestHandler        importkey              unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-002
       
   586 
       
   587 RUN_TEST_STEP                 -1    CTestHandler        importkey              unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-003
       
   588 
       
   589 RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-004
       
   590 
       
   591 RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-005
       
   592 
       
   593 RUN_TEST_STEP                 -1    CTestHandler        addcert                unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-006
       
   594 
       
   595 RUN_TEST_STEP                 -1    CTestHandler        listcert               unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-007
       
   596 
       
   597 RUN_TEST_STEP                 -1    CTestHandler        listcert               unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-008
       
   598 
       
   599 RUN_TEST_STEP                 -1    CTestHandler        retrieve               unifiedcertstore2-conf2.ini   SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018-009
       
   600 
       
   601 END_TESTCASE                  SEC-CERTMAN-UNIFIEDCERTSTORE2-CONF2-0018
       
   602 
       
   603 
       
   604 
       
   605 
       
   606 
       
   607 START_TESTCASE                UCTSSEC-CT-WMODEUCTDELCWN1.1
       
   608 
       
   609 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTDELCWN1.1
       
   610 
       
   611 //! @file                     
       
   612 
       
   613 //! @SYMTestCaseDesc          The test is to delete a X509 CA certficate CAX1 in the CertStore and get notification.
       
   614 
       
   615 //! @SYMPREQ                  226
       
   616 
       
   617 //! @SYMTestCasePriority      High
       
   618 
       
   619 //! @SYMTestExpectedResults   KErrNone
       
   620 
       
   621 //! @SYMTestActions           1) No Test,Deleting the certificate CAX1 with notification
       
   622 
       
   623 RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.1-001
       
   624 
       
   625 END_TESTCASE                  UCTSSEC-CT-WMODEUCTDELCWN1.1
       
   626 
       
   627 
       
   628 
       
   629 
       
   630 
       
   631 START_TESTCASE                UCTSSEC-CT-WMODEUCTDELCWN1.2
       
   632 
       
   633 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTDELCWN1.2
       
   634 
       
   635 //! @file                     
       
   636 
       
   637 //! @SYMTestCaseDesc          The test is to delete a X509 CA certficate CAX2 in the CertStore and get notification.
       
   638 
       
   639 //! @SYMPREQ                  226
       
   640 
       
   641 //! @SYMTestCasePriority      High
       
   642 
       
   643 //! @SYMTestExpectedResults   KErrNone
       
   644 
       
   645 //! @SYMTestActions           1) No Test,Deleting the certificate CAX2 with notification
       
   646 
       
   647 RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.2-001
       
   648 
       
   649 END_TESTCASE                  UCTSSEC-CT-WMODEUCTDELCWN1.2
       
   650 
       
   651 
       
   652 
       
   653 
       
   654 
       
   655 START_TESTCASE                UCTSSEC-CT-WMODEUCTDELCWN1.3
       
   656 
       
   657 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTDELCWN1.3
       
   658 
       
   659 //! @file                     
       
   660 
       
   661 //! @SYMTestCaseDesc          The test is to delete a X509 CA certficate CAX3 in the CertStore and get notification.
       
   662 
       
   663 //! @SYMPREQ                  226
       
   664 
       
   665 //! @SYMTestCasePriority      High
       
   666 
       
   667 //! @SYMTestExpectedResults   KErrNone
       
   668 
       
   669 //! @SYMTestActions           1) No Test,Deleting the certificate CAX3 with notification
       
   670 
       
   671 RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.3-001
       
   672 
       
   673 END_TESTCASE                  UCTSSEC-CT-WMODEUCTDELCWN1.3
       
   674 
       
   675 
       
   676 
       
   677 
       
   678 
       
   679 START_TESTCASE                UCTSSEC-CT-WMODEUCTDELCWN1.4
       
   680 
       
   681 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTDELCWN1.4
       
   682 
       
   683 //! @file                     
       
   684 
       
   685 //! @SYMTestCaseDesc          The test is to delete a WTLS CA certficate CAW1 in the CertStore and get notification.
       
   686 
       
   687 //! @SYMPREQ                  226
       
   688 
       
   689 //! @SYMTestCasePriority      High
       
   690 
       
   691 //! @SYMTestExpectedResults   KErrNone
       
   692 
       
   693 //! @SYMTestActions           1) No Test,Deleting the certificate CAW1 with notification
       
   694 
       
   695 RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.4-001
       
   696 
       
   697 END_TESTCASE                  UCTSSEC-CT-WMODEUCTDELCWN1.4
       
   698 
       
   699 
       
   700 
       
   701 
       
   702 
       
   703 START_TESTCASE                UCTSSEC-CT-WMODEUCTDELCWN1.5
       
   704 
       
   705 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTDELCWN1.5
       
   706 
       
   707 //! @file                     
       
   708 
       
   709 //! @SYMTestCaseDesc          The test is to delete a WTLS CA certficate CAW2 in the CertStore and get notification.
       
   710 
       
   711 //! @SYMPREQ                  226
       
   712 
       
   713 //! @SYMTestCasePriority      High
       
   714 
       
   715 //! @SYMTestExpectedResults   KErrNone
       
   716 
       
   717 //! @SYMTestActions           1) No Test,Deleting the certificate CAW2 with notification
       
   718 
       
   719 RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.5-001
       
   720 
       
   721 END_TESTCASE                  UCTSSEC-CT-WMODEUCTDELCWN1.5
       
   722 
       
   723 
       
   724 
       
   725 
       
   726 
       
   727 START_TESTCASE                UCTSSEC-CT-WMODEUCTDELCWN1.6
       
   728 
       
   729 //! @SYMTestCaseID            UCTSSEC-CT-WMODEUCTDELCWN1.6
       
   730 
       
   731 //! @file                     
       
   732 
       
   733 //! @SYMTestCaseDesc          The test is to delete a WTLS CA certficate CAW3 in the CertStore and get notification.
       
   734 
       
   735 //! @SYMPREQ                  226
       
   736 
       
   737 //! @SYMTestCasePriority      High
       
   738 
       
   739 //! @SYMTestExpectedResults   KErrNone
       
   740 
       
   741 //! @SYMTestActions           1) No Test,Deleting the certificate CAW3 with notification
       
   742 
       
   743 //!                           2) No Test,Deleting the certificate rsacert1 ***NEW***
       
   744 
       
   745 //!                           3) No Test,Deleting the certificate rsacert2 ***NEW***
       
   746 
       
   747 //!                           4) No Test,Deleting the certificate rsacert3 ***NEW***
       
   748 
       
   749 //!                           5) No Test,Deleting the writable certificate store manager
       
   750 
       
   751 //!                           6) No Test,Opening a CertificateAppInfoManager
       
   752 
       
   753 //!                           7) No Test,Deleting the client A1
       
   754 
       
   755 //!                           8) No Test,Deleting the client A2
       
   756 
       
   757 //!                           9) No Test,Deleting the client A3
       
   758 
       
   759 //!                           10) No Test,Deleting the client A4
       
   760 
       
   761 //!                           11) No Test,Deleting the CertificateAppInfoManager
       
   762 
       
   763 RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.6-001
       
   764 
       
   765 RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.6-002
       
   766 
       
   767 RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.6-003
       
   768 
       
   769 RUN_TEST_STEP                 -1    CTestHandler        deletecert             unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.6-004
       
   770 
       
   771 RUN_TEST_STEP                 -1    CTestHandler        delete              
       
   772 
       
   773 RUN_TEST_STEP                 -1    CTestHandler        initappmanager      
       
   774 
       
   775 RUN_TEST_STEP                 -1    CTestHandler        removeclient           unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.6-007
       
   776 
       
   777 RUN_TEST_STEP                 -1    CTestHandler        removeclient           unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.6-008
       
   778 
       
   779 RUN_TEST_STEP                 -1    CTestHandler        removeclient           unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.6-009
       
   780 
       
   781 RUN_TEST_STEP                 -1    CTestHandler        removeclient           unifiedcertstore2-conf2.ini   UCTSSEC-CT-WMODEUCTDELCWN1.6-010
       
   782 
       
   783 RUN_TEST_STEP                 -1    CTestHandler        deleteappmanager    
       
   784 
       
   785 END_TESTCASE                  UCTSSEC-CT-WMODEUCTDELCWN1.6
       
   786 
       
   787 
       
   788 
       
   789 
       
   790 
       
   791 START_TESTCASE                UCTSSEC-CT-RMODEUCTWITHSS5.6
       
   792 
       
   793 //! @SYMTestCaseID            UCTSSEC-CT-RMODEUCTWITHSS5.6
       
   794 
       
   795 //! @file                     
       
   796 
       
   797 //! @SYMTestCaseDesc          The test is to open one UnifiedCertStore in read mode with the
       
   798 
       
   799 //!                           sequence of UICC, WIM, unknown hardware, SIM, ManufactureSoftware and ThirdpartySoftware cerstore
       
   800 
       
   801 //!                           implementations, and expect the correct order.The test needs
       
   802 
       
   803 //!                           tadditionalstores.dll enabled
       
   804 
       
   805 //! @SYMPREQ                  226
       
   806 
       
   807 //! @SYMTestCasePriority      High
       
   808 
       
   809 //! @SYMTestExpectedResults   KErrNone
       
   810 
       
   811 //! @SYMTestActions           1) 5.6,Opening a read-only certificate store manager
       
   812 
       
   813 //!                           2) 0.2,Deleting the second read-only certificate store manager
       
   814 
       
   815 RUN_TEST_STEP                 -1    CTestHandler        init                   unifiedcertstore2-conf2.ini   UCTSSEC-CT-RMODEUCTWITHSS5.6-001
       
   816 
       
   817 RUN_TEST_STEP                 -1    CTestHandler        delete              
       
   818 
       
   819 END_TESTCASE                  UCTSSEC-CT-RMODEUCTWITHSS5.6
       
   820 
       
   821 
       
   822 
       
   823 
       
   824