You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2014/06/25 17:09:54 UTC

git commit: updated refs/heads/master to 3268f5b

Repository: cloudstack
Updated Branches:
  refs/heads/master d90b8d88e -> 3268f5bd1


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/3268f5bd
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3268f5bd
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3268f5bd

Branch: refs/heads/master
Commit: 3268f5bd1f2175ccd919ee7195d69b05d5b3f3e2
Parents: d90b8d8
Author: Daan Hoogland <da...@onecht.net>
Authored: Wed Jun 25 17:09:19 2014 +0200
Committer: Daan Hoogland <da...@onecht.net>
Committed: Wed Jun 25 17:09:19 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3268f5bd/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..96c3baf 100644
--- a/utils/test/com/cloud/utils/net/NetUtilsTest.java
+++ b/utils/test/com/cloud/utils/net/NetUtilsTest.java
@@ -231,6 +231,17 @@ public class NetUtilsTest {
     }
 
     @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";
         String cidrSecond = "10.0.151.0/20";