CLOUDSTACK-8084: Fixed test_17_add_nic_different_zone in 
test_add_remove_network.py

Signed-off-by: SrikanteswaraRao Talluri <[email protected]>


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

Branch: refs/heads/4.5
Commit: 0db63d87aa40de7493a6bc66b7686cf8922bc742
Parents: f2c7ead
Author: Gaurav Aradhye <[email protected]>
Authored: Wed Dec 17 17:35:35 2014 +0530
Committer: SrikanteswaraRao Talluri <[email protected]>
Committed: Fri Dec 19 10:36:02 2014 +0530

----------------------------------------------------------------------
 test/integration/component/test_add_remove_network.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0db63d87/test/integration/component/test_add_remove_network.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_add_remove_network.py 
b/test/integration/component/test_add_remove_network.py
index aacd44b..2f685b5 100644
--- a/test/integration/component/test_add_remove_network.py
+++ b/test/integration/component/test_add_remove_network.py
@@ -1263,6 +1263,7 @@ class 
TestFailureScenariosAddNetworkToVM(cloudstackTestCase):
         self.debug("Creating isolated network in zone %s which is foreign to 
VM" %
                     foreignZoneId)
         isolated_network = 
Network.create(self.apiclient,self.services["isolated_network"],
+                                          self.account.name, 
self.account.domainid,
                                           
networkofferingid=self.isolated_network_offering.id)
         self.debug("Created isolated network %s in zone %s" %
                    (isolated_network.id, foreignZoneId))
@@ -1274,7 +1275,7 @@ class 
TestFailureScenariosAddNetworkToVM(cloudstackTestCase):
         cmd.networkid = isolated_network.id
 
         with self.assertRaises(Exception) as e:
-            time.sleep(5) 
+            time.sleep(5)
             self.apiclient.addNicToVirtualMachine(cmd)
            self.debug("addNicToVirtualMachine API failed with exception: %s" % 
e.exception)
 

Reply via email to