You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by gi...@apache.org on 2013/12/04 07:07:52 UTC

git commit: updated refs/heads/master to 4b5a0ca

Updated Branches:
  refs/heads/master 291eafada -> 4b5a0ca4c


CLOUDSTACK-5230: Removing test cases' dependency on each other leading to failures


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

Branch: refs/heads/master
Commit: 4b5a0ca4c27f511e48c6cc094ce4bec731c0d8fb
Parents: 291eafa
Author: Ashutosh K <as...@clogeny.com>
Authored: Wed Dec 4 11:37:22 2013 +0530
Committer: Girish Shilamkar <gi...@clogeny.com>
Committed: Wed Dec 4 11:37:22 2013 +0530

----------------------------------------------------------------------
 .../component/test_vpc_vm_life_cycle.py            | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4b5a0ca4/test/integration/component/test_vpc_vm_life_cycle.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_vpc_vm_life_cycle.py b/test/integration/component/test_vpc_vm_life_cycle.py
index aed9f95..5ce94f2 100644
--- a/test/integration/component/test_vpc_vm_life_cycle.py
+++ b/test/integration/component/test_vpc_vm_life_cycle.py
@@ -1395,6 +1395,20 @@ class TestVMLifeCycleSharedNwVPC(cloudstackTestCase):
         """ Test recover an instance in VPC networks
         """
 
+        self.debug("Deploying vm")
+
+        self.vm_2 = VirtualMachine.create(
+                                  self.api_client,
+                                  self.services["virtual_machine"],
+                                  accountid=self.account.name,
+                                  domainid=self.account.domainid,
+                                  serviceofferingid=self.service_offering.id,
+                                  networkids=[str(self.network_1.id),
+                                              str(self.network_2.id)]
+                                  )
+
+        self.cleanup.append(self.vm_2)
+
         try:
             self.vm_2.delete(self.apiclient)
         except Exception as e:
@@ -1603,7 +1617,7 @@ class TestVMLifeCycleSharedNwVPC(cloudstackTestCase):
         self.debug("Delete virtual machines in account: %s" %
                                                 self.account.name)
         try:
-            self.vm_2.delete(self.apiclient)
+            self.vm_3.delete(self.apiclient)
         except Exception as e:
             self.fail("Failed to destroy the virtual instances, %s" % e)
 
@@ -1623,7 +1637,6 @@ class TestVMLifeCycleSharedNwVPC(cloudstackTestCase):
                                                     self.account.name)
         try:
             self.vm_1.delete(self.apiclient)
-            self.vm_3.delete(self.apiclient)
         except Exception as e:
             self.fail("Failed to destroy the virtual instances, %s" % e)