|
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 RUN_UTILS CopyFile z:\testdata\configs\Te_ethced_2483.xml c:\Te_ethced_2483.xml |
|
29 RUN_UTILS MakeReadWrite c:\Te_ethced_2483.xml |
|
30 RUN_PROGRAM -1 ced c:\Te_ethced_2483.xml |
|
31 |
|
32 RUN_UTILS CopyFile z:\testdata\configs\Te_ethced_2483VPN.xml c:\Te_ethced_2483VPN.xml |
|
33 RUN_UTILS MakeReadWrite c:\Te_ethced_2483VPN.xml |
|
34 RUN_PROGRAM -1 ced c:\Te_ethced_2483VPN.xml |
|
35 |
|
36 |
|
37 //Create private folder |
|
38 RUN_UTILS MkDir c:\private\101f7993\ |
|
39 |
|
40 //copy .pin file from data folder to private folder - one time job |
|
41 RUN_UTILS CopyFile z:\testdata\configs\te_2483.pin c:\private\101f7993\te_2483.pin |
|
42 RUN_UTILS MakeReadWrite c:\private\101f7993\te_2483.pin |
|
43 |
|
44 //copy .pol file from data folder to private folder |
|
45 RUN_UTILS DeleteFile c:\private\101f7993\linux_tunnel.pol |
|
46 RUN_UTILS CopyFile z:\testdata\configs\te_2483.pol c:\private\101f7993\te_2483.pol |
|
47 RUN_UTILS MakeReadWrite c:\private\101f7993\te_2483.pol |
|
48 |
|
49 //run batch file to ping the linux machine. Pol file is change, so need ceding again. |
|
50 RUN_PROGRAM -1 ced c:\Te_ethced_2483.xml |
|
51 RUN_PROGRAM -1 ced c:\Te_ethced_2483VPN.xml |
|
52 |
|
53 |
|
54 START_TESTCASE NET-IPSec-SELECTOR-POLICY-CONFLICT-SA-BBD1 |
|
55 //! @SYMTestCaseID NET-IPSec-SELECTOR-POLICY-CONFLICT-SA-BBD1 |
|
56 //! @SYMCreationDate 08-07-2010 |
|
57 //! @SYMAuthor suresh babu k |
|
58 //! @SYMTestCaseDesc IPSec SELECTOR CONFLICT DURING POLICY LOADING |
|
59 //! |
|
60 //! DUT should act as the Initiator for Phase 1. |
|
61 //! |
|
62 //! |
|
63 //! 1.Load bypass mode policy |
|
64 //! 2.Make connection with secure gateway and send some packets |
|
65 //! 3.Load another bypass policy |
|
66 //! 4.Load drop mode policy |
|
67 //! |
|
68 //! |
|
69 //! DH Group - 2 |
|
70 //! |
|
71 //! Phase 2 |
|
72 //! Security Protocol - ESP |
|
73 //! Encapsulation Mode - Tunnel |
|
74 //! Encryption Algorithm - AES with 128-bit keys in CBC mode |
|
75 //! Authentication Algorithm - AES-XCBC-MAC-96 |
|
76 //! @SYMREQ REQ10662 |
|
77 |
|
78 |
|
79 START_TEST_BLOCK 100 te_ipsec_selector_conflict z:\testdata\scripts\ns-ipsec-ikev1test-ops.ini |
|
80 CREATE_OBJECT IPSecTestByPassPolicy IKE-Policy-TestWrapperSection |
|
81 COMMAND IKE-Policy-TestWrapperSection New |
|
82 COMMAND IKE-Policy-TestWrapperSection LoadBypassModePolicy Value1ParamSection |
|
83 COMMAND IKE-Policy-TestWrapperSection LoadNewBypassModePolicy Value1ParamSection |
|
84 COMMAND !Error=-5146 IKE-Policy-TestWrapperSection LoadDropModePolicy Value1ParamSection |
|
85 COMMAND IKE-Policy-TestWrapperSection UnloadNewBypassModePolicy Value1ParamSection |
|
86 COMMAND IKE-Policy-TestWrapperSection UnloadBypassModePolicy Value1ParamSection |
|
87 COMMAND IKE-Policy-TestWrapperSection Close Value1ParamSection |
|
88 END_TEST_BLOCK |
|
89 |
|
90 END_TESTCASE NET-IPSec-SELECTOR-POLICY-CONFLICT-SA-BBD1 |
|
91 |
|
92 //!RUN_PROGRAM -1 ced c:\Te_ethced_2483.xml |
|
93 |
|
94 |
|
95 RUN_UTILS DeleteFile c:\Te_ethced_2483VPN.xml |
|
96 RUN_UTILS DeleteFile c:\Te_ethced_2483.xml |