mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	CLOUDSTACK-5230: Removing test cases' dependency on each other leading to failures
This commit is contained in:
		
							parent
							
								
									291eafadae
								
							
						
					
					
						commit
						4b5a0ca4c2
					
				@ -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)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user