mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-6747 test for test to allow all cidrs on other end of a vpc
This commit is contained in:
parent
05b79a127a
commit
218c4713ae
@ -230,6 +230,18 @@ public class NetUtilsTest {
|
||||
assertTrue(NetUtils.isValidCIDR(cidrThird));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIsValidCidrList() throws Exception {
|
||||
//Test to check IP Range of 2 CIDR
|
||||
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.isValidCIDR(cidrFirst));
|
||||
assertTrue(NetUtils.isValidCIDR(cidrSecond));
|
||||
assertTrue(NetUtils.isValidCIDR(cidrThird));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIsSameIpRange() {
|
||||
String cidrFirst = "10.0.144.0/20";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user