os/security/cryptoservices/filebasedcertificateandkeystores/test/ttesttools/scripts/sec-filetokens-tools.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.
sl@0
     1
//
sl@0
     2
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
// All rights reserved.
sl@0
     4
// This component and the accompanying materials are made available
sl@0
     5
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     6
// which accompanies this distribution, and is available
sl@0
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
//
sl@0
     9
// Initial Contributors:
sl@0
    10
// Nokia Corporation - initial contribution.
sl@0
    11
//
sl@0
    12
// Contributors:
sl@0
    13
//
sl@0
    14
// Description: 
sl@0
    15
//
sl@0
    16
sl@0
    17
//! @file
sl@0
    18
// filetokens tools unit (integration) tests
sl@0
    19
PRINT Run all certtool and keytool tests
sl@0
    20
LOAD_SUITE ttesttools
sl@0
    21
sl@0
    22
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0001
sl@0
    23
//! @SYMTestCaseDesc 	Certool help command  
sl@0
    24
//! 			(certhelp)
sl@0
    25
//! @SYMTestPriority 	Medium
sl@0
    26
//! @SYMTestActions  	call Certool for the help command
sl@0
    27
//! @SYMTestExpectedResults Certtool  help command should display the help command as expected
sl@0
    28
//! @SYMDevelopedForRelease Sphinx
sl@0
    29
sl@0
    30
START_TESTCASE SEC-FILETOKENS-EC097-0001
sl@0
    31
RUN_PROGRAM certtool.exe c:\ttesttools\data\certhelp.txt c:\output.txt
sl@0
    32
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
sl@0
    33
END_TESTCASE SEC-FILETOKENS-EC097-0001
sl@0
    34
sl@0
    35
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0002
sl@0
    36
//! @SYMTestCaseDesc 	Certool Individual help command  
sl@0
    37
//! 			(certhelp_individual)
sl@0
    38
//! @SYMTestPriority 	Medium
sl@0
    39
//! @SYMTestActions  	call Certool for the Individual help command
sl@0
    40
//! @SYMTestExpectedResults Certtool Individual help command should display the help command as expected
sl@0
    41
//! @SYMDevelopedForRelease Sphinx
sl@0
    42
sl@0
    43
START_TESTCASE SEC-FILETOKENS-EC097-0002
sl@0
    44
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpls.txt c:\output.txt
sl@0
    45
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp_individual
sl@0
    46
END_TESTCASE SEC-FILETOKENS-EC097-0002
sl@0
    47
sl@0
    48
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0003
sl@0
    49
//! @SYMTestCaseDesc 	Certool liststore command  
sl@0
    50
//! 			(certtool_liststores)
sl@0
    51
//! @SYMTestPriority 	Medium
sl@0
    52
//! @SYMTestActions  	call Certool for the liststore command then parse the output file and constuct the expected stores
sl@0
    53
//! @SYMTestExpectedResults Call certstore via CUnifiedCertstore and compare with the expected stores
sl@0
    54
//! @SYMDevelopedForRelease Sphinx
sl@0
    55
sl@0
    56
START_TESTCASE SEC-FILETOKENS-EC097-0003
sl@0
    57
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_ls.txt c:\output.txt
sl@0
    58
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_liststores
sl@0
    59
END_TESTCASE SEC-FILETOKENS-EC097-0003
sl@0
    60
sl@0
    61
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0004
sl@0
    62
//! @SYMTestCaseDesc 	Certool import command  
sl@0
    63
//! 			(certtool_import_store0)
sl@0
    64
//! @SYMTestPriority 	Medium
sl@0
    65
//! @SYMTestActions  	call Certool to import the certificate. 
sl@0
    66
//! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
sl@0
    67
//! @SYMDevelopedForRelease Sphinx
sl@0
    68
sl@0
    69
START_TESTCASE SEC-FILETOKENS-EC097-0004
sl@0
    70
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import1.txt c:\output.txt
sl@0
    71
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store0
sl@0
    72
END_TESTCASE SEC-FILETOKENS-EC097-0004
sl@0
    73
sl@0
    74
sl@0
    75
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0005
sl@0
    76
//! @SYMTestCaseDesc 	Certool import command  
sl@0
    77
//! 			(certtool_import_store1)
sl@0
    78
//! @SYMTestPriority 	Medium
sl@0
    79
//! @SYMTestActions  	call Certool to import the certificate to store 1
sl@0
    80
//! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
sl@0
    81
//! @SYMDevelopedForRelease Sphinx
sl@0
    82
sl@0
    83
START_TESTCASE SEC-FILETOKENS-EC097-0005
sl@0
    84
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import2.txt c:\output.txt
sl@0
    85
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store1
sl@0
    86
END_TESTCASE SEC-FILETOKENS-EC097-0005
sl@0
    87
sl@0
    88
sl@0
    89
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0006
sl@0
    90
//! @SYMTestCaseDesc	Certool import command  
sl@0
    91
//! 			(certtool_import_store01twice)
sl@0
    92
//! @SYMTestPriority 	Medium
sl@0
    93
//! @SYMTestActions  	call Certool to import the same certificate with same name in two different stores
sl@0
    94
//! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
sl@0
    95
//! @SYMDevelopedForRelease Sphinx
sl@0
    96
sl@0
    97
START_TESTCASE SEC-FILETOKENS-EC097-0006
sl@0
    98
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import3.txt c:\output.txt
sl@0
    99
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store01twice
sl@0
   100
END_TESTCASE SEC-FILETOKENS-EC097-0006
sl@0
   101
sl@0
   102
sl@0
   103
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0007
sl@0
   104
//! @SYMTestCaseDesc 	Certool import command  
sl@0
   105
//! 			(certtool_import_keycert)
sl@0
   106
//! @SYMTestPriority 	Medium
sl@0
   107
//! @SYMTestActions  	call Certool to import the certificate as well as the key
sl@0
   108
//! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
sl@0
   109
//!	Call keystore list via CUnifiedKeystore and confirms the key is listed
sl@0
   110
//! @SYMDevelopedForRelease Sphinx
sl@0
   111
sl@0
   112
START_TESTCASE SEC-FILETOKENS-EC097-0007
sl@0
   113
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import4.txt c:\output.txt
sl@0
   114
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
sl@0
   115
RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
sl@0
   116
END_TESTCASE SEC-FILETOKENS-EC097-0007
sl@0
   117
sl@0
   118
sl@0
   119
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0008
sl@0
   120
//! @SYMTestCaseDesc 	Certool setapps command  
sl@0
   121
//! 			(certtool_setapps)
sl@0
   122
//! @SYMTestPriority 	Medium
sl@0
   123
//! @SYMTestActions  	call Certool to set the application trust status for the certificate
sl@0
   124
//! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
sl@0
   125
//! @SYMDevelopedForRelease Sphinx
sl@0
   126
sl@0
   127
START_TESTCASE SEC-FILETOKENS-EC097-0008
sl@0
   128
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps.txt c:\output.txt
sl@0
   129
RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps
sl@0
   130
END_TESTCASE SEC-FILETOKENS-EC097-0008
sl@0
   131
sl@0
   132
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0009
sl@0
   133
//! @SYMTestCaseDesc 	Certool addapps command  
sl@0
   134
//! 			(certtool_addapps)
sl@0
   135
//! @SYMTestPriority 	Medium
sl@0
   136
//! @SYMTestActions  	call Certool to add the application trust status for the certificate
sl@0
   137
//! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
sl@0
   138
//! @SYMDevelopedForRelease Sphinx
sl@0
   139
sl@0
   140
START_TESTCASE SEC-FILETOKENS-EC097-0009
sl@0
   141
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_addapps.txt c:\output.txt
sl@0
   142
RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps
sl@0
   143
END_TESTCASE SEC-FILETOKENS-EC097-0009
sl@0
   144
sl@0
   145
sl@0
   146
sl@0
   147
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0010
sl@0
   148
//! @SYMTestCaseDesc 	Certool removeapps command  
sl@0
   149
//! 			(certtool_removeapps)
sl@0
   150
//! @SYMTestPriority 	Medium
sl@0
   151
//! @SYMTestActions  	call Certool to remove the application trust status for the certificate
sl@0
   152
//! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
sl@0
   153
//! @SYMDevelopedForRelease Sphinx
sl@0
   154
sl@0
   155
START_TESTCASE SEC-FILETOKENS-EC097-0010
sl@0
   156
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeapps.txt c:\output.txt
sl@0
   157
RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps
sl@0
   158
END_TESTCASE SEC-FILETOKENS-EC097-0010
sl@0
   159
sl@0
   160
sl@0
   161
sl@0
   162
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0011
sl@0
   163
//! @SYMTestCaseDesc 	Certool list command  
sl@0
   164
//! 			(certtool_list)
sl@0
   165
//! @SYMTestPriority 	Medium
sl@0
   166
//! @SYMTestActions  	call Certool to list the certificate then parse the output file and construct the expected cert list
sl@0
   167
//! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirms with the expected certlist
sl@0
   168
//! @SYMDevelopedForRelease Sphinx
sl@0
   169
sl@0
   170
START_TESTCASE SEC-FILETOKENS-EC097-0011
sl@0
   171
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list1.txt c:\output.txt
sl@0
   172
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list
sl@0
   173
END_TESTCASE SEC-FILETOKENS-EC097-0011
sl@0
   174
sl@0
   175
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0012
sl@0
   176
//! @SYMTestCaseDesc 	Certool list the certficate in store 1  
sl@0
   177
//! 			(certtool_list_store)
sl@0
   178
//! @SYMTestPriority 	Medium
sl@0
   179
//! @SYMTestActions  	call Certool to list the certificate in store 1 then parse the output file and construct the expected cert list
sl@0
   180
//! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirms with the expected certlist
sl@0
   181
//! @SYMDevelopedForRelease Sphinx
sl@0
   182
sl@0
   183
START_TESTCASE SEC-FILETOKENS-EC097-0012
sl@0
   184
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list2.txt c:\output.txt
sl@0
   185
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_store
sl@0
   186
END_TESTCASE SEC-FILETOKENS-EC097-0012
sl@0
   187
sl@0
   188
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0013
sl@0
   189
//! @SYMTestCaseDesc 	Certool list a particular certificate
sl@0
   190
//! 			(certtool_list_cert)
sl@0
   191
//! @SYMTestPriority 	Medium
sl@0
   192
//! @SYMTestActions  	call Certool to list the certificate 
sl@0
   193
//! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirms with the expected certificate
sl@0
   194
//! @SYMDevelopedForRelease Sphinx
sl@0
   195
sl@0
   196
START_TESTCASE SEC-FILETOKENS-EC097-0013
sl@0
   197
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list3.txt c:\output.txt
sl@0
   198
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_cert
sl@0
   199
END_TESTCASE SEC-FILETOKENS-EC097-0013
sl@0
   200
sl@0
   201
sl@0
   202
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0014
sl@0
   203
//! @SYMTestCaseDesc 	Certool list a particular owner type 
sl@0
   204
//! 			(certtool_list_certowner)
sl@0
   205
//! @SYMTestPriority 	Medium
sl@0
   206
//! @SYMTestActions  	call Certool to list the certificate for a particular owner
sl@0
   207
//! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirms with the expected certlist
sl@0
   208
//! @SYMDevelopedForRelease Sphinx
sl@0
   209
sl@0
   210
START_TESTCASE SEC-FILETOKENS-EC097-0014
sl@0
   211
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list4.txt c:\output.txt
sl@0
   212
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_certowner
sl@0
   213
END_TESTCASE SEC-FILETOKENS-EC097-0014
sl@0
   214
sl@0
   215
sl@0
   216
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0015
sl@0
   217
//! @SYMTestCaseDesc 	Certool remove command  
sl@0
   218
//! 			(certtool_remove)
sl@0
   219
//! @SYMTestPriority 	Medium
sl@0
   220
//! @SYMTestActions  	call Certool to remove the certificate 
sl@0
   221
//! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirm that the certificate won't be listed
sl@0
   222
//! @SYMDevelopedForRelease Sphinx
sl@0
   223
sl@0
   224
START_TESTCASE SEC-FILETOKENS-EC097-0015
sl@0
   225
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove1.txt c:\output.txt
sl@0
   226
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove1
sl@0
   227
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove2
sl@0
   228
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove3
sl@0
   229
END_TESTCASE SEC-FILETOKENS-EC097-0015
sl@0
   230
sl@0
   231
sl@0
   232
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0016
sl@0
   233
//! @SYMTestCaseDesc 	Certool remove key and cert
sl@0
   234
//! 			(certtool_removekey)
sl@0
   235
//! @SYMTestPriority 	Medium
sl@0
   236
//! @SYMTestActions  	call Certool to remove the certificate as well as key
sl@0
   237
//! @SYMTestExpectedResults Query certstore  and keystore and confirms both cert and key are deleted.
sl@0
   238
//! @SYMDevelopedForRelease Sphinx
sl@0
   239
sl@0
   240
START_TESTCASE SEC-FILETOKENS-EC097-0016
sl@0
   241
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove2.txt c:\output.txt
sl@0
   242
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removekey
sl@0
   243
RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removekey
sl@0
   244
END_TESTCASE SEC-FILETOKENS-EC097-0016
sl@0
   245
sl@0
   246
sl@0
   247
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0017
sl@0
   248
//! @SYMTestCaseDesc	keytool help command 
sl@0
   249
//! 			(keytool_help)
sl@0
   250
//! @SYMTestPriority 	Medium
sl@0
   251
//! @SYMTestActions  	call keytool to display the help command
sl@0
   252
//! @SYMTestExpectedResults help command should display the help command as expected
sl@0
   253
//! @SYMDevelopedForRelease Sphinx
sl@0
   254
sl@0
   255
START_TESTCASE SEC-FILETOKENS-EC097-0017
sl@0
   256
RUN_PROGRAM keytool.exe c:\ttesttools\data\keyhelp.txt c:\output.txt
sl@0
   257
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
sl@0
   258
END_TESTCASE SEC-FILETOKENS-EC097-0017
sl@0
   259
sl@0
   260
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0018
sl@0
   261
//! @SYMTestCaseDesc 	keytool Individual help command 
sl@0
   262
//! 			(keytool_help_individual)
sl@0
   263
//! @SYMTestPriority 	Medium
sl@0
   264
//! @SYMTestActions  	call keytool to display the Individual help command
sl@0
   265
//! @SYMTestExpectedResults help command should display the help command as expected
sl@0
   266
//! @SYMDevelopedForRelease Sphinx
sl@0
   267
sl@0
   268
START_TESTCASE SEC-FILETOKENS-EC097-0018
sl@0
   269
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserhelp.txt c:\output.txt
sl@0
   270
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help_individual
sl@0
   271
END_TESTCASE SEC-FILETOKENS-EC097-0018
sl@0
   272
sl@0
   273
sl@0
   274
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0019
sl@0
   275
//! @SYMTestCaseDesc 	keytool liststore command  
sl@0
   276
//! 			(keytool_liststores)
sl@0
   277
//! @SYMTestPriority 	Medium
sl@0
   278
//! @SYMTestActions  	call keytool for the liststore command then parse the output file and constuct the expected stores
sl@0
   279
//! @SYMTestExpectedResults Call keystore via CUnifiedKeystore and compare with the expected stores
sl@0
   280
//! @SYMDevelopedForRelease Sphinx
sl@0
   281
sl@0
   282
START_TESTCASE SEC-FILETOKENS-EC097-0019
sl@0
   283
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_ls.txt c:\output.txt
sl@0
   284
RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_liststores
sl@0
   285
END_TESTCASE SEC-FILETOKENS-EC097-0019
sl@0
   286
sl@0
   287
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0020
sl@0
   288
//! @SYMTestCaseDesc 	keytool import command  
sl@0
   289
//! 			(keytool_import_key)
sl@0
   290
//! @SYMTestPriority 	Medium
sl@0
   291
//! @SYMTestActions  	call keytool to import the certtificate. 
sl@0
   292
//! @SYMTestExpectedResults Call keystore list via CUnifiedkeystore and confirms the key is listed
sl@0
   293
//! @SYMDevelopedForRelease Sphinx
sl@0
   294
sl@0
   295
START_TESTCASE SEC-FILETOKENS-EC097-0020
sl@0
   296
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import1.txt c:\output.txt
sl@0
   297
RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key
sl@0
   298
END_TESTCASE SEC-FILETOKENS-EC097-0020
sl@0
   299
sl@0
   300
//! Test case 21 and 22 should be uncommented after fix the defect DEF113031
sl@0
   301
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0021
sl@0
   302
//! @SYMTestCaseDesc 	keytool import command  
sl@0
   303
//! 			(keytool_import_key_store1)
sl@0
   304
//! @SYMTestPriority 	Medium
sl@0
   305
//! @SYMTestActions  	call keytool to import the key to store 1
sl@0
   306
//! @SYMTestExpectedResults Call keystore list via CUnifiedKeystore and confirms the key is listed
sl@0
   307
//! @SYMDevelopedForRelease Sphinx
sl@0
   308
sl@0
   309
// START_TESTCASE SEC-FILETOKENS-EC097-0021
sl@0
   310
// RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import2.txt c:\output.txt
sl@0
   311
// RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key_store1
sl@0
   312
// END_TESTCASE SEC-FILETOKENS-EC097-0021
sl@0
   313
sl@0
   314
sl@0
   315
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0022
sl@0
   316
//! @SYMTestCaseDesc 	keytool import command  
sl@0
   317
//! 			(keytool_import_key_store01twice)
sl@0
   318
//! @SYMTestPriority 	Medium
sl@0
   319
//! @SYMTestActions  	call keytool to import the same key with same name in two different stores
sl@0
   320
//! @SYMTestExpectedResults Call keystore list via CUnifiedKeystore and confirms the key is listed
sl@0
   321
//! @SYMDevelopedForRelease Sphinx
sl@0
   322
sl@0
   323
// START_TESTCASE SEC-FILETOKENS-EC097-0022
sl@0
   324
// RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import3.txt c:\output.txt
sl@0
   325
// RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key_store01twice
sl@0
   326
// END_TESTCASE SEC-FILETOKENS-EC097-0022
sl@0
   327
sl@0
   328
sl@0
   329
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0023
sl@0
   330
//! @SYMTestCaseDesc 	keytool list command  
sl@0
   331
//! 			(keytool_list)
sl@0
   332
//! @SYMTestPriority 	Medium
sl@0
   333
//! @SYMTestActions  	call keytool to list the keys then parse the output file and construct the expected key list
sl@0
   334
//! @SYMTestExpectedResults Query keystore  list via CUnifiedKeystore and confirms with the expected keylist
sl@0
   335
//! @SYMDevelopedForRelease Sphinx
sl@0
   336
sl@0
   337
START_TESTCASE SEC-FILETOKENS-EC097-0023
sl@0
   338
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list1.txt c:\output.txt
sl@0
   339
RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list
sl@0
   340
END_TESTCASE SEC-FILETOKENS-EC097-0023
sl@0
   341
sl@0
   342
sl@0
   343
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0024
sl@0
   344
//! @SYMTestCaseDesc 	keytool list the keys in store 0  
sl@0
   345
//! 			(keytool_list_store)
sl@0
   346
//! @SYMTestPriority 	Medium
sl@0
   347
//! @SYMTestActions  	call keytool to list the keys in store 0 then parse the output file and construct the expected key list
sl@0
   348
//! @SYMTestExpectedResults Query keystore  list via CUnifiedKeystore and confirms with the expected key list.
sl@0
   349
//! @SYMDevelopedForRelease Sphinx
sl@0
   350
sl@0
   351
START_TESTCASE SEC-FILETOKENS-EC097-0024
sl@0
   352
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list2.txt c:\output.txt
sl@0
   353
RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_store
sl@0
   354
END_TESTCASE SEC-FILETOKENS-EC097-0024
sl@0
   355
sl@0
   356
sl@0
   357
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0025
sl@0
   358
//! @SYMTestCaseDesc 	keytool list a particular key
sl@0
   359
//! 			(keytool_list_key)
sl@0
   360
//! @SYMTestPriority 	Medium
sl@0
   361
//! @SYMTestActions 	 call keytool to list the key 
sl@0
   362
//! @SYMTestExpectedResults Query keystore  list via CUnifiedKeystore and confirms with the expected key
sl@0
   363
//! @SYMDevelopedForRelease Sphinx
sl@0
   364
sl@0
   365
START_TESTCASE SEC-FILETOKENS-EC097-0025
sl@0
   366
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list3.txt c:\output.txt
sl@0
   367
RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_key
sl@0
   368
END_TESTCASE SEC-FILETOKENS-EC097-0025
sl@0
   369
sl@0
   370
sl@0
   371
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0026
sl@0
   372
//! @SYMTestCaseDesc 	keytool remove a particular key
sl@0
   373
//! 			(keytool_remove)
sl@0
   374
//! @SYMTestPriority	Medium
sl@0
   375
//! @SYMTestActions  	call keytool to remove the key 
sl@0
   376
//! @SYMTestExpectedResults Query keystore list via CUnifiedKeystore and confirms with the expected key won't be listed
sl@0
   377
//! @SYMDevelopedForRelease Sphinx
sl@0
   378
sl@0
   379
START_TESTCASE SEC-FILETOKENS-EC097-0026
sl@0
   380
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_remove.txt c:\output.txt
sl@0
   381
RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_remove
sl@0
   382
END_TESTCASE SEC-FILETOKENS-EC097-0026
sl@0
   383
sl@0
   384
sl@0
   385
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0027
sl@0
   386
//! @SYMTestCaseDesc 	keytool setuser command
sl@0
   387
//! 			(keytool_setuser)
sl@0
   388
//! @SYMTestPriority 	Medium
sl@0
   389
//! @SYMTestActions  	call keytool to setuser for the key 
sl@0
   390
//! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user.
sl@0
   391
//! @SYMDevelopedForRelease Sphinx
sl@0
   392
sl@0
   393
START_TESTCASE SEC-FILETOKENS-EC097-0027
sl@0
   394
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuser.txt c:\output.txt
sl@0
   395
RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser
sl@0
   396
END_TESTCASE SEC-FILETOKENS-EC097-0027
sl@0
   397
sl@0
   398
sl@0
   399
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0028
sl@0
   400
//! @SYMTestCaseDesc 	keytool setalluser command
sl@0
   401
//! 			(keytool_setallusers)
sl@0
   402
//! @SYMTestPriority 	Medium
sl@0
   403
//! @SYMTestActions  	call keytool to setalluser for the key 
sl@0
   404
//! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user.
sl@0
   405
//! @SYMDevelopedForRelease Sphinx
sl@0
   406
sl@0
   407
START_TESTCASE SEC-FILETOKENS-EC097-0028
sl@0
   408
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluser.txt c:\output.txt
sl@0
   409
RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers
sl@0
   410
END_TESTCASE SEC-FILETOKENS-EC097-0028
sl@0
   411
sl@0
   412
sl@0
   413
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0029
sl@0
   414
//! @SYMTestCaseDesc 	keytool setmanager command
sl@0
   415
//! 			(keytool_setmanager)
sl@0
   416
//! @SYMTestPriority 	Medium
sl@0
   417
//! @SYMTestActions  	call keytool to setmanager for the key 
sl@0
   418
//! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key manager.
sl@0
   419
//! @SYMDevelopedForRelease Sphinx
sl@0
   420
sl@0
   421
START_TESTCASE SEC-FILETOKENS-EC097-0029
sl@0
   422
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanager.txt c:\output.txt
sl@0
   423
RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager
sl@0
   424
END_TESTCASE SEC-FILETOKENS-EC097-0029
sl@0
   425
sl@0
   426
sl@0
   427
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0030
sl@0
   428
//! @SYMTestCaseDesc 	keytool removeuser command
sl@0
   429
//! 			(keytool_removeuser)
sl@0
   430
//! @SYMTestPriority 	Medium
sl@0
   431
//! @SYMTestActions  	call keytool to remove the user for the key 
sl@0
   432
//! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user.
sl@0
   433
//! @SYMDevelopedForRelease Sphinx
sl@0
   434
sl@0
   435
START_TESTCASE SEC-FILETOKENS-EC097-0030
sl@0
   436
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuser.txt c:\output.txt
sl@0
   437
RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser
sl@0
   438
END_TESTCASE SEC-FILETOKENS-EC097-0030
sl@0
   439
sl@0
   440
sl@0
   441
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0031
sl@0
   442
//! @SYMTestCaseDesc 	certtool imported key managed by keytool 
sl@0
   443
//! 			(certtoolkey_keytoolmanage)
sl@0
   444
//! @SYMTestPriority 	Medium
sl@0
   445
//! @SYMTestActions  	call certtool to import a key then call keytool to setuser,removeuser , remove the key
sl@0
   446
//! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key Details.
sl@0
   447
//! @SYMDevelopedForRelease Sphinx
sl@0
   448
sl@0
   449
START_TESTCASE SEC-FILETOKENS-EC097-0031
sl@0
   450
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import4.txt c:\output.txt
sl@0
   451
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
sl@0
   452
RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
sl@0
   453
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import4.txt c:\output.txt
sl@0
   454
RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtoolkey_keytoolmanage
sl@0
   455
RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtoolkey_keytoolmanage1
sl@0
   456
END_TESTCASE SEC-FILETOKENS-EC097-0031
sl@0
   457
sl@0
   458
sl@0
   459
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0032
sl@0
   460
//! @SYMTestCaseDesc 	Certool help command
sl@0
   461
//! 			(certtool_helpfail)
sl@0
   462
//! @SYMTestPriority 	Medium
sl@0
   463
//! @SYMTestActions 	 call Certool for the help command without any argument
sl@0
   464
//! @SYMTestExpectedResults Certtool  help command should display the help command as expected
sl@0
   465
//! @SYMDevelopedForRelease Sphinx
sl@0
   466
sl@0
   467
START_TESTCASE SEC-FILETOKENS-EC097-0032
sl@0
   468
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpfail1.txt c:\output.txt
sl@0
   469
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
sl@0
   470
END_TESTCASE SEC-FILETOKENS-EC097-0032
sl@0
   471
sl@0
   472
sl@0
   473
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0033
sl@0
   474
//! @SYMTestCaseDesc 	Certool Individual help command  
sl@0
   475
//! 			(certtool_individual_helpfail)
sl@0
   476
//! @SYMTestPriority 	Medium
sl@0
   477
//! @SYMTestActions  	call Certool for the individual help command with wrong command
sl@0
   478
//! @SYMTestExpectedResults Certtool  help command should display the help command as expected
sl@0
   479
//! @SYMDevelopedForRelease Sphinx
sl@0
   480
sl@0
   481
START_TESTCASE SEC-FILETOKENS-EC097-0033
sl@0
   482
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpfail2.txt c:\output.txt
sl@0
   483
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
sl@0
   484
END_TESTCASE SEC-FILETOKENS-EC097-0033
sl@0
   485
sl@0
   486
sl@0
   487
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0035
sl@0
   488
//! @SYMTestCaseDesc 	Certool importing twice
sl@0
   489
//! 			(certtool_import_twicefail)
sl@0
   490
//! @SYMTestPriority 	Medium
sl@0
   491
//! @SYMTestActions  	call Certool to import a certificate twice
sl@0
   492
//! @SYMTestExpectedResults Certtool  should display the error message as already exists
sl@0
   493
//! @SYMDevelopedForRelease Sphinx
sl@0
   494
sl@0
   495
START_TESTCASE SEC-FILETOKENS-EC097-0035
sl@0
   496
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail1.txt c:\output.txt
sl@0
   497
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail1.txt c:\output.txt
sl@0
   498
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_twicefail
sl@0
   499
END_TESTCASE SEC-FILETOKENS-EC097-0035
sl@0
   500
sl@0
   501
sl@0
   502
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0036
sl@0
   503
//! @SYMTestCaseDesc 	Certool importing certficate to non existing store
sl@0
   504
//! 			(certtool_import_emptycertstorefail)
sl@0
   505
//! @SYMTestPriority 	Medium
sl@0
   506
//! @SYMTestActions 	call Certool to import a certificate to non existing store
sl@0
   507
//! @SYMTestExpectedResults Certtool  should display the error message as not exist
sl@0
   508
//! @SYMDevelopedForRelease Sphinx
sl@0
   509
sl@0
   510
START_TESTCASE SEC-FILETOKENS-EC097-0036
sl@0
   511
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail2.txt c:\output.txt
sl@0
   512
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_emptycertstorefail
sl@0
   513
END_TESTCASE SEC-FILETOKENS-EC097-0036
sl@0
   514
sl@0
   515
sl@0
   516
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0037
sl@0
   517
//! @SYMTestCaseDesc Certool importing nonexisting certificate
sl@0
   518
//! 		     (certtool_import_nonexistfail)
sl@0
   519
//! @SYMTestPriority Medium
sl@0
   520
//! @SYMTestActions  call Certool to import a nonexisting certficate
sl@0
   521
//! @SYMTestExpectedResults Certtool  should display the error message as cannot open the file
sl@0
   522
//! @SYMDevelopedForRelease Sphinx
sl@0
   523
sl@0
   524
START_TESTCASE SEC-FILETOKENS-EC097-0037
sl@0
   525
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail3.txt c:\output.txt
sl@0
   526
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_nonexistfail
sl@0
   527
END_TESTCASE SEC-FILETOKENS-EC097-0037
sl@0
   528
sl@0
   529
sl@0
   530
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0038
sl@0
   531
//! @SYMTestCaseDesc 	Certool importing corrupted certificate
sl@0
   532
//! 			(certtool_import_corruptcertfail)
sl@0
   533
//! @SYMTestPriority 	Medium
sl@0
   534
//! @SYMTestActions  	call Certool to import a corrupted certificate 
sl@0
   535
//! @SYMTestExpectedResults Certtool  should display the error message as corrupted
sl@0
   536
//! @SYMDevelopedForRelease Sphinx
sl@0
   537
sl@0
   538
START_TESTCASE SEC-FILETOKENS-EC097-0038
sl@0
   539
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail4.txt c:\output.txt
sl@0
   540
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_corruptcertfail
sl@0
   541
END_TESTCASE SEC-FILETOKENS-EC097-0038
sl@0
   542
sl@0
   543
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0039
sl@0
   544
//! @SYMTestCaseDesc 	Certool importing a empty certficate
sl@0
   545
//! 			(certtool_import_emptycertfail)
sl@0
   546
//! @SYMTestPriority	Medium
sl@0
   547
//! @SYMTestActions  	call Certool to import a empty certficate
sl@0
   548
//! @SYMTestExpectedResults Certtool  should display the error message as cannot open the file
sl@0
   549
//! @SYMDevelopedForRelease Sphinx
sl@0
   550
sl@0
   551
START_TESTCASE SEC-FILETOKENS-EC097-0039
sl@0
   552
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail5.txt c:\output.txt
sl@0
   553
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_emptycertfail
sl@0
   554
END_TESTCASE SEC-FILETOKENS-EC097-0039
sl@0
   555
sl@0
   556
sl@0
   557
sl@0
   558
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0040
sl@0
   559
//! @SYMTestCaseDesc 	Certool setapps command
sl@0
   560
//! 			(certtool_setapps_invalidfail)
sl@0
   561
//! @SYMTestPriority 	Medium
sl@0
   562
//! @SYMTestActions  	call Certool to setapps a certificate where the apps is not exist
sl@0
   563
//! @SYMTestExpectedResults Certtool  should display the error message try one of existing apps
sl@0
   564
//! @SYMDevelopedForRelease Sphinx
sl@0
   565
sl@0
   566
sl@0
   567
START_TESTCASE SEC-FILETOKENS-EC097-0040
sl@0
   568
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail1.txt c:\output.txt
sl@0
   569
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps_invalidfail
sl@0
   570
END_TESTCASE SEC-FILETOKENS-EC097-0040
sl@0
   571
sl@0
   572
sl@0
   573
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0041
sl@0
   574
//! @SYMTestCaseDesc 	Certool setapps command
sl@0
   575
//! 			(certtool_setapps_userfail)
sl@0
   576
//! @SYMTestPriority 	Medium
sl@0
   577
//! @SYMTestActions  	call Certool to setapps a user certificate
sl@0
   578
//! @SYMTestExpectedResults Certtool  should display the error message error occured while adding applicability
sl@0
   579
//! @SYMDevelopedForRelease Sphinx
sl@0
   580
sl@0
   581
START_TESTCASE SEC-FILETOKENS-EC097-0041
sl@0
   582
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail2.txt c:\output.txt
sl@0
   583
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps_userfail
sl@0
   584
END_TESTCASE SEC-FILETOKENS-EC097-0041
sl@0
   585
sl@0
   586
sl@0
   587
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0042
sl@0
   588
//! @SYMTestCaseDesc Certool addapps command
sl@0
   589
//! 		     (certtool_addapps_invalidfail)
sl@0
   590
//! @SYMTestPriority Medium
sl@0
   591
//! @SYMTestActions  call Certool to addapps a certificate where the apps is not exist
sl@0
   592
//! @SYMTestExpectedResults Certtool  should display the error message try one of existing apps
sl@0
   593
//! @SYMDevelopedForRelease Sphinx
sl@0
   594
sl@0
   595
sl@0
   596
START_TESTCASE SEC-FILETOKENS-EC097-0042
sl@0
   597
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_addappsfail1.txt c:\output.txt
sl@0
   598
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps_invalidfail
sl@0
   599
END_TESTCASE SEC-FILETOKENS-EC097-0042
sl@0
   600
sl@0
   601
sl@0
   602
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0043
sl@0
   603
//! @SYMTestCaseDesc Certool addapps command
sl@0
   604
//! 		     (certtool_addapps_userfail)
sl@0
   605
//! @SYMTestPriority Medium
sl@0
   606
//! @SYMTestActions  call Certool to addapps a certificate where the apps is not exist
sl@0
   607
//! @SYMTestExpectedResults Certtool should display the error message error occured while adding applicability
sl@0
   608
//! @SYMDevelopedForRelease Sphinx
sl@0
   609
sl@0
   610
START_TESTCASE SEC-FILETOKENS-EC097-0043
sl@0
   611
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail2.txt c:\output.txt
sl@0
   612
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps_userfail
sl@0
   613
END_TESTCASE SEC-FILETOKENS-EC097-0043
sl@0
   614
sl@0
   615
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0044
sl@0
   616
//! @SYMTestCaseDesc 	Certool removeapps command
sl@0
   617
//! 			(certtool_removeapps_invalidfail)
sl@0
   618
//! @SYMTestPriority 	Medium
sl@0
   619
//! @SYMTestActions  	call Certool to removeapps a certificate where the apps is not exist
sl@0
   620
//! @SYMTestExpectedResults Certtool  should display the error message try one of existing apps
sl@0
   621
//! @SYMDevelopedForRelease Sphinx
sl@0
   622
sl@0
   623
sl@0
   624
START_TESTCASE SEC-FILETOKENS-EC097-0044
sl@0
   625
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeappsfail1.txt c:\output.txt
sl@0
   626
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps_invalidfail
sl@0
   627
END_TESTCASE SEC-FILETOKENS-EC097-0044
sl@0
   628
sl@0
   629
sl@0
   630
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0045
sl@0
   631
//! @SYMTestCaseDesc Certool removeapps command
sl@0
   632
//! 		     (certtool_removeapps_untrustfail)
sl@0
   633
//! @SYMTestPriority Medium
sl@0
   634
//! @SYMTestActions  call Certool to removeapps a certificate where the applicability is not exist
sl@0
   635
//! @SYMTestExpectedResults Certtool  should display the error message not trusted for the apps
sl@0
   636
//! @SYMDevelopedForRelease Sphinx
sl@0
   637
sl@0
   638
START_TESTCASE SEC-FILETOKENS-EC097-0045
sl@0
   639
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeappsfail2.txt c:\output.txt
sl@0
   640
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps_untrustfail
sl@0
   641
END_TESTCASE SEC-FILETOKENS-EC097-0045
sl@0
   642
sl@0
   643
sl@0
   644
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0046
sl@0
   645
//! @SYMTestCaseDesc Certool list command
sl@0
   646
//! 		     (certtool_list_fail)
sl@0
   647
//! @SYMTestPriority Medium
sl@0
   648
//! @SYMTestActions  call Certool to list a certificate where the certificate  store is not exist
sl@0
   649
//! @SYMTestExpectedResults Certtool  should display the error message store not exist
sl@0
   650
//! @SYMDevelopedForRelease Sphinx
sl@0
   651
sl@0
   652
START_TESTCASE SEC-FILETOKENS-EC097-0046
sl@0
   653
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail1.txt c:\output.txt
sl@0
   654
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail
sl@0
   655
END_TESTCASE SEC-FILETOKENS-EC097-0046
sl@0
   656
sl@0
   657
sl@0
   658
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0047
sl@0
   659
//! @SYMTestCaseDesc Certool list command
sl@0
   660
//! 		     (certtool_list_fail1)
sl@0
   661
//! @SYMTestPriority Medium
sl@0
   662
//! @SYMTestActions  call Certool to list a certificate where the certificate  is not exist
sl@0
   663
//! @SYMTestExpectedResults Certtool  should display the error message certificate is not exist
sl@0
   664
//! @SYMDevelopedForRelease Sphinx
sl@0
   665
sl@0
   666
sl@0
   667
START_TESTCASE SEC-FILETOKENS-EC097-0047
sl@0
   668
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail2.txt c:\output.txt
sl@0
   669
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail1
sl@0
   670
END_TESTCASE SEC-FILETOKENS-EC097-0047
sl@0
   671
sl@0
   672
sl@0
   673
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0034
sl@0
   674
//! @SYMTestCaseDesc 	Certool list command
sl@0
   675
//! 			(certtool_list_fail2)
sl@0
   676
//! @SYMTestPriority 	Medium
sl@0
   677
//! @SYMTestActions  	call Certool to list a certificate ownere where the owner is not exist
sl@0
   678
//! @SYMTestExpectedResults Certtool  should display the error message as no certificate exist
sl@0
   679
//! @SYMDevelopedForRelease Sphinx
sl@0
   680
sl@0
   681
START_TESTCASE SEC-FILETOKENS-EC097-0034
sl@0
   682
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail3.txt c:\output.txt
sl@0
   683
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail2
sl@0
   684
END_TESTCASE SEC-FILETOKENS-EC097-0034
sl@0
   685
sl@0
   686
sl@0
   687
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0048
sl@0
   688
//! @SYMTestCaseDesc 	Certool remove command
sl@0
   689
//! 			(certtool_remove_fail)
sl@0
   690
//! @SYMTestPriority 	Medium
sl@0
   691
//! @SYMTestActions  	call Certool to remove a certificate where the certificate  is not exist
sl@0
   692
//! @SYMTestExpectedResults Certtool  should display the error message certificate not exist
sl@0
   693
//! @SYMDevelopedForRelease Sphinx
sl@0
   694
sl@0
   695
START_TESTCASE SEC-FILETOKENS-EC097-0048
sl@0
   696
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removefail.txt c:\output.txt
sl@0
   697
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove_fail
sl@0
   698
END_TESTCASE SEC-FILETOKENS-EC097-0048
sl@0
   699
sl@0
   700
sl@0
   701
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0049
sl@0
   702
//! @SYMTestCaseDesc 	Certool command
sl@0
   703
//! 			(certtool_fail)
sl@0
   704
//! @SYMTestPriority 	Medium
sl@0
   705
//! @SYMTestActions  	call Certool command in unspecified order
sl@0
   706
//! @SYMTestExpectedResults Certtool should display the help message
sl@0
   707
//! @SYMDevelopedForRelease Sphinx
sl@0
   708
sl@0
   709
START_TESTCASE SEC-FILETOKENS-EC097-0049
sl@0
   710
RUN_PROGRAM certtool.exe c:\ttesttools\data\certfail.txt c:\output.txt
sl@0
   711
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
sl@0
   712
END_TESTCASE SEC-FILETOKENS-EC097-0049
sl@0
   713
sl@0
   714
sl@0
   715
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0050
sl@0
   716
//! @SYMTestCaseDesc Keytool help command
sl@0
   717
//! 		     (keytool_help_fail)
sl@0
   718
//! @SYMTestPriority Medium
sl@0
   719
//! @SYMTestActions  call Keytool help command without any argument
sl@0
   720
//! @SYMTestExpectedResults Keytool should display the help message
sl@0
   721
//! @SYMDevelopedForRelease Sphinx
sl@0
   722
sl@0
   723
START_TESTCASE SEC-FILETOKENS-EC097-0050
sl@0
   724
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_helpfail1.txt c:\output.txt
sl@0
   725
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
sl@0
   726
END_TESTCASE SEC-FILETOKENS-EC097-0050
sl@0
   727
sl@0
   728
//! @SYMTestCaseID SEC-FILETOKENS-EC097-0051
sl@0
   729
//! @SYMTestCaseDesc Keytool Individual help command
sl@0
   730
//! 		     (keytool_help_fail1)
sl@0
   731
//! @SYMTestPriority Medium
sl@0
   732
//! @SYMTestActions  call Keytool Individual help command where the command is not exist
sl@0
   733
//! @SYMTestExpectedResults Keytool should display the help message
sl@0
   734
//! @SYMDevelopedForRelease Sphinx
sl@0
   735
sl@0
   736
START_TESTCASE SEC-FILETOKENS-EC097-0051
sl@0
   737
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_helpfail2.txt c:\output.txt
sl@0
   738
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
sl@0
   739
END_TESTCASE SEC-FILETOKENS-EC097-0051
sl@0
   740
sl@0
   741
sl@0
   742
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0053
sl@0
   743
//! @SYMTestCaseDesc 	Keytool import command
sl@0
   744
//! 			(keytool_import_fail)
sl@0
   745
//! @SYMTestPriority 	Medium
sl@0
   746
//! @SYMTestActions  	call Keytool import key twice
sl@0
   747
//! @SYMTestExpectedResults Keytool should display the error message as already exists
sl@0
   748
//! @SYMDevelopedForRelease Sphinx
sl@0
   749
sl@0
   750
START_TESTCASE SEC-FILETOKENS-EC097-0053
sl@0
   751
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail1.txt c:\output.txt
sl@0
   752
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail1.txt c:\output.txt
sl@0
   753
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail
sl@0
   754
END_TESTCASE SEC-FILETOKENS-EC097-0053
sl@0
   755
sl@0
   756
sl@0
   757
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0054
sl@0
   758
//! @SYMTestCaseDesc 	Keytool import command
sl@0
   759
//! 			(keytool_import_fail1)
sl@0
   760
//! @SYMTestPriority 	Medium
sl@0
   761
//! @SYMTestActions  	call Keytool import key where keystore doesn't exist
sl@0
   762
//! @SYMTestExpectedResults Keytool should display the error message as store not exist
sl@0
   763
//! @SYMDevelopedForRelease Sphinx
sl@0
   764
sl@0
   765
START_TESTCASE SEC-FILETOKENS-EC097-0054
sl@0
   766
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail2.txt c:\output.txt
sl@0
   767
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail1
sl@0
   768
END_TESTCASE SEC-FILETOKENS-EC097-0054
sl@0
   769
sl@0
   770
sl@0
   771
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0055
sl@0
   772
//! @SYMTestCaseDesc 	Keytool import command
sl@0
   773
//! 			(keytool_import_fail2)
sl@0
   774
//! @SYMTestPriority 	Medium
sl@0
   775
//! @SYMTestActions  	call Keytool import key where key doesn't exist
sl@0
   776
//! @SYMTestExpectedResults Keytool should display the error message as key not exist
sl@0
   777
//! @SYMDevelopedForRelease Sphinx
sl@0
   778
sl@0
   779
START_TESTCASE SEC-FILETOKENS-EC097-0055
sl@0
   780
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail3.txt c:\output.txt
sl@0
   781
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail2
sl@0
   782
END_TESTCASE SEC-FILETOKENS-EC097-0055
sl@0
   783
sl@0
   784
sl@0
   785
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0056
sl@0
   786
//! @SYMTestCaseDesc 	Keytool import command
sl@0
   787
//! 			(keytool_import_fail3)
sl@0
   788
//! @SYMTestPriority 	Medium
sl@0
   789
//! @SYMTestActions  	call Keytool import a corrupted key 
sl@0
   790
//! @SYMTestExpectedResults Keytool should display the error message as corrupted key
sl@0
   791
//! @SYMDevelopedForRelease Sphinx
sl@0
   792
sl@0
   793
START_TESTCASE SEC-FILETOKENS-EC097-0056
sl@0
   794
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail4.txt c:\output.txt
sl@0
   795
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail3
sl@0
   796
END_TESTCASE SEC-FILETOKENS-EC097-0056
sl@0
   797
sl@0
   798
sl@0
   799
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0057
sl@0
   800
//! @SYMTestCaseDesc 	Keytool import command
sl@0
   801
//! 			(keytool_import_fail4)
sl@0
   802
//! @SYMTestPriority 	Medium
sl@0
   803
//! @SYMTestActions  	call Keytool import empty key 
sl@0
   804
//! @SYMTestExpectedResults Keytool should display the error message as key is empty
sl@0
   805
//! @SYMDevelopedForRelease Sphinx
sl@0
   806
sl@0
   807
START_TESTCASE SEC-FILETOKENS-EC097-0057
sl@0
   808
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail5.txt c:\output.txt
sl@0
   809
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail4
sl@0
   810
END_TESTCASE SEC-FILETOKENS-EC097-0057
sl@0
   811
sl@0
   812
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0058
sl@0
   813
//! @SYMTestCaseDesc 	Keytool setuser command
sl@0
   814
//! 			(keytool_setuser_fail)
sl@0
   815
//! @SYMTestPriority 	Medium
sl@0
   816
//! @SYMTestActions  	call Keytool setuser for key where key is not exist 
sl@0
   817
//! @SYMTestExpectedResults Keytool should display the error message as key is not exist
sl@0
   818
//! @SYMDevelopedForRelease Sphinx
sl@0
   819
sl@0
   820
START_TESTCASE SEC-FILETOKENS-EC097-0058
sl@0
   821
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserfail1.txt c:\output.txt
sl@0
   822
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser_fail
sl@0
   823
END_TESTCASE SEC-FILETOKENS-EC097-0058
sl@0
   824
sl@0
   825
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0059
sl@0
   826
//! @SYMTestCaseDesc Keytool setuser command
sl@0
   827
//! 		     (keytool_setuser_fail1)
sl@0
   828
//! @SYMTestPriority Medium
sl@0
   829
//! @SYMTestActions  call Keytool setuser for key where key is created by third party
sl@0
   830
//! @SYMTestExpectedResults Keytool should display the error message as setusers failed with -46
sl@0
   831
//! @SYMDevelopedForRelease Sphinx
sl@0
   832
sl@0
   833
START_TESTCASE SEC-FILETOKENS-EC097-0059
sl@0
   834
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserfail2.txt c:\output.txt
sl@0
   835
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser_fail1
sl@0
   836
END_TESTCASE SEC-FILETOKENS-EC097-0059
sl@0
   837
sl@0
   838
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0060
sl@0
   839
//! @SYMTestCaseDesc 	Keytool setalluser command
sl@0
   840
//! 			(keytool_setallusers_fail)
sl@0
   841
//! @SYMTestPriority 	Medium
sl@0
   842
//! @SYMTestActions  	call Keytool setalluser for key where key is not exist 
sl@0
   843
//! @SYMTestExpectedResults Keytool should display the error message as key is not exist
sl@0
   844
//! @SYMDevelopedForRelease Sphinx
sl@0
   845
sl@0
   846
START_TESTCASE SEC-FILETOKENS-EC097-0060
sl@0
   847
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluserfail1.txt c:\output.txt
sl@0
   848
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers_fail
sl@0
   849
END_TESTCASE SEC-FILETOKENS-EC097-0060
sl@0
   850
sl@0
   851
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0061
sl@0
   852
//! @SYMTestCaseDesc 	Keytool setuser command
sl@0
   853
//! 			(keytool_setallusers_fail1)
sl@0
   854
//! @SYMTestPriority 	Medium
sl@0
   855
//! @SYMTestActions  	call Keytool setuser for key where key is created by third party
sl@0
   856
//! @SYMTestExpectedResults Keytool should display the error message as setusers failed with -46
sl@0
   857
//! @SYMDevelopedForRelease Sphinx
sl@0
   858
sl@0
   859
START_TESTCASE SEC-FILETOKENS-EC097-0061
sl@0
   860
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluserfail2.txt c:\output.txt
sl@0
   861
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers_fail1
sl@0
   862
END_TESTCASE SEC-FILETOKENS-EC097-0061
sl@0
   863
sl@0
   864
sl@0
   865
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0062
sl@0
   866
//! @SYMTestCaseDesc 	Keytool setmanager command
sl@0
   867
//! 			(keytool_setmanager_fail)
sl@0
   868
//! @SYMTestPriority 	Medium
sl@0
   869
//! @SYMTestActions  	call Keytool setmanager for key where key is not exist 
sl@0
   870
//! @SYMTestExpectedResults Keytool should display the error message as key is not exist
sl@0
   871
//! @SYMDevelopedForRelease Sphinx
sl@0
   872
sl@0
   873
START_TESTCASE SEC-FILETOKENS-EC097-0062
sl@0
   874
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanagerfail1.txt c:\output.txt
sl@0
   875
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager_fail
sl@0
   876
END_TESTCASE SEC-FILETOKENS-EC097-0062
sl@0
   877
sl@0
   878
sl@0
   879
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0063
sl@0
   880
//! @SYMTestCaseDesc 	Keytool setmanager command
sl@0
   881
//! 			(keytool_setmanager_fail1)
sl@0
   882
//! @SYMTestPriority 	Medium
sl@0
   883
//! @SYMTestActions  	call Keytool setmanager for key where key is created by third party
sl@0
   884
//! @SYMTestExpectedResults Keytool should display the error message as key as setmanager failed with -46
sl@0
   885
//! @SYMDevelopedForRelease Sphinx
sl@0
   886
sl@0
   887
START_TESTCASE SEC-FILETOKENS-EC097-0063
sl@0
   888
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanagerfail2.txt c:\output.txt
sl@0
   889
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager_fail1
sl@0
   890
END_TESTCASE SEC-FILETOKENS-EC097-0063
sl@0
   891
sl@0
   892
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0064
sl@0
   893
//! @SYMTestCaseDesc 	Keytool remove user command
sl@0
   894
//! 			(keytool_removeuser_fail)
sl@0
   895
//! @SYMTestPriority 	Medium
sl@0
   896
//! @SYMTestActions  	call Keytool remove user for key where key is not exist 
sl@0
   897
//! @SYMTestExpectedResults Keytool should display the error message as key is not exist
sl@0
   898
//! @SYMDevelopedForRelease Sphinx
sl@0
   899
sl@0
   900
START_TESTCASE SEC-FILETOKENS-EC097-0064
sl@0
   901
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuserfail1.txt c:\output.txt
sl@0
   902
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser_fail
sl@0
   903
END_TESTCASE SEC-FILETOKENS-EC097-0064
sl@0
   904
sl@0
   905
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0065
sl@0
   906
//! @SYMTestCaseDesc 	Keytool remove user command
sl@0
   907
//! 			(keytool_removeuser_fail1)
sl@0
   908
//! @SYMTestPriority 	Medium
sl@0
   909
//! @SYMTestActions  	call Keytool removeuser for key where key is created by third party
sl@0
   910
//! @SYMTestExpectedResults Keytool should display the error message as key is removeusers failed with -46
sl@0
   911
//! @SYMDevelopedForRelease Sphinx
sl@0
   912
sl@0
   913
START_TESTCASE SEC-FILETOKENS-EC097-0065
sl@0
   914
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuserfail2.txt c:\output.txt
sl@0
   915
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser_fail1
sl@0
   916
END_TESTCASE SEC-FILETOKENS-EC097-0065
sl@0
   917
sl@0
   918
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0066
sl@0
   919
//! @SYMTestCaseDesc Keytool list command
sl@0
   920
//! 		     (keytool_list_fail)
sl@0
   921
//! @SYMTestPriority Medium
sl@0
   922
//! @SYMTestActions  call Keytool list for the key where keystore is not exist
sl@0
   923
//! @SYMTestExpectedResults Keytool should display the error message as key is store not exist
sl@0
   924
//! @SYMDevelopedForRelease Sphinx
sl@0
   925
sl@0
   926
START_TESTCASE SEC-FILETOKENS-EC097-0066
sl@0
   927
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_listfail1.txt c:\output.txt
sl@0
   928
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_fail
sl@0
   929
END_TESTCASE SEC-FILETOKENS-EC097-0066
sl@0
   930
sl@0
   931
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0067
sl@0
   932
//! @SYMTestCaseDesc Keytool list command
sl@0
   933
//! 		     (keytool_list_fail1)
sl@0
   934
//! @SYMTestPriority Medium
sl@0
   935
//! @SYMTestActions  call Keytool list for key where key is not exist
sl@0
   936
//! @SYMTestExpectedResults Keytool should display the error message as key is not exist
sl@0
   937
//! @SYMDevelopedForRelease Sphinx
sl@0
   938
sl@0
   939
START_TESTCASE SEC-FILETOKENS-EC097-0067
sl@0
   940
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_listfail2.txt c:\output.txt
sl@0
   941
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_fail1
sl@0
   942
END_TESTCASE SEC-FILETOKENS-EC097-0067
sl@0
   943
sl@0
   944
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0068
sl@0
   945
//! @SYMTestCaseDesc 	Keytool remove command
sl@0
   946
//! 			(keytool_remove_fail)
sl@0
   947
//! @SYMTestPriority 	Medium
sl@0
   948
//! @SYMTestActions  	call Keytool remove for key where key is not exist
sl@0
   949
//! @SYMTestExpectedResults Keytool should display the error message as key is not exist
sl@0
   950
//! @SYMDevelopedForRelease Sphinx
sl@0
   951
sl@0
   952
START_TESTCASE SEC-FILETOKENS-EC097-0068
sl@0
   953
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removefail.txt c:\output.txt
sl@0
   954
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_remove_fail
sl@0
   955
END_TESTCASE SEC-FILETOKENS-EC097-0068
sl@0
   956
sl@0
   957
//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0069
sl@0
   958
//! @SYMTestCaseDesc 	Keytool command
sl@0
   959
//! 			(keytool_fail)
sl@0
   960
//! @SYMTestPriority 	Medium
sl@0
   961
//! @SYMTestActions  	call Keytool command in unspeicifed order
sl@0
   962
//! @SYMTestExpectedResults Keytool should display the help message
sl@0
   963
//! @SYMDevelopedForRelease Sphinx
sl@0
   964
sl@0
   965
START_TESTCASE SEC-FILETOKENS-EC097-0069
sl@0
   966
RUN_PROGRAM keytool.exe c:\ttesttools\data\keyfail.txt c:\output.txt
sl@0
   967
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
sl@0
   968
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove3.txt c:\output.txt
sl@0
   969
RUN_PROGRAM keytool.exe c:\ttesttools\data\key_remove1.txt c:\output.txt
sl@0
   970
END_TESTCASE SEC-FILETOKENS-EC097-0069
sl@0
   971
sl@0
   972
sl@0
   973
//! @SYMTestCaseID 	SEC-FILETOKENS-Defect118391-0070
sl@0
   974
//! @SYMTestCaseDesc 	Certool import command
sl@0
   975
//! 			(certtool_import_def118391)
sl@0
   976
//! @SYMTestPriority 	Medium
sl@0
   977
//! @SYMTestActions  	call Certool import command without a label specified
sl@0
   978
//! @SYMTestExpectedResults Certtool  should not display any error message and work fine.
sl@0
   979
sl@0
   980
START_TESTCASE SEC-FILETOKENS-Defect118391-0070
sl@0
   981
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import.txt c:\output.txt
sl@0
   982
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import
sl@0
   983
RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import
sl@0
   984
END_TESTCASE SEC-FILETOKENS-Defect118391-0070
sl@0
   985
sl@0
   986
sl@0
   987
//! @SYMTestCaseID 	SEC-FILETOKENS-Defect118391-0071
sl@0
   988
//! @SYMTestCaseDesc 	Certool setapps command
sl@0
   989
//! 			(certtool_setapps_defect118391)
sl@0
   990
//! @SYMTestPriority 	Medium
sl@0
   991
//! @SYMTestActions  	call Certool setapps command with a label option specified
sl@0
   992
//! @SYMTestExpectedResults Certtool  should not display any error message and work fine.
sl@0
   993
sl@0
   994
sl@0
   995
START_TESTCASE SEC-FILETOKENS-Defect118391-0071
sl@0
   996
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps1.txt c:\output.txt
sl@0
   997
RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps1
sl@0
   998
END_TESTCASE SEC-FILETOKENS-Defect118391-0071
sl@0
   999
sl@0
  1000
sl@0
  1001
//! @SYMTestCaseID 	SEC-FILETOKENS-Defect118391-0072
sl@0
  1002
//! @SYMTestCaseDesc 	Certool setapps command  
sl@0
  1003
//! 			(certtool_trust)
sl@0
  1004
//! @SYMTestPriority 	Medium
sl@0
  1005
//! @SYMTestActions  	call Certool to set the application trust status for the certificate
sl@0
  1006
//! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
sl@0
  1007
sl@0
  1008
START_TESTCASE SEC-FILETOKENS-Defect118391-0072
sl@0
  1009
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps.txt c:\output.txt
sl@0
  1010
RUN_TEST_STEP 100 ttesttools GetTrustStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps2
sl@0
  1011
END_TESTCASE SEC-FILETOKENS-Defect118391-0072
sl@0
  1012
sl@0
  1013
sl@0
  1014
//! @SYMTestCaseID 	SEC-FILETOKENS-QI-0073
sl@0
  1015
//! @SYMTestCaseDesc 	Certool addapps command
sl@0
  1016
//! 			(certtool_addapps_QI)
sl@0
  1017
//! @SYMTestPriority 	Medium
sl@0
  1018
//! @SYMTestActions  	First remove the cert, then import the certificate then call Certool to set the application trust status for the certificate
sl@0
  1019
//! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats app status.
sl@0
  1020
sl@0
  1021
sl@0
  1022
START_TESTCASE SEC-FILETOKENS-QI-0073
sl@0
  1023
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_addapps1.txt c:\output.txt
sl@0
  1024
RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps1
sl@0
  1025
END_TESTCASE SEC-FILETOKENS-QI-0073
sl@0
  1026
sl@0
  1027
sl@0
  1028
//! @SYMTestCaseID 	SEC-FILETOKENS-QI-0074
sl@0
  1029
//! @SYMTestCaseDesc 	Certool addapps command  
sl@0
  1030
//! 			(certtool_trust)
sl@0
  1031
//! @SYMTestPriority 	Medium
sl@0
  1032
//! @SYMTestActions  	call gettrust status to check the trust status for the certificate
sl@0
  1033
//! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
sl@0
  1034
sl@0
  1035
START_TESTCASE SEC-FILETOKENS-QI-0074
sl@0
  1036
RUN_TEST_STEP 100 ttesttools GetTrustStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps2
sl@0
  1037
END_TESTCASE SEC-FILETOKENS-QI-0074
sl@0
  1038
sl@0
  1039
//! @SYMTestCaseID 	SEC-FILETOKENS-IMPROVEMENT-0001
sl@0
  1040
//! @SYMTestCaseDesc 	Certtool import command
sl@0
  1041
//! @SYMTestPriority 	Medium
sl@0
  1042
//! @SYMTestActions  	call Certtool to import a certificate with the deletable flag set to 'y'.
sl@0
  1043
//! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore, the certificate is listed.
sl@0
  1044
sl@0
  1045
START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0001
sl@0
  1046
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importdeletable1.txt c:\output.txt
sl@0
  1047
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_importdeletable1
sl@0
  1048
sl@0
  1049
END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0001
sl@0
  1050
sl@0
  1051
sl@0
  1052
//! @SYMTestCaseID 	SEC-FILETOKENS-IMPROVEMENT-0002
sl@0
  1053
//! @SYMTestCaseDesc 	Certtool import command
sl@0
  1054
//! @SYMTestPriority 	Medium
sl@0
  1055
//! @SYMTestActions  	call Certtool to import a certificate with the deletable flag set to 'n'.
sl@0
  1056
//! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore, the certificate is listed.
sl@0
  1057
sl@0
  1058
START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0002
sl@0
  1059
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importdeletable2.txt c:\output.txt
sl@0
  1060
RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_importdeletable2
sl@0
  1061
END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0002
sl@0
  1062
sl@0
  1063
//! @SYMTestCaseID 	SEC-FILETOKENS-IMPROVEMENT-0003
sl@0
  1064
//! @SYMTestCaseDesc 	Certtool import command
sl@0
  1065
//! @SYMTestPriority 	Medium
sl@0
  1066
//! @SYMTestActions  	call Certtool to import a certificate with the deletable flag set to a garbage value.
sl@0
  1067
//! @SYMTestExpectedResults The expected output is "An error occured during certificate import."
sl@0
  1068
sl@0
  1069
START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0003
sl@0
  1070
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importdeletable3.txt c:\output.txt
sl@0
  1071
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_importdeletable3
sl@0
  1072
END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0003
sl@0
  1073
sl@0
  1074
sl@0
  1075
//! @SYMTestCaseID 	SEC-FILETOKENS-IMPROVEMENT-0004
sl@0
  1076
//! @SYMTestCaseDesc 	Certtool remove command
sl@0
  1077
//! @SYMTestPriority 	Medium
sl@0
  1078
//! @SYMTestActions  	Call certtool to remove the certificate imported with deletable set to 'y'
sl@0
  1079
//! @SYMTestExpectedResults The expected output is "Certificate removed successfully."
sl@0
  1080
sl@0
  1081
START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0004
sl@0
  1082
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removedeletable1.txt c:\output.txt
sl@0
  1083
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removedeletable1
sl@0
  1084
END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0004
sl@0
  1085
sl@0
  1086
sl@0
  1087
//! @SYMTestCaseID 	SEC-FILETOKENS-IMPROVEMENT-0005
sl@0
  1088
//! @SYMTestCaseDesc 	Certtool remove command
sl@0
  1089
//! @SYMTestPriority 	Medium
sl@0
  1090
//! @SYMTestActions  	Call certtool to remove the certificate imported with deletable set to 'n'
sl@0
  1091
//! @SYMTestExpectedResults The expected output is "Certificate removed successfully."
sl@0
  1092
sl@0
  1093
START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0005
sl@0
  1094
RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removedeletable2.txt c:\output.txt
sl@0
  1095
RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removedeletable2
sl@0
  1096
END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0005
sl@0
  1097
sl@0
  1098