os/security/cryptoservices/filebasedcertificateandkeystores/test/ttesttools/scripts/keytool_migrate.script
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/cryptoservices/filebasedcertificateandkeystores/test/ttesttools/scripts/keytool_migrate.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,79 @@
     1.4 +//
     1.5 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// under the terms of the License "Eclipse Public License v1.0"
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description: 
    1.18 +//
    1.19 +//! @file
    1.20 +// filetokens tools unit (integration) tests
    1.21 +PRINT Run  test for migrating old keys data to new format.
    1.22 +LOAD_SUITE ttesttools
    1.23 +
    1.24 +//! @SYMTestCaseID 		SEC-FILETOKENS-DEF136406-0001
    1.25 +//! @SYMTestCaseDesc 	Migrate the old keys.dat to the new format
    1.26 +//! @SYMTestPriority	Medium
    1.27 +//! @SYMTestActions  	Call keytool to migrate key store from old to new format.
    1.28 +//! @SYMTestExpectedResults Keystore would be successfully migrated.
    1.29 +//! @SYMDevelopedForRelease Diran
    1.30 +
    1.31 +START_TESTCASE SEC-FILETOKENS-DEF136406-0001
    1.32 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_migrate.txt c:\output.txt
    1.33 +RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\keytool_migrate.ini keytool_list_migrated_keys
    1.34 +END_TESTCASE SEC-FILETOKENS-DEF136406-0001
    1.35 +
    1.36 +//! @SYMTestCaseID 		SEC-FILETOKENS-DEF136406-0002
    1.37 +//! @SYMTestCaseDesc 	Migrate the old keys.dat to the new format using default parameters
    1.38 +//! @SYMTestPriority	Medium
    1.39 +//! @SYMTestActions  	Call keytool to migrate key store from old to new format.
    1.40 +//! @SYMTestExpectedResults Keystore would be successfully migrated.
    1.41 +//! @SYMDevelopedForRelease Diran
    1.42 +
    1.43 +START_TESTCASE SEC-FILETOKENS-DEF136406-0002
    1.44 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_migrate_default.txt c:\output.txt
    1.45 +RUN_TEST_STEP 100 ttesttools CheckFile c:\ttesttools\scripts\keytool_migrate.ini keytool_migrate_default
    1.46 +END_TESTCASE SEC-FILETOKENS-DEF136406-0002
    1.47 +
    1.48 +//! @SYMTestCaseID 		SEC-FILETOKENS-DEF136406-0003
    1.49 +//! @SYMTestCaseDesc 	keytool check for mandatory parameter, name of the key file to be migrated
    1.50 +//! @SYMTestPriority	Medium
    1.51 +//! @SYMTestActions  	Call keytool to display message that mandatory param is missing.
    1.52 +//! @SYMTestExpectedResults mandatory param missing message displayed alongwith the usage.
    1.53 +//! @SYMDevelopedForRelease Diran
    1.54 +
    1.55 +START_TESTCASE SEC-FILETOKENS-DEF136406-0003
    1.56 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_migrated_param_missing1.txt c:\output.txt
    1.57 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\keytool_migrate.ini keytool_migrated_param_missing1
    1.58 +END_TESTCASE SEC-FILETOKENS-DEF136406-0003
    1.59 +
    1.60 +//! @SYMTestCaseID 		SEC-FILETOKENS-DEF136406-0004
    1.61 +//! @SYMTestCaseDesc 	keytool check for mandatory parameter, passphrase required for old key store
    1.62 +//! @SYMTestPriority	Medium
    1.63 +//! @SYMTestActions  	Call keytool to display message that mandatory param is missing.
    1.64 +//! @SYMTestExpectedResults mandatory param missing message displayed alongwith the usage.
    1.65 +//! @SYMDevelopedForRelease Diran
    1.66 +
    1.67 +START_TESTCASE SEC-FILETOKENS-DEF136406-0004
    1.68 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_migrated_param_missing2.txt c:\output.txt
    1.69 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\keytool_migrate.ini keytool_migrated_param_missing2
    1.70 +END_TESTCASE SEC-FILETOKENS-DEF136406-0004
    1.71 +
    1.72 +//! @SYMTestCaseID 		SEC-FILETOKENS-DEF136406-0005
    1.73 +//! @SYMTestCaseDesc 	keytool check for detail help for migration
    1.74 +//! @SYMTestPriority	Medium
    1.75 +//! @SYMTestActions  	Call keytool to display detail help message.
    1.76 +//! @SYMTestExpectedResults Displays detail help message for migration of old store.
    1.77 +//! @SYMDevelopedForRelease Diran
    1.78 +
    1.79 +START_TESTCASE SEC-FILETOKENS-DEF136406-0005
    1.80 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_migrated_help.txt c:\output.txt
    1.81 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\keytool_migrate.ini keytool_migrated_help
    1.82 +END_TESTCASE SEC-FILETOKENS-DEF136406-0005