os/security/cryptoservices/filebasedcertificateandkeystores/test/tkeystore/scripts/reload.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 "Eclipse Public License v1.0"
     6 // which accompanies this distribution, and is available
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 //
     9 // Initial Contributors:
    10 // Nokia Corporation - initial contribution.
    11 //
    12 // Contributors:
    13 //
    14 // Description: 
    15 //
    16 
    17 START_TESTCASE                SEC-FILETOKENS-RELOAD-0001
    18 
    19 //! @SYMTestCaseID            SEC-FILETOKENS-RELOAD-0001
    20 
    21 //! @SYMTestCaseDesc          
    22 
    23 //! @SYMTestActions           1) 1.0.0.0,Opening key store in manager mode
    24 
    25 //!                           2) 1.0 Delete everything * Test keystore close & reload consistency *
    26 
    27 //!                           3) 1.1.2 Import a RSA key
    28 
    29 //!                           4) 1.1.3 Set passphrase timeout to "don't cache"
    30 
    31 //!                           5) 1.1.4 Import a DSA key
    32 
    33 //!                           6) 1.1.5 List everything (TEST ID: GT0140-KEY001)
    34 
    35 //!                           7) 1.1.6 Closing key store
    36 
    37 //!                           8) 1.1.7 Sleep 5 seconds
    38 
    39 //!                           9) 1.1.8 Opening key store in manager mode
    40 
    41 //!                           10) 1.1.9 List everything (TEST ID: GT0140-KEY001)
    42 
    43 RUN_TEST_STEP                 -1    CTestHandler        init                   reload.ini   SEC-FILETOKENS-RELOAD-0001-001
    44 
    45 RUN_TEST_STEP                 -1    CTestHandler        deletekeys          
    46 
    47 RUN_TEST_STEP                 -1    CTestHandler        importkey              reload.ini   SEC-FILETOKENS-RELOAD-0001-003
    48 
    49 RUN_TEST_STEP                 -1    CTestHandler        settimeout             reload.ini   SEC-FILETOKENS-RELOAD-0001-004
    50 
    51 RUN_TEST_STEP                 -1    CTestHandler        importkey              reload.ini   SEC-FILETOKENS-RELOAD-0001-005
    52 
    53 RUN_TEST_STEP                 -1    CTestHandler        listkeys               reload.ini   SEC-FILETOKENS-RELOAD-0001-006
    54 
    55 RUN_TEST_STEP                 -1    CTestHandler        delete              
    56 
    57 RUN_TEST_STEP                 -1    CTestHandler        sleep                  reload.ini   SEC-FILETOKENS-RELOAD-0001-008
    58 
    59 RUN_TEST_STEP                 -1    CTestHandler        init                   reload.ini   SEC-FILETOKENS-RELOAD-0001-009
    60 
    61 RUN_TEST_STEP                 -1    CTestHandler        listkeys               reload.ini   SEC-FILETOKENS-RELOAD-0001-010
    62 
    63 END_TESTCASE                  SEC-FILETOKENS-RELOAD-0001
    64 
    65 
    66 
    67 
    68 
    69 START_TESTCASE                SEC-FILETOKENS-RELOAD-0002
    70 
    71 //! @SYMTestCaseID            SEC-FILETOKENS-RELOAD-0002
    72 
    73 //! @SYMTestCaseDesc          Test keys still work ok
    74 
    75 //! @SYMTestActions           1) 1.1.10.0,Get it again
    76 
    77 //!                           2) 1.1.10.1,Open it
    78 
    79 //!                           3) 1.1.10.2,Open a gm0_rsa for decrypt
    80 
    81 //!                           4) Decrypt
    82 
    83 //!                           5) 1.1.10.2.1, Sign with a gm0_rsa, 20 char text
    84 
    85 //!                           6) 1.1.10.2.2, Sign with a gm0_rsa, 32 char text
    86 
    87 //!                           7) 1.1.10.2.2.1, Sign digest with a gm0_rsa
    88 
    89 //!                           8) 1.1.10.2.3, Sign digest with a gm0_rsa, text too large
    90 
    91 //!                           9) 1.1.10.3,Open a gm0_rsa as a DSA key
    92 
    93 //!                           10) 1.1.10.4,Open a gm0_rsa as a DH key
    94 
    95 //!                           11) 1.1.11,Get it again
    96 
    97 //!                           12) 1.1.11.1, Sign with a gm1_dsa, 20 char text
    98 
    99 //!                           13) 1.1.11.2, Sign with gm1_dsa, text too long (21 chars)
   100 
   101 //!                           14) 1.1.11.2, Sign digest with gm1_dsa
   102 
   103 //!                           15) 1.1.11.3, Sign digest with a gm1_dsa, fail hash
   104 
   105 RUN_TEST_STEP                 -1    CTestHandler        getkeyinfo             reload.ini   SEC-FILETOKENS-RELOAD-0002-001
   106 
   107 RUN_TEST_STEP                 -1    CTestHandler        open                   reload.ini   SEC-FILETOKENS-RELOAD-0002-002
   108 
   109 RUN_TEST_STEP                 -1    CTestHandler        open                   reload.ini   SEC-FILETOKENS-RELOAD-0002-003
   110 
   111 RUN_TEST_STEP                 -1    CTestHandler        decrypt                reload.ini   SEC-FILETOKENS-RELOAD-0002-004
   112 
   113 RUN_TEST_STEP                 -1    CTestHandler        sign                   reload.ini   SEC-FILETOKENS-RELOAD-0002-005
   114 
   115 RUN_TEST_STEP                 -1    CTestHandler        sign                   reload.ini   SEC-FILETOKENS-RELOAD-0002-006
   116 
   117 RUN_TEST_STEP                 -1    CTestHandler        sign                   reload.ini   SEC-FILETOKENS-RELOAD-0002-007
   118 
   119 RUN_TEST_STEP !Error=-9       -1    CTestHandler        sign                   reload.ini   SEC-FILETOKENS-RELOAD-0002-008
   120 
   121 RUN_TEST_STEP !Error=-11006   -1    CTestHandler        open                   reload.ini   SEC-FILETOKENS-RELOAD-0002-009
   122 
   123 RUN_TEST_STEP !Error=-11006   -1    CTestHandler        open                   reload.ini   SEC-FILETOKENS-RELOAD-0002-010
   124 
   125 RUN_TEST_STEP                 -1    CTestHandler        getkeyinfo             reload.ini   SEC-FILETOKENS-RELOAD-0002-011
   126 
   127 RUN_TEST_STEP                 -1    CTestHandler        sign                   reload.ini   SEC-FILETOKENS-RELOAD-0002-012
   128 
   129 RUN_TEST_STEP !Error=-9       -1    CTestHandler        sign                   reload.ini   SEC-FILETOKENS-RELOAD-0002-013
   130 
   131 RUN_TEST_STEP                 -1    CTestHandler        sign                   reload.ini   SEC-FILETOKENS-RELOAD-0002-014
   132 
   133 RUN_TEST_STEP !Error=-2       -1    CTestHandler        sign                   reload.ini   SEC-FILETOKENS-RELOAD-0002-015
   134 
   135 END_TESTCASE                  SEC-FILETOKENS-RELOAD-0002
   136 
   137 
   138 
   139 
   140 
   141 START_TESTCASE                SEC-FILETOKENS-RELOAD-0003
   142 
   143 //! @SYMTestCaseID            SEC-FILETOKENS-RELOAD-0003
   144 
   145 //! @SYMTestCaseDesc          
   146 
   147 //! @SYMTestActions           1) 1.2.0.0 Test keystore copy-from-rom-if-not-found behaviour
   148 
   149 //!                           2) 1.2.0.1 Closing key store
   150 
   151 //!                           3) 1.2.0.2 Sleep 5 seconds, when we wake up keys.dat is not in use anymore
   152 
   153 //!                           4) 1.2.1 Delete keystore data file
   154 
   155 //!                           5) 1.2.2 Opening key store in manager mode
   156 
   157 //!                           6) 1.2.3 List everything (rom keystore contains 2 keys)
   158 
   159 //!                           7) 1.2.4 Import a DSA key
   160 
   161 //!                           8) 1.2.5 List everything
   162 
   163 //!                           9) 1.3.0 Test keystore copy-from-rom-if-corrupt behaviour (store open, canot corrupt)
   164 
   165 //!                           10) 1.2.5 List everything
   166 
   167 //!                           11) 1.2.6 Closing key store
   168 
   169 //!                           12) 1.2.7 Sleep 5 seconds, when we wake up keys.dat is not in use anymore
   170 
   171 //!                           13) 1.2.8 Test keystore copy-from-rom-if-corrupt behaviour
   172 
   173 //!                           14) 1.2.2 Opening key store in manager mode
   174 
   175 //!                           15) 1.2.9 List everything (rom keystore contains 2 keys)
   176 
   177 //!                           16) 1.2.10 Delete everything
   178 
   179 //!                           17) 1.2.11 Closing key store
   180 
   181 //!                           18) 1.2.12, Sleep 5 seconds
   182 
   183 //!                           19) 1.2.13, Check for server heap error
   184 
   185 RUN_TEST_STEP                 -1    CTestHandler        deletekeys          
   186 
   187 RUN_TEST_STEP                 -1    CTestHandler        delete              
   188 
   189 RUN_TEST_STEP                 -1    CTestHandler        sleep                  reload.ini   SEC-FILETOKENS-RELOAD-0003-003
   190 
   191 RUN_TEST_STEP                 -1    CTestHandler        deletekeystoredata  
   192 
   193 RUN_TEST_STEP                 -1    CTestHandler        init                   reload.ini   SEC-FILETOKENS-RELOAD-0003-005
   194 
   195 RUN_TEST_STEP                 -1    CTestHandler        listkeys               reload.ini   SEC-FILETOKENS-RELOAD-0003-006
   196 
   197 RUN_TEST_STEP                 -1    CTestHandler        importkey              reload.ini   SEC-FILETOKENS-RELOAD-0003-007
   198 
   199 RUN_TEST_STEP                 -1    CTestHandler        listkeys               reload.ini   SEC-FILETOKENS-RELOAD-0003-008
   200 
   201 RUN_TEST_STEP !Error=-14      -1    CTestHandler        corrupt                reload.ini   SEC-FILETOKENS-RELOAD-0003-009
   202 
   203 RUN_TEST_STEP                 -1    CTestHandler        listkeys               reload.ini   SEC-FILETOKENS-RELOAD-0003-010
   204 
   205 RUN_TEST_STEP                 -1    CTestHandler        delete              
   206 
   207 RUN_TEST_STEP                 -1    CTestHandler        sleep                  reload.ini   SEC-FILETOKENS-RELOAD-0003-012
   208 
   209 RUN_TEST_STEP                 -1    CTestHandler        corrupt                reload.ini   SEC-FILETOKENS-RELOAD-0003-013
   210 
   211 RUN_TEST_STEP                 -1    CTestHandler        init                   reload.ini   SEC-FILETOKENS-RELOAD-0003-014
   212 
   213 RUN_TEST_STEP                 -1    CTestHandler        listkeys               reload.ini   SEC-FILETOKENS-RELOAD-0003-015
   214 
   215 RUN_TEST_STEP                 -1    CTestHandler        deletekeys          
   216 
   217 RUN_TEST_STEP                 -1    CTestHandler        delete              
   218 
   219 RUN_TEST_STEP                 -1    CTestHandler        sleep                  reload.ini   SEC-FILETOKENS-RELOAD-0003-018
   220 
   221 RUN_TEST_STEP                 -1    CTestHandler        checkserverheaperror
   222 
   223 END_TESTCASE                  SEC-FILETOKENS-RELOAD-0003
   224 
   225 
   226 
   227 
   228