cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: updated refs/heads/master to 218c471
Date Wed, 25 Jun 2014 14:59:36 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 05b79a127 -> 218c4713a


CLOUDSTACK-6747 test for test to allow all cidrs on other end of a vpc


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/218c4713
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/218c4713
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/218c4713

Branch: refs/heads/master
Commit: 218c4713ae796bcb0002f12421d24dfee9a5320f
Parents: 05b79a1
Author: Daan Hoogland <daan@onecht.net>
Authored: Wed Jun 25 16:57:38 2014 +0200
Committer: Daan Hoogland <daan@onecht.net>
Committed: Wed Jun 25 16:58:52 2014 +0200

----------------------------------------------------------------------
 utils/test/com/cloud/utils/net/NetUtilsTest.java | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/218c4713/utils/test/com/cloud/utils/net/NetUtilsTest.java
----------------------------------------------------------------------
diff --git a/utils/test/com/cloud/utils/net/NetUtilsTest.java b/utils/test/com/cloud/utils/net/NetUtilsTest.java
index cd5109c..e3a4671 100644
--- a/utils/test/com/cloud/utils/net/NetUtilsTest.java
+++ b/utils/test/com/cloud/utils/net/NetUtilsTest.java
@@ -231,6 +231,18 @@ public class NetUtilsTest {
     }
 
     @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";
         String cidrSecond = "10.0.151.0/20";


Mime
View raw message