cryptomgmtlibs/securityutils/test/trecog/scripts/trecogcert.script
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 //
       
     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".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description: 
       
    15 //
       
    16 //! @file
       
    17 // Recog unit (integration) tests
       
    18 PRINT Run Cert Recog test
       
    19 
       
    20 LOAD_SUITE trecogserver
       
    21 
       
    22 START_TESTCASE recognizeWTLS
       
    23 
       
    24 //! @SYMTestCaseID SEC-CERTRECOG-WTLS-DEF068542-0001
       
    25 //! @SYMTestCaseDesc to recognize a wtls certificate passed by File Name
       
    26 //! @SYMREQ REQ0000
       
    27 //! @SYMTestPriority Critical
       
    28 //! @SYMTestActions to recognize a wtls certificate
       
    29 //! @SYMTestExpectedResults application/vnd.wap.wtls-ca-certificate
       
    30 //! @SYMDevelopedForRelease Mike
       
    31 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByNameWtls1
       
    32 
       
    33 //! @SYMTestCaseID SEC-CERTRECOG-WTLS-DEF068542-0002
       
    34 //! @SYMTestCaseDesc to recognize a wtls certificate passed by Buffer
       
    35 //! @SYMREQ REQ0000
       
    36 //! @SYMTestPriority Critical
       
    37 //! @SYMTestActions to recognize a wtls certificate
       
    38 //! @SYMTestExpectedResults application/vnd.wap.wtls-ca-certificate
       
    39 //! @SYMDevelopedForRelease Mike
       
    40 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBufferWtls1
       
    41 
       
    42 //! @SYMTestCaseID SEC-CERTRECOG-WTLS-DEF068542-0003
       
    43 //! @SYMTestCaseDesc to recognize a wtls certificate passed by File handle
       
    44 //! @SYMREQ REQ0000
       
    45 //! @SYMTestPriority Critical
       
    46 //! @SYMTestActions to recognize a wtls certificate
       
    47 //! @SYMTestExpectedResults application/vnd.wap.wtls-ca-certificate
       
    48 //! @SYMDevelopedForRelease Mike
       
    49 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandleWtls1
       
    50 
       
    51 END_TESTCASE recognizeWTLS
       
    52 
       
    53 
       
    54 START_TESTCASE recognizeX509
       
    55 
       
    56 //! @SYMTestCaseID SEC-CERTRECOG-X509-DEF068542-0001
       
    57 //! @SYMTestCaseDesc to recognize a x509 CA certificate passed by File Name
       
    58 //! @SYMREQ REQ0000
       
    59 //! @SYMTestPriority Critical
       
    60 //! @SYMTestActions to recognize a x509 CA certificate
       
    61 //! @SYMTestExpectedResults application/x-x509-ca-cert
       
    62 //! @SYMDevelopedForRelease Mike
       
    63 
       
    64 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByName1
       
    65 
       
    66 //! @SYMTestCaseID SEC-CERTRECOG-X509-DEF068542-0002
       
    67 //! @SYMTestCaseDesc to recognize a x509 user certificate passed by File Name
       
    68 //! @SYMREQ REQ0000
       
    69 //! @SYMTestPriority Critical
       
    70 //! @SYMTestActions to recognize a x509 user certificate
       
    71 //! @SYMTestExpectedResults application/x-x509-user-cert
       
    72 //! @SYMDevelopedForRelease Mike
       
    73 
       
    74 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByName2
       
    75 
       
    76 //! @SYMTestCaseID SEC-CERTRECOG-X509-INC11925
       
    77 //! @SYMTestCaseDesc to recognize a x509 CA certificate with long serial number, passed by File Name
       
    78 //! @SYMREQ REQ0000
       
    79 //! @SYMTestPriority Critical
       
    80 //! @SYMTestActions to recognize a x509 CA certificate
       
    81 //! @SYMTestExpectedResults application/x-x509-ca-cert
       
    82 //! @SYMDevelopedForRelease 
       
    83 
       
    84 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByName3
       
    85 
       
    86 //! @SYMTestCaseID SEC-CERTRECOG-X509-INC073075-0007
       
    87 //! @SYMTestCaseDesc to recognize a x509 v1 certificate passed by File Name
       
    88 //! @SYMDEF INC073075
       
    89 //! @SYMTestPriority Critical
       
    90 //! @SYMTestActions to recognize a x509 v1 certificate
       
    91 //! @SYMTestExpectedResults application/x-x509-ca-cert
       
    92 //! @SYMDevelopedForRelease Mike
       
    93 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByNamex509v1
       
    94 
       
    95 //! @SYMTestCaseID SEC-CERTRECOG-X509-INC076296-0001
       
    96 //! @SYMTestCaseDesc to recognize a x509 certificate without version passed by File Name
       
    97 //! @SYMDEF INC076296
       
    98 //! @SYMTestPriority Critical
       
    99 //! @SYMTestActions to recognize a x509 v1 certificate
       
   100 //! @SYMTestExpectedResults application/x-x509-ca-cert
       
   101 //! @SYMDevelopedForRelease Mike
       
   102 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByNamex509NoVersion
       
   103 
       
   104 //! @SYMTestCaseID SEC-CERTRECOG-X509-DEF068542-0003
       
   105 //! @SYMTestCaseDesc to recognize a x509 CA certificate passed by File handle
       
   106 //! @SYMREQ REQ0000
       
   107 //! @SYMTestPriority Critical
       
   108 //! @SYMTestActions to recognize a x509 CA certificate
       
   109 //! @SYMTestExpectedResults application/x-x509-ca-cert
       
   110 //! @SYMDevelopedForRelease Mike
       
   111 
       
   112 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandle1
       
   113 
       
   114 //! @SYMTestCaseID SEC-CERTRECOG-X509-DEF068542-0004
       
   115 //! @SYMTestCaseDesc to recognize a x509 user certificate passed by File handle
       
   116 //! @SYMREQ REQ0000
       
   117 //! @SYMTestPriority Critical
       
   118 //! @SYMTestActions to recognize a x509 user certificate
       
   119 //! @SYMTestExpectedResults application/x-x509-user-cert
       
   120 //! @SYMDevelopedForRelease Mike
       
   121 
       
   122 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandle2
       
   123 
       
   124 //! @SYMTestCaseID SEC-CERTRECOG-X509-INC073075-0008
       
   125 //! @SYMTestCaseDesc to recognize a x509 v1 certificate passed by File handle
       
   126 //! @SYMDEF INC073075
       
   127 //! @SYMTestPriority Critical
       
   128 //! @SYMTestActions to recognize a x509 v1 certificate
       
   129 //! @SYMTestExpectedResults application/x-x509-ca-cert
       
   130 //! @SYMDevelopedForRelease Mike
       
   131 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandlex509v1
       
   132 
       
   133 //! @SYMTestCaseID SEC-CERTRECOG-X509-INC076296-0002
       
   134 //! @SYMTestCaseDesc to recognize a x509 certificate without version passed by File handle
       
   135 //! @SYMDEF INC076296
       
   136 //! @SYMTestPriority Critical
       
   137 //! @SYMTestActions to recognize a x509 certificate without version
       
   138 //! @SYMTestExpectedResults application/x-x509-ca-cert
       
   139 //! @SYMDevelopedForRelease Mike
       
   140 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandlex509NoVersion
       
   141 
       
   142 //! @SYMTestCaseID SEC-CERTRECOG-X509-DEF068542-0005
       
   143 //! @SYMTestCaseDesc to recognize a x509 CA certificate passed by Buffer
       
   144 //! @SYMREQ REQ0000
       
   145 //! @SYMTestPriority Critical
       
   146 //! @SYMTestActions to recognize a x509 CA certificate
       
   147 //! @SYMTestExpectedResults application/x-x509-ca-cert
       
   148 //! @SYMDevelopedForRelease Mike
       
   149 
       
   150 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBuffer1
       
   151 
       
   152 //! @SYMTestCaseID SEC-CERTRECOG-X509-DEF068542-0006
       
   153 //! @SYMTestCaseDesc to recognize a x509 user certificate passed by buffer
       
   154 //! @SYMREQ REQ0000
       
   155 //! @SYMTestPriority Critical
       
   156 //! @SYMTestActions to recognize a x509 user certificate
       
   157 //! @SYMTestExpectedResults application/x-x509-user-cert
       
   158 //! @SYMDevelopedForRelease Mike
       
   159 
       
   160 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBuffer2
       
   161 
       
   162 //! @SYMTestCaseID SEC-CERTRECOG-X509-INC073075-0009
       
   163 //! @SYMTestCaseDesc to recognize a x509 v1 certificate passed by buffer
       
   164 //! @SYMDEF INC073075
       
   165 //! @SYMTestPriority Critical
       
   166 //! @SYMTestActions to recognize a x509 v1 certificate
       
   167 //! @SYMTestExpectedResults application/x-x509-ca-cert
       
   168 //! @SYMDevelopedForRelease Mike
       
   169 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBufferx509v1
       
   170 
       
   171 //! @SYMTestCaseID SEC-CERTRECOG-X509-INC076296-0003
       
   172 //! @SYMTestCaseDesc to recognize a x509 certificate without Version passed by buffer
       
   173 //! @SYMDEF INC076296
       
   174 //! @SYMTestPriority Critical
       
   175 //! @SYMTestActions to recognize a x509 certificate without version
       
   176 //! @SYMTestExpectedResults application/x-x509-ca-cert
       
   177 //! @SYMDevelopedForRelease Mike
       
   178 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBufferx509NoVersion
       
   179 
       
   180 END_TESTCASE recognizeX509
       
   181 
       
   182 START_TESTCASE recognizeSerialNumberLength
       
   183 
       
   184 //! @SYMTestCaseID SEC-CERTRECOG-X509-PDEF095884-0001
       
   185 //! @SYMTestCaseDesc To recognize a x509 certificate serial number length set to 0xFF 
       
   186 //!					 passed by file name.
       
   187 //! @SYMDEF PDEF095884
       
   188 //! @SYMTestPriority Critical
       
   189 //! @SYMTestActions  To recognize a x509 certificate serial number length set to 0xFF.
       
   190 //! @SYMTestExpectedResults ENotRecognized
       
   191 //! @SYMDevelopedForRelease Mike
       
   192 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByNameWsnl
       
   193 
       
   194 //! @SYMTestCaseID SEC-CERTRECOG-X509-PDEF095884-0002
       
   195 //! @SYMTestCaseDesc To recognize a x509 certificate serial number length set to 0xFF 
       
   196 //!					 passed by buffer.
       
   197 //! @SYMDEF PDEF095884
       
   198 //! @SYMTestPriority Critical
       
   199 //! @SYMTestActions  To recognize a x509 certificate serial number length set to 0xFF
       
   200 //! @SYMTestExpectedResults ENotRecognized
       
   201 //! @SYMDevelopedForRelease Mike
       
   202 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBufferWsnl
       
   203 
       
   204 //! @SYMTestCaseID SEC-CERTRECOG-X509-PDEF095884-0003
       
   205 //! @SYMTestCaseDesc To recognize a x509 certificate serial number length set to 0xFF 
       
   206 //!					 passed by file handle.
       
   207 //! @SYMDEF PDEF095884
       
   208 //! @SYMTestPriority Critical
       
   209 //! @SYMTestActions To recognize a x509 certificate serial number length set to 0xFF.
       
   210 //! @SYMTestExpectedResults ENotRecognized
       
   211 //! @SYMDevelopedForRelease Mike
       
   212 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandleWsnl
       
   213 
       
   214 END_TESTCASE recognizeSerialNumberLength