cryptoservices/filebasedcertificateandkeystores/test/tkeystore/scripts/capability_useauth.script
branchRCL_3
changeset 61 641f389e9157
equal deleted inserted replaced
60:f18401adf8e1 61:641f389e9157
       
     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 
       
    17 START_TESTCASE                SEC-CAPABILITY_USEAUTH-0001
       
    18 
       
    19 //! @SYMTestCaseID            SEC-CAPABILITY_USEAUTH-0001
       
    20 
       
    21 //! @SYMTestCaseDesc          Script 2: Test new apis for create, import and setting authentication policy
       
    22 
       
    23 //!                           
       
    24 
       
    25 //!                           //////////////////////////////////////////////////////////////////////////////
       
    26 
       
    27 //!                           0. Initialisation
       
    28 
       
    29 //!                           //////////////////////////////////////////////////////////////////////////////
       
    30 
       
    31 //!                           
       
    32 
       
    33 //!                           First we delete the keystore data file, so that we know we are setting the
       
    34 
       
    35 //!                           passphrase with our first key add operation.
       
    36 
       
    37 //!                           Then we set up some keys for the rest of the test script to use:
       
    38 
       
    39 //!                           
       
    40 
       
    41 //!                           Key:     Type:
       
    42 
       
    43 //!                           banana	RSA
       
    44 
       
    45 //!                           mango	DSA
       
    46 
       
    47 //!                           tomato	DH
       
    48 
       
    49 //!                           
       
    50 
       
    51 //!                           todo
       
    52 
       
    53 //!                           test passphrase timeout affects all keys, and all processes
       
    54 
       
    55 //! @SYMTestActions           1) 0.1, Delete keystore data file
       
    56 
       
    57 //!                           2) 0.2, Opening key store in manager mode
       
    58 
       
    59 //!                           3) Add key banana
       
    60 
       
    61 RUN_TEST_STEP                 -1    CTestHandler        deletekeystoredata  
       
    62 
       
    63 RUN_TEST_STEP                 -1    CTestHandler        init                   capability_useauth.ini   SEC-CAPABILITY_USEAUTH-0001-002
       
    64 
       
    65 RUN_TEST_STEP                 -1    CTestHandler        addkey                 capability_useauth.ini   SEC-CAPABILITY_USEAUTH-0001-003
       
    66 
       
    67 END_TESTCASE                  SEC-CAPABILITY_USEAUTH-0001
       
    68 
       
    69 
       
    70 
       
    71 
       
    72 
       
    73 START_TESTCASE                SEC-CAPABILITY_USEAUTH-0002
       
    74 
       
    75 //! @SYMTestCaseID            SEC-CAPABILITY_USEAUTH-0002
       
    76 
       
    77 //! @SYMTestCaseDesc          1. Capability testing
       
    78 
       
    79 //! @SYMTestActions           1) 6.3.1, Test use policy enforcement for SID and capabilities
       
    80 
       
    81 //!                           2) 6.3.2, Test use policy enforcement setting authentication policy
       
    82 
       
    83 //!                           3) 6.3.2, Test use policy enforcement setting authentication policy
       
    84 
       
    85 RUN_TEST_STEP                 -1    CTestHandler        policytest             capability_useauth.ini   SEC-CAPABILITY_USEAUTH-0002-001
       
    86 
       
    87 RUN_TEST_STEP                 -1    CTestHandler        policytest             capability_useauth.ini   SEC-CAPABILITY_USEAUTH-0002-002
       
    88 
       
    89 RUN_TEST_STEP                 -1    CTestHandler        policytest             capability_useauth.ini   SEC-CAPABILITY_USEAUTH-0002-003
       
    90 
       
    91 END_TESTCASE                  SEC-CAPABILITY_USEAUTH-0002
       
    92 
       
    93 
       
    94 
       
    95 
       
    96 
       
    97 START_TESTCASE                SEC-CAPABILITY_USEAUTH-0003
       
    98 
       
    99 //! @SYMTestCaseID            SEC-CAPABILITY_USEAUTH-0003
       
   100 
       
   101 //! @SYMTestCaseDesc          //////////////////////////////////////////////////////////////////////////////
       
   102 
       
   103 //!                           Cleanup
       
   104 
       
   105 //!                           //////////////////////////////////////////////////////////////////////////////
       
   106 
       
   107 //! @SYMTestActions           1) 8.2, Close key store
       
   108 
       
   109 //!                           2) 8.3, Sleep 5 seconds
       
   110 
       
   111 //!                           3) 8.4, Check for server heap error
       
   112 
       
   113 RUN_TEST_STEP                 -1    CTestHandler        delete              
       
   114 
       
   115 RUN_TEST_STEP                 -1    CTestHandler        sleep                  capability_useauth.ini   SEC-CAPABILITY_USEAUTH-0003-002
       
   116 
       
   117 RUN_TEST_STEP                 -1    CTestHandler        checkserverheaperror
       
   118 
       
   119 END_TESTCASE                  SEC-CAPABILITY_USEAUTH-0003
       
   120 
       
   121 
       
   122 
       
   123 
       
   124