networksecurity/ipsec/te_ipsec_selector_confilict/scripts/ns-ipsec-ike-selectorconflict-uma3.script
branchRCL_3
changeset 22 8d540f55e491
parent 20 7e41d162e158
equal deleted inserted replaced
21:abbed5a4b42a 22:8d540f55e491
       
     1 //
       
     2 // Copyright (c) 2010 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 "Symbian Foundation License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 /////////////////////////////////////////////////////////////////
       
    17 //! @file                   ns-ipsec-ike-selectorconflict_bbd1.script
       
    18 //! @SYMScriptAuthor        suresh
       
    19 //! @SYMTestSuiteName       te_ipsec_selector_conflict
       
    20 //! @SYMScriptCreationDate  thursday july 8 12:23:00 IST 2010
       
    21 /////////////////////////////////////////////////////////////////
       
    22 
       
    23 PRINT Run test case(s) for suite te_ipsec_selector_conflict
       
    24 
       
    25 // ToDo: Remember to load the relevant suite before starting any test case(s)
       
    26 LOAD_SUITE	te_ipsec_selector_conflict  -SharedData
       
    27 
       
    28 ced -i z:\testdata\configs\Te_ethced_2483.xml ced.log
       
    29 ced -i z:\testdata\configs\Te_ethced_2483VPN.xml ced.log
       
    30 
       
    31 
       
    32 //Create private folder
       
    33 RUN_UTILS MkDir c:\private\101f7993\
       
    34 
       
    35 //copy .pin file from data folder to private folder - one time job
       
    36 RUN_UTILS CopyFile z:\testdata\configs\te_2483.pin c:\private\101f7993\te_2483.pin
       
    37 RUN_UTILS MakeReadWrite c:\private\101f7993\te_2483.pin
       
    38 
       
    39 //copy .pol file from data folder to private folder
       
    40 RUN_UTILS DeleteFile c:\private\101f7993\linux_tunnel.pol
       
    41 RUN_UTILS CopyFile z:\testdata\configs\te_2483.pol c:\private\101f7993\te_2483.pol
       
    42 RUN_UTILS MakeReadWrite c:\private\101f7993\te_2483.pol
       
    43 	
       
    44 	
       
    45 
       
    46 START_TESTCASE NET-IPSec-SELECTOR-POLICY-CONFLICT-SA-UMA3
       
    47 //! @SYMTestCaseID          NET-IPSec-SELECTOR-POLICY-CONFLICT-SA-UMA3
       
    48 //! @SYMCreationDate        08-07-2010
       
    49 //! @SYMAuthor              suresh babu k
       
    50 //! @SYMTestCaseDesc        IPSec SELECTOR CONFLICT DURING POLICY LOADING
       
    51 //!                         
       
    52 //!                         DUT should act as the Initiator for Phase 1.
       
    53 //!
       
    54 //!                         
       
    55 //!                         1.Load bypass mode policy                          
       
    56 //!                         2.Make connection with secure gateway and send some packets 
       
    57 //!                         3.Load another bypass policy 
       
    58 //!                         4.Load drop mode policy
       
    59 //!     
       
    60 //!
       
    61 //!                         DH Group - 2
       
    62 //!                         
       
    63 //!                         Phase 2
       
    64 //!                         Security Protocol - ESP
       
    65 //!                         Encapsulation Mode - Tunnel
       
    66 //!                         Encryption Algorithm - AES with 128-bit keys in CBC mode
       
    67 //!                         Authentication Algorithm - AES-XCBC-MAC-96
       
    68 //! @SYMREQ                 REQ10662
       
    69 
       
    70 	
       
    71 	START_TEST_BLOCK    100     te_ipsec_selector_conflict z:\testdata\scripts\ns-ipsec-ikev1test-ops.ini
       
    72 	      CREATE_OBJECT   IPSecTestUMAPolicy  IKE-Policy-TestWrapperSection
       
    73 	      COMMAND                   IKE-Policy-TestWrapperSection New
       
    74 	      COMMAND			IKE-Policy-TestWrapperSection LoadDropModePolicy       Value1ParamSection
       
    75 	      COMMAND    !Error=-5146	IKE-Policy-TestWrapperSection LOadUMAModePolicy        Value1ParamSection
       
    76 	      COMMAND  	!Error=-5146    IKE-Policy-TestWrapperSection LoadByPassModePolicy     Value1ParamSection
       
    77               COMMAND       		IKE-Policy-TestWrapperSection UnloadDropModePolicy      Value1ParamSection
       
    78 	      COMMAND                   IKE-Policy-TestWrapperSection Close                    Value1ParamSection
       
    79 	END_TEST_BLOCK
       
    80 
       
    81 END_TESTCASE NET-IPSec-SELECTOR-POLICY-CONFLICT-SA-UMA3
       
    82 
       
    83 
       
    84 RUN_UTILS DeleteFile c:\Te_ethced_2483VPN.xml
       
    85 RUN_UTILS DeleteFile c:\Te_ethced_2483.xml