Update contrib.
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 // Recog unit (integration) tests
18 PRINT Run PKCS12 Recog test
20 LOAD_SUITE trecogserver
22 START_TESTCASE SEC-PKCS12RECOG-PKCS12-0001
23 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0001
24 //! @SYMTestCaseDesc Recognize a PKCS#12 object passed by File Name
26 //! @SYMTestPriority Critical
27 //! @SYMTestActions recognize a PKCS#12 object passed by file name using difference extensions
28 //! @SYMTestExpectedResults application/x-pkc12
29 //! @SYMDevelopedForRelease Argus
30 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNameP12
31 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNamePfx
32 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNameXyz
33 END_TESTCASE SEC-PKCS12RECOG-PKCS12-0001
35 START_TESTCASE SEC-PKCS12RECOG-PKCS12-0002
36 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0002
37 //! @SYMTestCaseDesc Recognize a PKCS#12 object passed by file handle
39 //! @SYMTestPriority Critical
40 //! @SYMTestActions recognize a PKCS#12 object passed by file handle
41 //! @SYMTestExpectedResults application/x-pkc12
42 //! @SYMDevelopedForRelease Argus
43 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandleP12
44 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandlePfx
45 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandleXyz
46 END_TESTCASE SEC-PKCS12RECOG-PKCS12-0002
48 START_TESTCASE SEC-PKCS12RECOG-PKCS12-0003
49 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0003
50 //! @SYMTestCaseDesc Recognize a PKCS#12 object passed by file handle where
51 //! the file is in a private directory.
53 //! @SYMTestPriority Critical
54 //! @SYMTestActions recognize a PKCS#12 object passed by file handle
55 //! @SYMTestExpectedResults application/x-pkc12
56 //! @SYMDevelopedForRelease Argus
57 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandlePrivateP12
58 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandlePrivatePfx
59 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandlePrivateXyz
60 END_TESTCASE SEC-PKCS12RECOG-PKCS12-0003
62 START_TESTCASE SEC-PKCS12RECOG-PKCS12-0004
63 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0004
64 //! @SYMTestCaseDesc Recognize a PKCS#12 object passed by buffer
66 //! @SYMTestPriority Critical
67 //! @SYMTestActions recognize a PKCS#12 object passed by buffer
68 //! @SYMTestExpectedResults application/x-pkc12
69 //! @SYMDevelopedForRelease Argus
70 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByBufferP12
71 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByBufferPfx
72 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByBufferXyz
73 END_TESTCASE SEC-PKCS12RECOG-PKCS12-0004
75 START_TESTCASE SEC-PKCS12RECOG-PKCS12-0005
76 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0005
77 //! @SYMTestCaseDesc Recognize a PKCS#12 object passed by file name in a private directory
79 //! @SYMTestPriority Critical
80 //! @SYMTestActions Recognize a file by name in a private directory that is not
81 //! accessible by the plugin.
82 //! @SYMTestExpectedResults not recognized.
83 //! @SYMDevelopedForRelease Argus
84 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNamePrivateP12
85 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNamePrivatePfx
86 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNamePrivateXyz
87 END_TESTCASE SEC-PKCS12RECOG-PKCS12-0005
89 START_TESTCASE SEC-PKCS12RECOG-PKCS12-0006
90 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0006
91 //! @SYMTestCaseDesc Check for false positives by supplying non PKCS#12 files
93 //! @SYMTestPriority Critical
94 //! @SYMTestActions Supply a set of non PKCS#12 files including DER encoded data including a file
95 //! that is smaller than the minimum required header size.
96 //! @SYMTestExpectedResults not recognized.
97 //! @SYMDevelopedForRelease Argus
98 RUN_TEST_STEP_RESULT 106 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificX509v1
99 RUN_TEST_STEP_RESULT 106 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificCA
100 RUN_TEST_STEP_RESULT 106 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificRoot5CA_key
101 RUN_TEST_STEP_RESULT 106 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificSmall
102 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificP12
103 END_TESTCASE SEC-PKCS12RECOG-PKCS12-0006