os/security/cryptoservices/filebasedcertificateandkeystores/test/tkeystore/scripts/reload.script
First public contribution.
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".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
17 START_TESTCASE SEC-FILETOKENS-RELOAD-0001
19 //! @SYMTestCaseID SEC-FILETOKENS-RELOAD-0001
23 //! @SYMTestActions 1) 1.0.0.0,Opening key store in manager mode
25 //! 2) 1.0 Delete everything * Test keystore close & reload consistency *
27 //! 3) 1.1.2 Import a RSA key
29 //! 4) 1.1.3 Set passphrase timeout to "don't cache"
31 //! 5) 1.1.4 Import a DSA key
33 //! 6) 1.1.5 List everything (TEST ID: GT0140-KEY001)
35 //! 7) 1.1.6 Closing key store
37 //! 8) 1.1.7 Sleep 5 seconds
39 //! 9) 1.1.8 Opening key store in manager mode
41 //! 10) 1.1.9 List everything (TEST ID: GT0140-KEY001)
43 RUN_TEST_STEP -1 CTestHandler init reload.ini SEC-FILETOKENS-RELOAD-0001-001
45 RUN_TEST_STEP -1 CTestHandler deletekeys
47 RUN_TEST_STEP -1 CTestHandler importkey reload.ini SEC-FILETOKENS-RELOAD-0001-003
49 RUN_TEST_STEP -1 CTestHandler settimeout reload.ini SEC-FILETOKENS-RELOAD-0001-004
51 RUN_TEST_STEP -1 CTestHandler importkey reload.ini SEC-FILETOKENS-RELOAD-0001-005
53 RUN_TEST_STEP -1 CTestHandler listkeys reload.ini SEC-FILETOKENS-RELOAD-0001-006
55 RUN_TEST_STEP -1 CTestHandler delete
57 RUN_TEST_STEP -1 CTestHandler sleep reload.ini SEC-FILETOKENS-RELOAD-0001-008
59 RUN_TEST_STEP -1 CTestHandler init reload.ini SEC-FILETOKENS-RELOAD-0001-009
61 RUN_TEST_STEP -1 CTestHandler listkeys reload.ini SEC-FILETOKENS-RELOAD-0001-010
63 END_TESTCASE SEC-FILETOKENS-RELOAD-0001
69 START_TESTCASE SEC-FILETOKENS-RELOAD-0002
71 //! @SYMTestCaseID SEC-FILETOKENS-RELOAD-0002
73 //! @SYMTestCaseDesc Test keys still work ok
75 //! @SYMTestActions 1) 1.1.10.0,Get it again
77 //! 2) 1.1.10.1,Open it
79 //! 3) 1.1.10.2,Open a gm0_rsa for decrypt
83 //! 5) 1.1.10.2.1, Sign with a gm0_rsa, 20 char text
85 //! 6) 1.1.10.2.2, Sign with a gm0_rsa, 32 char text
87 //! 7) 1.1.10.2.2.1, Sign digest with a gm0_rsa
89 //! 8) 1.1.10.2.3, Sign digest with a gm0_rsa, text too large
91 //! 9) 1.1.10.3,Open a gm0_rsa as a DSA key
93 //! 10) 1.1.10.4,Open a gm0_rsa as a DH key
95 //! 11) 1.1.11,Get it again
97 //! 12) 1.1.11.1, Sign with a gm1_dsa, 20 char text
99 //! 13) 1.1.11.2, Sign with gm1_dsa, text too long (21 chars)
101 //! 14) 1.1.11.2, Sign digest with gm1_dsa
103 //! 15) 1.1.11.3, Sign digest with a gm1_dsa, fail hash
105 RUN_TEST_STEP -1 CTestHandler getkeyinfo reload.ini SEC-FILETOKENS-RELOAD-0002-001
107 RUN_TEST_STEP -1 CTestHandler open reload.ini SEC-FILETOKENS-RELOAD-0002-002
109 RUN_TEST_STEP -1 CTestHandler open reload.ini SEC-FILETOKENS-RELOAD-0002-003
111 RUN_TEST_STEP -1 CTestHandler decrypt reload.ini SEC-FILETOKENS-RELOAD-0002-004
113 RUN_TEST_STEP -1 CTestHandler sign reload.ini SEC-FILETOKENS-RELOAD-0002-005
115 RUN_TEST_STEP -1 CTestHandler sign reload.ini SEC-FILETOKENS-RELOAD-0002-006
117 RUN_TEST_STEP -1 CTestHandler sign reload.ini SEC-FILETOKENS-RELOAD-0002-007
119 RUN_TEST_STEP !Error=-9 -1 CTestHandler sign reload.ini SEC-FILETOKENS-RELOAD-0002-008
121 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open reload.ini SEC-FILETOKENS-RELOAD-0002-009
123 RUN_TEST_STEP !Error=-11006 -1 CTestHandler open reload.ini SEC-FILETOKENS-RELOAD-0002-010
125 RUN_TEST_STEP -1 CTestHandler getkeyinfo reload.ini SEC-FILETOKENS-RELOAD-0002-011
127 RUN_TEST_STEP -1 CTestHandler sign reload.ini SEC-FILETOKENS-RELOAD-0002-012
129 RUN_TEST_STEP !Error=-9 -1 CTestHandler sign reload.ini SEC-FILETOKENS-RELOAD-0002-013
131 RUN_TEST_STEP -1 CTestHandler sign reload.ini SEC-FILETOKENS-RELOAD-0002-014
133 RUN_TEST_STEP !Error=-2 -1 CTestHandler sign reload.ini SEC-FILETOKENS-RELOAD-0002-015
135 END_TESTCASE SEC-FILETOKENS-RELOAD-0002
141 START_TESTCASE SEC-FILETOKENS-RELOAD-0003
143 //! @SYMTestCaseID SEC-FILETOKENS-RELOAD-0003
147 //! @SYMTestActions 1) 1.2.0.0 Test keystore copy-from-rom-if-not-found behaviour
149 //! 2) 1.2.0.1 Closing key store
151 //! 3) 1.2.0.2 Sleep 5 seconds, when we wake up keys.dat is not in use anymore
153 //! 4) 1.2.1 Delete keystore data file
155 //! 5) 1.2.2 Opening key store in manager mode
157 //! 6) 1.2.3 List everything (rom keystore contains 2 keys)
159 //! 7) 1.2.4 Import a DSA key
161 //! 8) 1.2.5 List everything
163 //! 9) 1.3.0 Test keystore copy-from-rom-if-corrupt behaviour (store open, canot corrupt)
165 //! 10) 1.2.5 List everything
167 //! 11) 1.2.6 Closing key store
169 //! 12) 1.2.7 Sleep 5 seconds, when we wake up keys.dat is not in use anymore
171 //! 13) 1.2.8 Test keystore copy-from-rom-if-corrupt behaviour
173 //! 14) 1.2.2 Opening key store in manager mode
175 //! 15) 1.2.9 List everything (rom keystore contains 2 keys)
177 //! 16) 1.2.10 Delete everything
179 //! 17) 1.2.11 Closing key store
181 //! 18) 1.2.12, Sleep 5 seconds
183 //! 19) 1.2.13, Check for server heap error
185 RUN_TEST_STEP -1 CTestHandler deletekeys
187 RUN_TEST_STEP -1 CTestHandler delete
189 RUN_TEST_STEP -1 CTestHandler sleep reload.ini SEC-FILETOKENS-RELOAD-0003-003
191 RUN_TEST_STEP -1 CTestHandler deletekeystoredata
193 RUN_TEST_STEP -1 CTestHandler init reload.ini SEC-FILETOKENS-RELOAD-0003-005
195 RUN_TEST_STEP -1 CTestHandler listkeys reload.ini SEC-FILETOKENS-RELOAD-0003-006
197 RUN_TEST_STEP -1 CTestHandler importkey reload.ini SEC-FILETOKENS-RELOAD-0003-007
199 RUN_TEST_STEP -1 CTestHandler listkeys reload.ini SEC-FILETOKENS-RELOAD-0003-008
201 RUN_TEST_STEP !Error=-14 -1 CTestHandler corrupt reload.ini SEC-FILETOKENS-RELOAD-0003-009
203 RUN_TEST_STEP -1 CTestHandler listkeys reload.ini SEC-FILETOKENS-RELOAD-0003-010
205 RUN_TEST_STEP -1 CTestHandler delete
207 RUN_TEST_STEP -1 CTestHandler sleep reload.ini SEC-FILETOKENS-RELOAD-0003-012
209 RUN_TEST_STEP -1 CTestHandler corrupt reload.ini SEC-FILETOKENS-RELOAD-0003-013
211 RUN_TEST_STEP -1 CTestHandler init reload.ini SEC-FILETOKENS-RELOAD-0003-014
213 RUN_TEST_STEP -1 CTestHandler listkeys reload.ini SEC-FILETOKENS-RELOAD-0003-015
215 RUN_TEST_STEP -1 CTestHandler deletekeys
217 RUN_TEST_STEP -1 CTestHandler delete
219 RUN_TEST_STEP -1 CTestHandler sleep reload.ini SEC-FILETOKENS-RELOAD-0003-018
221 RUN_TEST_STEP -1 CTestHandler checkserverheaperror
223 END_TESTCASE SEC-FILETOKENS-RELOAD-0003