|
19 | 19 |
|
20 | 20 | package com.cloud.agent.resource.virtualnetwork; |
21 | 21 |
|
22 | | -import static org.junit.Assert.assertEquals; |
23 | | -import static org.junit.Assert.assertTrue; |
24 | | -import static org.junit.Assert.fail; |
25 | | - |
26 | | -import java.util.ArrayList; |
27 | | -import java.util.HashMap; |
28 | | -import java.util.LinkedList; |
29 | | -import java.util.List; |
30 | | -import java.util.UUID; |
31 | | - |
32 | | -import javax.naming.ConfigurationException; |
33 | | - |
34 | | -import org.junit.Before; |
35 | | -import org.junit.Test; |
36 | | -import org.junit.runner.RunWith; |
37 | | -import org.springframework.test.context.ContextConfiguration; |
38 | | -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
39 | | -import org.springframework.test.context.support.AnnotationConfigContextLoader; |
40 | | - |
41 | 22 | import com.cloud.agent.api.Answer; |
42 | 23 | import com.cloud.agent.api.BumpUpPriorityCommand; |
43 | 24 | import com.cloud.agent.api.SetupGuestNetworkCommand; |
|
80 | 61 | import com.cloud.network.vpc.VpcGateway; |
81 | 62 | import com.cloud.utils.ExecutionResult; |
82 | 63 | import com.cloud.utils.net.NetUtils; |
| 64 | +import org.junit.Before; |
| 65 | +import org.junit.Test; |
| 66 | +import org.junit.runner.RunWith; |
| 67 | +import org.springframework.test.context.ContextConfiguration; |
| 68 | +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
| 69 | +import org.springframework.test.context.support.AnnotationConfigContextLoader; |
| 70 | + |
| 71 | +import javax.naming.ConfigurationException; |
| 72 | +import java.util.ArrayList; |
| 73 | +import java.util.HashMap; |
| 74 | +import java.util.LinkedList; |
| 75 | +import java.util.List; |
| 76 | +import java.util.UUID; |
| 77 | + |
| 78 | +import static org.junit.Assert.assertEquals; |
| 79 | +import static org.junit.Assert.assertTrue; |
| 80 | +import static org.junit.Assert.fail; |
83 | 81 |
|
84 | 82 | @RunWith(SpringJUnit4ClassRunner.class) |
85 | 83 | @ContextConfiguration(loader = AnnotationConfigContextLoader.class) |
@@ -575,10 +573,10 @@ private void verifyArgs(Site2SiteVpnCfgCommand cmd, String script, String args) |
575 | 573 | assertEquals(script, VRScripts.S2SVPN_IPSEC); |
576 | 574 | switch (_count) { |
577 | 575 | case 1: |
578 | | - assertEquals(args, "-A -l 64.10.1.10 -n 192.168.1.1/16 -g 64.10.1.1 -r 124.10.1.10 -N 192.168.100.1/24 -e \"3des-sha1,aes128-md5\" -i \"3des-sha1,aes128-sha1;modp1536\" -t 1800 -T 1800 -s \"psk\" -d 1"); |
| 576 | + assertEquals(args, "-A -l 64.10.1.10 -n 192.168.1.1/16 -g 64.10.1.1 -r 124.10.1.10 -N 192.168.100.1/24 -e \"3des-sha1,aes128-md5\" -i \"3des-sha1,aes128-sha1\\;modp1536\" -t 1800 -T 1800 -s \"psk\" -d 1"); |
579 | 577 | break; |
580 | 578 | case 2: |
581 | | - assertEquals(args, "-A -l 64.10.1.10 -n 192.168.1.1/16 -g 64.10.1.1 -r 124.10.1.10 -N 192.168.100.1/24 -e \"3des-sha1,aes128-md5\" -i \"3des-sha1,aes128-sha1;modp1536\" -t 1800 -T 1800 -s \"psk\" -d 0 -p "); |
| 579 | + assertEquals(args, "-A -l 64.10.1.10 -n 192.168.1.1/16 -g 64.10.1.1 -r 124.10.1.10 -N 192.168.100.1/24 -e \"3des-sha1,aes128-md5\" -i \"3des-sha1,aes128-sha1\\;modp1536\" -t 1800 -T 1800 -s \"psk\" -d 0 -p "); |
582 | 580 | break; |
583 | 581 | case 3: |
584 | 582 | assertEquals(args, "-D -r 124.10.1.10 -n 192.168.1.1/16 -N 192.168.100.1/24"); |
|
0 commit comments