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