cryptoservices/filebasedcertificateandkeystores/test/tkeystore/scripts/tkeystore_authentication2.script
changeset 8 35751d3474b7
child 15 da2ae96f639b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cryptoservices/filebasedcertificateandkeystores/test/tkeystore/scripts/tkeystore_authentication2.script	Thu Sep 10 14:01:51 2009 +0300
@@ -0,0 +1,152 @@
+//
+// 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 "Symbian Foundation License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+//
+
+START_TESTCASE                SEC-TKEYSTORE_AUTHENTICATION2-0001
+
+//! @SYMTestCaseID            SEC-TKEYSTORE_AUTHENTICATION2-0001
+
+//! @SYMTestCaseDesc          
+
+//! @SYMTestActions           1) Delete keystore data file
+
+//!                           2) Retrieving label of a particular key store
+
+//!                           3) Closing key store
+
+//!                           4) Retrieving label of a particular key store
+
+//!                           5) Closing key store
+
+//!                           6) 1.0.0.0.1,Opening key store 1 in manager mode
+
+//!                           7) 1.0.0.0.2,Opening key store 2 in manager mode
+
+//!                           8) 1.0.0.1.0,Add a key (TEST ID: GT0140-KEY002 and GT0140-KEY003)
+
+//!                           9) Set a new authentication policy for a key with which the user is not registered
+
+//!                           10) 1.0.0.51.1, Get it again
+
+//!                           11) 1.1.0 Import a RSA key
+
+//!                           12) List all keys specific to this user
+
+//!                           13) 1.1.5 Export a RSA key
+
+//!                           14) Delete key of the curent authenticated user (TEST ID: GT0140KEY004)
+
+//!                           15) Try to delete key of some other registered user (TEST ID: GT0140KEY004)
+
+//!                           16) Try to set authentication policy for a key of some other registered user
+
+//!                           17) Try to get authentication policy for a key of some other registered user
+
+//!                           18) Try to add a key with negative freshness value (TEST ID: GT0140-KEY002 and GT0140-KEY003)
+
+//!                           19) Try to add a key with out of range freshness value (TEST ID: GT0140-KEY002 and GT0140-KEY003)
+
+//!                           20) Try to add a key when authexpression does not exist(TEST ID: GT0140-KEY002 and GT0140-KEY003)
+
+//!                           21) Try to add a key when authexpression is very big(TEST ID: GT0140-KEY002 and GT0140-KEY003)
+
+//!                           22) 1.1.0 Import a RSA key
+
+//!                           23) 1.1.0 Import a RSA key
+
+//!                           24) 1.12.0.14 Import a PKCS5 encrypted RSA key previously exported with ECipher3DES_CBC
+
+//!                           25) 1.12.0.14 Import a PKCS5 encrypted RSA key previously exported with ECipher3DES_CBC
+
+//!                           26) Set a new authentication policy for a key with which the user is not registered
+
+//!                           27) Set a new authentication policy for a key with which the user is not registered
+
+//!                           28) 1.2.0.69.0 Closing key store 1
+
+//!                           29) 1.2.0.69.0 Closing key store 1
+
+//!                           30) 1.4.999.2, Sleep 5 seconds
+
+//!                           31) 1.4.999.3, Check for server heap error
+
+RUN_TEST_STEP                 -1    CTestHandler        deletekeystoredata  
+
+RUN_TEST_STEP                 -1    CTestHandler        init                   tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-002
+
+RUN_TEST_STEP                 -1    CTestHandler        delete              
+
+RUN_TEST_STEP !Error=-2       -1    CTestHandler        init                   tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-004
+
+RUN_TEST_STEP                 -1    CTestHandler        delete              
+
+RUN_TEST_STEP                 -1    CTestHandler        init                   tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-006
+
+RUN_TEST_STEP                 -1    CTestHandler        init                   tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-007
+
+RUN_TEST_STEP                 -1    CTestHandler        addkey                 tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-008
+
+RUN_TEST_STEP !Error=-9       -1    CTestHandler        authenticationpolicy   tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-009
+
+RUN_TEST_STEP                 -1    CTestHandler        getkeyinfo             tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-010
+
+RUN_TEST_STEP                 -1    CTestHandler        importkey              tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-011
+
+RUN_TEST_STEP                 -1    CTestHandler        listallkeys            tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-012
+
+RUN_TEST_STEP !Error=-1       -1    CTestHandler        exportkey              tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-013
+
+RUN_TEST_STEP                 -1    CTestHandler        deletekeys             tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-014
+
+RUN_TEST_STEP !Error=-1       -1    CTestHandler        deletekeys             tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-015
+
+RUN_TEST_STEP !Error=-1       -1    CTestHandler        authenticationpolicy   tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-016
+
+RUN_TEST_STEP !Error=-1       -1    CTestHandler        authenticationpolicy   tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-017
+
+RUN_TEST_STEP !Error=-9       -1    CTestHandler        addkey                 tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-018
+
+RUN_TEST_STEP !Error=-9       -1    CTestHandler        addkey                 tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-019
+
+RUN_TEST_STEP !Error=-10815   -1    CTestHandler        addkey                 tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-020
+
+RUN_TEST_STEP !Error=-10815   -1    CTestHandler        addkey                 tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-021
+
+RUN_TEST_STEP !Error=-9       -1    CTestHandler        importkey              tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-022
+
+RUN_TEST_STEP !Error=-9       -1    CTestHandler        importkey              tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-023
+
+RUN_TEST_STEP !Error=-9       -1    CTestHandler        importkey              tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-024
+
+RUN_TEST_STEP !Error=-9       -1    CTestHandler        importkey              tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-025
+
+RUN_TEST_STEP !Error=-9       -1    CTestHandler        authenticationpolicy   tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-026
+
+RUN_TEST_STEP !Error=-9       -1    CTestHandler        authenticationpolicy   tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-027
+
+RUN_TEST_STEP                 -1    CTestHandler        delete              
+
+RUN_TEST_STEP                 -1    CTestHandler        delete              
+
+RUN_TEST_STEP                 -1    CTestHandler        sleep                  tkeystore_authentication2.ini   SEC-TKEYSTORE_AUTHENTICATION2-0001-030
+
+RUN_TEST_STEP                 -1    CTestHandler        checkserverheaperror
+
+END_TESTCASE                  SEC-TKEYSTORE_AUTHENTICATION2-0001
+
+
+
+
+