mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6747 test for test to allow all cidrs on other end of a vpc
This commit is contained in:
parent
d90b8d88ed
commit
3268f5bd1f
|
|
@ -230,6 +230,17 @@ public class NetUtilsTest {
|
|||
assertTrue(NetUtils.isValidCIDR(cidrThird));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIsValidCidrList() throws Exception {
|
||||
String cidrFirst = "10.0.144.0/20,1.2.3.4/32,5.6.7.8/24";
|
||||
String cidrSecond = "10.0.151.0/20,129.0.0.0/4";
|
||||
String cidrThird = "10.0.144.0/21";
|
||||
|
||||
assertTrue(NetUtils.isValidCidrList(cidrFirst));
|
||||
assertTrue(NetUtils.isValidCidrList(cidrSecond));
|
||||
assertTrue(NetUtils.isValidCidrList(cidrThird));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIsSameIpRange() {
|
||||
String cidrFirst = "10.0.144.0/20";
|
||||
|
|
|
|||
Loading…
Reference in New Issue