You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by wi...@apache.org on 2013/09/02 22:04:53 UTC

[07/50] [abbrv] git commit: updated refs/heads/disk-cache to 99d67cb

CLOUDSTACK-3753 fixed the test test_non_contigiousvlan.py

Signed-off-by: Prasanna Santhanam <ts...@apache.org>
(cherry picked from commit 6e83a54ffbf69e46a79fbaf0be63e63092385b65)


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

Branch: refs/heads/disk-cache
Commit: eaeef9e994f66ee0cc7f8281199654b865c327e4
Parents: 6ef51b4
Author: Bharat Kumar <bh...@citrix.com>
Authored: Fri Aug 2 16:19:28 2013 +0530
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Fri Aug 2 16:34:10 2013 +0530

----------------------------------------------------------------------
 test/integration/smoke/test_non_contigiousvlan.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/eaeef9e9/test/integration/smoke/test_non_contigiousvlan.py
----------------------------------------------------------------------
diff --git a/test/integration/smoke/test_non_contigiousvlan.py b/test/integration/smoke/test_non_contigiousvlan.py
index 5fdc034..f1736ae 100644
--- a/test/integration/smoke/test_non_contigiousvlan.py
+++ b/test/integration/smoke/test_non_contigiousvlan.py
@@ -52,13 +52,14 @@ class TestUpdatePhysicalNetwork(cloudstackTestCase):
 
         self.network = phy_networks[0]
         self.networkid = phy_networks[0].id
-        vlan1 = self.vlan["part"][0]
+        self.existing_vlan = phy_networks[0].vlan
+        vlan1 = self.existing_vlan+","+self.vlan["part"][0]
         updatePhysicalNetworkResponse = self.network.update(self.apiClient, id = self.networkid, vlan = vlan1)
         self.assert_(updatePhysicalNetworkResponse is not None,
             msg="couldn't extend the physical network with vlan %s"%vlan1)
         self.assert_(isinstance(self.network, PhysicalNetwork))
 
-        vlan2 = self.vlan["part"][1]
+        vlan2 = vlan1+","+self.vlan["part"][1]
         updatePhysicalNetworkResponse2 = self.network.update(self.apiClient, id = self.networkid, vlan = vlan2)
         self.assert_(updatePhysicalNetworkResponse2 is not None,
             msg="couldn't extend the physical network with vlan %s"%vlan2)
@@ -80,7 +81,7 @@ class TestUpdatePhysicalNetwork(cloudstackTestCase):
             msg="There are no physical networks in the zone")
         self.network = phy_networks[0]
         self.networkid = phy_networks[0].id
-        updateResponse = self.network.update(self.apiClient, id = self.networkid, removevlan = self.vlan["full"])
+        updateResponse = self.network.update(self.apiClient, id = self.networkid, vlan=self.existing_vlan)
         self.assert_(updateResponse.vlan.find(self.vlan["full"]) < 0,
             "VLAN was not removed successfully")