|
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 "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 PRINT Integration Test 3.2 GPRS Outgoing with Ipsec |
|
18 |
|
19 |
|
20 LOAD_SUITE TE_Esock |
|
21 LOAD_SUITE te_esockutil |
|
22 |
|
23 |
|
24 |
|
25 RUN_SCRIPT z:\TestData\scripts\te_esock_test_loadesock.script |
|
26 //CED z:\testdata\configs\te_esock.xml |
|
27 RUN_UTILS MkDir c:\private |
|
28 RUN_UTILS MkDir c:\private\10202be9 |
|
29 RUN_UTILS MkDir c:\private\10202be9\persists |
|
30 RUN_UTILS MakeReadWrite c:\private\10202be9\persists\cccccc00.cre |
|
31 RUN_UTILS CopyFile z:\testdata\configs\cccccc00_itest3.cre c:\private\10202be9\persists\cccccc00.cre |
|
32 |
|
33 |
|
34 # ipsec dirs |
|
35 run_utils mkdir c:\system\data\security\ |
|
36 run_utils mkdir c:\system\data\security\secfiles\ |
|
37 |
|
38 # vpn test 1, the IAPs need to be configured for this in advance |
|
39 run_utils copyfile z:\TestData\configs\fbsd_tull.pol c:\system\data\security\secfiles\fbsd_tull.pol |
|
40 run_utils copyfile z:\TestData\configs\fbsd_tull.pin c:\system\data\security\secfiles\fbsd_tull.pin |
|
41 run_utils copyfile z:\TestData\configs\cisco_all.pol c:\system\data\security\secfiles\cisco_all.pol |
|
42 run_utils copyfile z:\TestData\configs\cisco_all.pin c:\system\data\security\secfiles\cisco_all.pin |
|
43 |
|
44 run_utils MakeReadWrite c:\system\data\security\secfiles\fbsd_tull.pin |
|
45 run_utils MakeReadWrite c:\system\data\security\secfiles\fbsd_tull.pol |
|
46 run_utils MakeReadWrite c:\system\data\security\secfiles\ciscol_all.pol |
|
47 run_utils MakeReadWrite c:\system\data\security\secfiles\cisco_all.pin |
|
48 |
|
49 run_utils copyfile z:\TestData\configs\algorithms.conf c:\system\data\security\secfiles\algorithms.conf |
|
50 run_utils MakeReadWrite c:\system\data\security\secfiles\algorithms.conf |
|
51 |
|
52 // open socket server |
|
53 RUN_TEST_STEP 100 TE_Esock OpenServer |
|
54 |
|
55 |
|
56 START_TESTCASE NET-Integration-Gprs-0201 |
|
57 //! @SYMTestCaseID NET-Integration-Gprs-0201 |
|
58 |
|
59 |
|
60 // open socket |
|
61 RUN_TEST_STEP 100 TE_Esock Test1.2 z:\testdata\configs\integration\itest_s3\itest.ini |
|
62 |
|
63 // use socket |
|
64 RUN_TEST_STEP 1000 TE_Esock SendData z:\testdata\configs\integration\itest_s3\ipv4.ini |
|
65 |
|
66 // close socket |
|
67 RUN_TEST_STEP 100 TE_Esock Test1.15 z:\testdata\configs\integration\itest_s3\itest.ini |
|
68 |
|
69 // close socket server |
|
70 RUN_TEST_STEP 100 TE_Esock CloseServer |
|
71 |
|
72 // wait for more than Commdb AgentClientTimeout |
|
73 print wait for more than Commdb AgentClientTimeout |
|
74 run_test_step -1 te_esockutil TE_ESockUtilDelay z:\testdata\configs\integration\itest_s3\client_timeout.ini |
|
75 |
|
76 |
|
77 // check the network is NOT active |
|
78 RUN_TEST_STEP 100 te_esockutil TE_ESockUtilIsNetworkNotActive |
|
79 |
|
80 // log result |
|
81 PRINT Result for Integration test 3.02 - GPRS Outgoing with Ipsec |
|
82 TEST_COMPLETE gprs_test_3_02 |
|
83 |
|
84 END_TESTCASE NET-Integration-Gprs-0201 |
|
85 |