sl@0: // sl@0: // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: //! @file sl@0: // Recog unit (integration) tests sl@0: PRINT Run Cert Recog test sl@0: sl@0: LOAD_SUITE trecogserver sl@0: sl@0: START_TESTCASE SEC-CERTRECOG-WTLS_DEF068542-0001 sl@0: sl@0: //! @SYMTestCaseID SEC-CERTRECOG-WTLS_DEF068542-0001 sl@0: //! @SYMTestCaseDesc to recognize a wtls certificate sl@0: //! (recognizeWTLS) sl@0: //! @SYMREQ REQ0000 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions 1. to recognize a wtls certificate passed by File Name sl@0: //! 2. to recognize a wtls certificate passed by Buffer sl@0: //! 3. to recognize a wtls certificate passed by File handle sl@0: //! @SYMTestExpectedResults application/vnd.wap.wtls-ca-certificate sl@0: //! @SYMDevelopedForRelease Mike sl@0: sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByNameWtls1 sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBufferWtls1 sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandleWtls1 sl@0: sl@0: END_TESTCASE SEC-CERTRECOG-WTLS_DEF068542-0001 sl@0: sl@0: sl@0: START_TESTCASE SEC-CERTRECOG-X509-0001 sl@0: sl@0: //! @SYMTestCaseID SEC-CERTRECOG-X509-0001 sl@0: //! @SYMTestCaseDesc to recognize x509 CA certificates and x509 user certificates sl@0: //! (recognizeX509) sl@0: //! @SYMREQ REQ0000 sl@0: //! @SYMDEF INC11925 INC073075 INC076296 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions 1. to recognize a x509 CA certificate passed by File Name (DEF068542) sl@0: //! 2. to recognize a x509 user certificate passed by File Name (DEF068542) sl@0: //! 3. to recognize a x509 CA certificate with long serial number, passed by File Name (INC11925) sl@0: //! 4. to recognize a x509 v1 certificate passed by File Name (INC073075) sl@0: //! 5. to recognize a x509 certificate without version passed by File Name (INC076296) sl@0: //! 6. to recognize a x509 CA certificate passed by File handle (DEF068542) sl@0: //! 7. to recognize a x509 user certificate passed by File handle (DEF068542) sl@0: //! 8. to recognize a x509 v1 certificate passed by File handle (INC073075) sl@0: //! 9. to recognize a x509 certificate without version passed by File handle (INC076296) sl@0: //! 10. to recognize a x509 CA certificate passed by Buffer (DEF068542) sl@0: //! 11. to recognize a x509 user certificate passed by buffer (DEF068542) sl@0: //! 12. to recognize a x509 v1 certificate passed by buffer (INC073075) sl@0: //! 13. to recognize a x509 certificate without Version passed by buffer (INC076296) sl@0: //! @SYMTestExpectedResults 1. application/x-x509-ca-cert sl@0: //! 2. application/x-x509-user-cert sl@0: //! 3. application/x-x509-ca-cert sl@0: //! 4. application/x-x509-ca-cert sl@0: //! 5. application/x-x509-ca-cert sl@0: //! 6. application/x-x509-ca-cert sl@0: //! 7. application/x-x509-user-cert sl@0: //! 8. application/x-x509-ca-cert sl@0: //! 9. application/x-x509-ca-cert sl@0: //! 10. application/x-x509-ca-cert sl@0: //! 11. application/x-x509-user-cert sl@0: //! 12. application/x-x509-ca-cert sl@0: //! 13. application/x-x509-ca-cert sl@0: //! @SYMDevelopedForRelease Mike sl@0: sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByName1 sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByName2 sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByName3 sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByNamex509v1 sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByNamex509NoVersion sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandle1 sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandle2 sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandlex509v1 sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandlex509NoVersion sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBuffer1 sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBuffer2 sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBufferx509v1 sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBufferx509NoVersion sl@0: sl@0: END_TESTCASE SEC-CERTRECOG-X509-0001 sl@0: sl@0: START_TESTCASE SEC-CERTRECOG-X509_PDEF095884-0001 sl@0: sl@0: //! @SYMTestCaseID SEC-CERTRECOG-X509_PDEF095884-0001 sl@0: //! @SYMTestCaseDesc To recognize a x509 certificate serial number length set to 0xFF. sl@0: //! (recognizeSerialNumberLength) sl@0: //! @SYMDEF PDEF095884 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions 1. To recognize a x509 certificate serial number length set to 0xFF passed by file name. sl@0: //! 2. To recognize a x509 certificate serial number length set to 0xFF passed by buffer. sl@0: //! 3. To recognize a x509 certificate serial number length set to 0xFF passed by file handle. sl@0: //! @SYMTestExpectedResults ENotRecognized sl@0: //! @SYMDevelopedForRelease Mike sl@0: sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByNameWsnl sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByBufferWsnl sl@0: RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogcert.ini PassByHandleWsnl sl@0: sl@0: END_TESTCASE SEC-CERTRECOG-X509_PDEF095884-0001