cryptoservices/filebasedcertificateandkeystores/test/tkeystore/scripts/thwkeystore.script
changeset 29 ece3df019add
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cryptoservices/filebasedcertificateandkeystores/test/tkeystore/scripts/thwkeystore.script	Tue Nov 24 09:06:03 2009 +0200
@@ -0,0 +1,129 @@
+//
+// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of the License "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description: 
+//
+//
+
+START_TESTCASE               SEC-FILETOKENS-THWKEYSTORE-1-0001
+
+//! @SYMTestCaseID           SEC-FILETOKENS-THWKEYSTORE-1-0001
+
+//! @SYMTestCaseDesc     
+     
+//!					////////////////////////////////////////////////////////////////////////////////////
+//!					//	Testing hardware token implementation
+//!					////////////////////////////////////////////////////////////////////////////////////
+
+//! @SYMTestActions           1) Delete keystore data file
+
+//!                           2) Retrieving label of a particular key store
+
+//!                           3) delete keys
+
+//!                           4) List Keys
+
+//!                           5) Open a key for signing
+
+//!                           6) Open a key for decryption
+
+//!                           7) Open a key for signing
+
+//!                           8) Open a key for decryption
+
+//!                           9) Open a key for signing
+
+//!                          10) Open a key for decryption
+
+//!			           11) List Keys
+
+//!                          12) Add a key
+
+//!                          13) Get key information
+
+//!                          14) Open a key as a RSA signer
+
+//!                          15) Open a key as a DSA signer
+
+//!                          16) Open key for decrypt
+
+//!                          17) Import a key
+
+//!                          18) Import a PKCS5 encrypted RSA key
+
+//!                          19) Export a key
+
+//!                          20) Set use policy
+
+//!                          21) Open key for decrypt
+
+//!                          22) Set use policy
+
+//!                          23) Delete a key
+
+//!                          24) Closing key store
+
+//!                          25) Sleep 5 seconds
+
+
+RUN_TEST_STEP -1 CTestHandler deletekeystoredata
+
+RUN_TEST_STEP -1 CTestHandler init thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-002
+
+RUN_TEST_STEP -1 CTestHandler deletekeys
+
+RUN_TEST_STEP -1 CTestHandler listallkeys thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-004
+
+RUN_TEST_STEP -1 CTestHandler open thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-005
+
+RUN_TEST_STEP -1 CTestHandler open thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-006
+
+RUN_TEST_STEP -1 CTestHandler sign thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-007
+
+RUN_TEST_STEP -1 CTestHandler decrypt thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-008
+
+RUN_TEST_STEP -1 CTestHandler sign thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-009
+
+RUN_TEST_STEP -1 CTestHandler decrypt thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-010
+
+RUN_TEST_STEP -1 CTestHandler listkeys thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-011
+
+RUN_TEST_STEP !Error=-5 -1 CTestHandler addkey thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-012
+
+RUN_TEST_STEP !Error=-5 -1 CTestHandler getkeyinfo thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-013
+
+RUN_TEST_STEP !Error=-5 -1 CTestHandler open thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-014
+
+RUN_TEST_STEP !Error=-5 -1 CTestHandler open thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-015
+
+RUN_TEST_STEP !Error=-5 -1 CTestHandler open thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-016
+
+RUN_TEST_STEP !Error=-5 -1 CTestHandler importkey thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-017
+
+RUN_TEST_STEP !Error=-5 -1 CTestHandler importkey thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-018
+
+RUN_TEST_STEP !Error=-5 -1 CTestHandler exportkey thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-019
+
+RUN_TEST_STEP !Error=-5 -1 CTestHandler exportkey thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-020
+
+RUN_TEST_STEP !Error=-5 -1 CTestHandler setusepolicy thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-021
+
+RUN_TEST_STEP !Error=-5 -1 CTestHandler setmanagementpolicy thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-022
+
+RUN_TEST_STEP !Error=-5 -1 CTestHandler deletekeys thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-023
+
+RUN_TEST_STEP -1 CTestHandler delete
+
+RUN_TEST_STEP -1 CTestHandler sleep thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-025
+
+END_TESTCASE               SEC-FILETOKENS-THWKEYSTORE-1-0001