cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anim...@apache.org
Subject [02/50] git commit: updated refs/heads/4.2 to 86c9363
Date Thu, 03 Oct 2013 06:06:00 GMT
Added missing test for VPC load balancing rule from old QA repo to cloudstack repo

def test_04_VPC_CreateLBRuleInMultipleNetworksVRStoppedState

Since VPC now only allows load balancing on a single tier the test case
has been updated to check that condition

Ref : http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/Installation_Guide/configure-vpc.html

Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
(cherry picked from commit 5b5a617544fb8160b9429a24f1aa943e04d4f98a)


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

Branch: refs/heads/4.2
Commit: e49f14b7e3d6992ee77d40d3b6629f975ee6b9fb
Parents: 7d06e77
Author: Ashutosh K <ashutosh@clogeny.com>
Authored: Tue Sep 10 09:53:19 2013 +0530
Committer: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
Committed: Wed Sep 18 21:49:12 2013 +0530

----------------------------------------------------------------------
 .../component/test_vpc_network_lbrules.py       | 30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e49f14b7/test/integration/component/test_vpc_network_lbrules.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_vpc_network_lbrules.py b/test/integration/component/test_vpc_network_lbrules.py
index de29ce1..e7cb823 100644
--- a/test/integration/component/test_vpc_network_lbrules.py
+++ b/test/integration/component/test_vpc_network_lbrules.py
@@ -619,6 +619,36 @@ class TestVPCNetworkLBRules(cloudstackTestCase):
         self.check_wget_from_vm(vm_1, public_ip_1, testnegative=False)
         return    
 
+    @attr(tags=["advanced","advancedns", "intervlan"])
+    def test_04_VPC_CreateLBRuleInMultipleNetworksVRStoppedState(self):
+        """ Test case no 222 : Create LB rules for a two/multiple virtual networks of a
+            VPC using a new Public IP Address available with the VPC when the Virtual Router
is in Stopped State
+        """
+
+        # Validate the following
+        # 1. Create a VPC with cidr - 10.1.1.1/16
+        # 2. Create a Network offering - NO1 with all supported services
+        # 3. Add network1(10.1.1.1/24) using N01 to this VPC.
+        # 4. Add network2(10.1.2.1/24) using N01 to this VPC.
+        # 5. Deploy vm1, vm2 and vm3 in network1 on primary host.
+        # 7. Use the Create LB rule for vm1 and vm2 in network1.
+        # 8. Add vm3 to LB rule.
+        # 9. wget a file and check for LB rule.
+
+        network_1 = self.create_Network(self.services["network_offering"])
+        network_2 = self.create_Network(self.services["network_offering_no_lb"], '10.1.2.1')
+        vm_1 = self.create_VM_in_Network(network_1)
+        vm_2 = self.create_VM_in_Network(network_1)
+        vm_3 = self.create_VM_in_Network(network_2)
+        public_ip_1 = self.acquire_Public_IP(network_1)
+        lb_rule = self.create_LB_Rule(public_ip_1, network_1, [vm_1, vm_2], self.services["lbrule_http"])
+        # In a VPC, the load balancing service is supported only on a single tier.
+        # http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/Installation_Guide/configure-vpc.html
+        with self.assertRaises(Exception):
+            lb_rule.assign(self.apiclient, [vm_3])
+        self.check_wget_from_vm(vm_1, public_ip_1, testnegative=False)
+        return
+
     @attr(tags=["advanced", "intervlan"])
     def test_05_VPC_CreateAndDeleteLBRule(self):
         """ Test case no 214 : Delete few(not all) LB rules for a single virtual network
of a


Mime
View raw message