os/security/cryptomgmtlibs/securityutils/test/trecog/scripts/trecogcert.script
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/cryptomgmtlibs/securityutils/test/trecog/scripts/trecogcert.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,111 @@
     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 +// Recog unit (integration) tests
    1.21 +PRINT Run Cert Recog test
    1.22 +
    1.23 +LOAD_SUITE trecogserver
    1.24 +
    1.25 +START_TESTCASE SEC-CERTRECOG-WTLS_DEF068542-0001
    1.26 +
    1.27 +//! @SYMTestCaseID 		SEC-CERTRECOG-WTLS_DEF068542-0001
    1.28 +//! @SYMTestCaseDesc 		to recognize a wtls certificate
    1.29 +//!                             (recognizeWTLS)
    1.30 +//! @SYMREQ 			REQ0000
    1.31 +//! @SYMTestPriority 		Critical
    1.32 +//! @SYMTestActions 		1. to recognize a wtls certificate passed by File Name
    1.33 +//! 				2. to recognize a wtls certificate passed by Buffer
    1.34 +//! 				3. to recognize a wtls certificate passed by File handle
    1.35 +//! @SYMTestExpectedResults 	application/vnd.wap.wtls-ca-certificate
    1.36 +//! @SYMDevelopedForRelease 	Mike
    1.37 +
    1.38 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByNameWtls1
    1.39 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBufferWtls1
    1.40 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandleWtls1
    1.41 +
    1.42 +END_TESTCASE SEC-CERTRECOG-WTLS_DEF068542-0001
    1.43 +
    1.44 +
    1.45 +START_TESTCASE SEC-CERTRECOG-X509-0001
    1.46 +
    1.47 +//! @SYMTestCaseID 		SEC-CERTRECOG-X509-0001
    1.48 +//! @SYMTestCaseDesc 		to recognize x509 CA certificates and x509 user certificates
    1.49 +//!                             (recognizeX509)
    1.50 +//! @SYMREQ 			REQ0000
    1.51 +//! @SYMDEF 			INC11925 INC073075 INC076296
    1.52 +//! @SYMTestPriority 		Critical
    1.53 +//! @SYMTestActions 		1. to recognize a x509 CA certificate passed by File Name (DEF068542)
    1.54 +//! 				2. to recognize a x509 user certificate passed by File Name (DEF068542)
    1.55 +//! 				3. to recognize a x509 CA certificate with long serial number, passed by File Name (INC11925)
    1.56 +//! 				4. to recognize a x509 v1 certificate passed by File Name (INC073075)
    1.57 +//! 				5. to recognize a x509 certificate without version passed by File Name (INC076296)
    1.58 +//! 				6. to recognize a x509 CA certificate passed by File handle (DEF068542)
    1.59 +//! 				7. to recognize a x509 user certificate passed by File handle (DEF068542)
    1.60 +//! 				8. to recognize a x509 v1 certificate passed by File handle (INC073075)
    1.61 +//! 				9. to recognize a x509 certificate without version passed by File handle (INC076296)
    1.62 +//! 				10. to recognize a x509 CA certificate passed by Buffer (DEF068542)
    1.63 +//! 				11. to recognize a x509 user certificate passed by buffer (DEF068542)
    1.64 +//! 				12. to recognize a x509 v1 certificate passed by buffer (INC073075)
    1.65 +//! 				13. to recognize a x509 certificate without Version passed by buffer (INC076296)
    1.66 +//! @SYMTestExpectedResults 	1. application/x-x509-ca-cert
    1.67 +//! 				2. application/x-x509-user-cert
    1.68 +//! 				3. application/x-x509-ca-cert
    1.69 +//! 				4. application/x-x509-ca-cert
    1.70 +//! 				5. application/x-x509-ca-cert
    1.71 +//! 				6. application/x-x509-ca-cert
    1.72 +//! 				7. application/x-x509-user-cert
    1.73 +//! 				8. application/x-x509-ca-cert
    1.74 +//! 				9. application/x-x509-ca-cert
    1.75 +//! 				10. application/x-x509-ca-cert
    1.76 +//! 				11. application/x-x509-user-cert
    1.77 +//! 				12. application/x-x509-ca-cert
    1.78 +//! 				13. application/x-x509-ca-cert
    1.79 +//! @SYMDevelopedForRelease 	Mike
    1.80 +
    1.81 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByName1
    1.82 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByName2
    1.83 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByName3
    1.84 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByNamex509v1
    1.85 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByNamex509NoVersion
    1.86 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandle1
    1.87 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandle2
    1.88 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandlex509v1
    1.89 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandlex509NoVersion
    1.90 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBuffer1
    1.91 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBuffer2
    1.92 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBufferx509v1
    1.93 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBufferx509NoVersion
    1.94 +
    1.95 +END_TESTCASE SEC-CERTRECOG-X509-0001
    1.96 +
    1.97 +START_TESTCASE SEC-CERTRECOG-X509_PDEF095884-0001
    1.98 +
    1.99 +//! @SYMTestCaseID 		SEC-CERTRECOG-X509_PDEF095884-0001
   1.100 +//! @SYMTestCaseDesc 		To recognize a x509 certificate serial number length set to 0xFF.
   1.101 +//!                             (recognizeSerialNumberLength)
   1.102 +//! @SYMDEF 			PDEF095884
   1.103 +//! @SYMTestPriority 		Critical
   1.104 +//! @SYMTestActions  		1. To recognize a x509 certificate serial number length set to 0xFF passed by file name.
   1.105 +//! 				2. To recognize a x509 certificate serial number length set to 0xFF passed by buffer.
   1.106 +//! 				3. To recognize a x509 certificate serial number length set to 0xFF passed by file handle.
   1.107 +//! @SYMTestExpectedResults 	ENotRecognized
   1.108 +//! @SYMDevelopedForRelease 	Mike
   1.109 +
   1.110 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByNameWsnl
   1.111 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBufferWsnl
   1.112 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandleWsnl
   1.113 +
   1.114 +END_TESTCASE SEC-CERTRECOG-X509_PDEF095884-0001