|
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_bbd2.script |
|
18 //! @SYMScriptAuthor suresh |
|
19 //! @SYMTestSuiteName te_ipsec_selector_conflict |
|
20 //! @SYMScriptCreationDate thursday july 08 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 //Create private folder |
|
32 RUN_UTILS MkDir c:\private\101f7993\ |
|
33 |
|
34 //copy .pin file from data folder to private folder - one time job |
|
35 RUN_UTILS CopyFile z:\testdata\configs\te_2483.pin c:\private\101f7993\te_2483.pin |
|
36 RUN_UTILS MakeReadWrite c:\private\101f7993\te_2483.pin |
|
37 |
|
38 //copy .pol file from data folder to private folder |
|
39 //RUN_UTILS DeleteFile c:\private\101f7993\linux_tunnel.pol |
|
40 RUN_UTILS CopyFile z:\testdata\configs\te_2483.pol c:\private\101f7993\te_2483.pol |
|
41 RUN_UTILS MakeReadWrite c:\private\101f7993\te_2483.pol |
|
42 |
|
43 |
|
44 START_TESTCASE NET-IPSec-SELECTOR-POLICY-CONFLICT-SA-UMA2 |
|
45 //! @SYMTestCaseID NET-IPSec-SELECTOR-POLICY-CONFLICT-SA-UMA2 |
|
46 //! @SYMCreationDate 08-07-2010 |
|
47 //! @SYMAuthor suresh babu k |
|
48 //! @SYMTestCaseDesc IPSec SELECTOR CONFLICT DURING POLICY LOADING |
|
49 //! |
|
50 //! DUT should act as the Initiator for Phase 1. |
|
51 //! |
|
52 //! |
|
53 //! 1.Load bypass mode policy |
|
54 //! 2.Make connection with secure gateway and send some packets |
|
55 //! 3.Load drop mode policy |
|
56 //! 4.Load another bypass mode policy |
|
57 //! |
|
58 //! |
|
59 //! DH Group - 2 |
|
60 //! |
|
61 //! Phase 2 |
|
62 //! Security Protocol - ESP |
|
63 //! Encapsulation Mode - Tunnel |
|
64 //! Encryption Algorithm - AES with 128-bit keys in CBC mode |
|
65 //! Authentication Algorithm - AES-XCBC-MAC-96 |
|
66 //! @SYMREQ REQ10662 |
|
67 |
|
68 |
|
69 |
|
70 START_TEST_BLOCK 100 te_ipsec_selector_conflict z:\testdata\scripts\ns-ipsec-ikev1test-ops.ini |
|
71 CREATE_OBJECT IPSecTestUMAPolicy IKE-Policy-TestWrapperSection |
|
72 COMMAND IKE-Policy-TestWrapperSection New |
|
73 COMMAND IKE-Policy-TestWrapperSection LOadUMAModePolicy Value1ParamSection |
|
74 COMMAND !Error=-5146 IKE-Policy-TestWrapperSection LoadDropModePolicy Value1ParamSection |
|
75 COMMAND IKE-Policy-TestWrapperSection LoadByPassModePolicy Value1ParamSection |
|
76 COMMAND IKE-Policy-TestWrapperSection UnloadUMAModePolicy Value1ParamSection |
|
77 COMMAND IKE-Policy-TestWrapperSection UnloadBypassModePolicy Value1ParamSection |
|
78 COMMAND IKE-Policy-TestWrapperSection Close Value1ParamSection |
|
79 END_TEST_BLOCK |
|
80 |
|
81 END_TESTCASE NET-IPSec-SELECTOR-POLICY-CONFLICT-SA-UMA2 |
|
82 |
|
83 |
|
84 RUN_UTILS DeleteFile c:\Te_ethced_2483VPN.xml |
|
85 RUN_UTILS DeleteFile c:\Te_ethced_2483.xml |