mirror of https://github.com/apache/cloudstack.git
Automation: Fix test_vpc_vms_deployment resource release
The account may be failed to be deleted in the test case, so we still need to clean it up after.
This commit is contained in:
parent
1fc6335401
commit
60bc2cc28a
|
|
@ -1746,9 +1746,6 @@ class TestVMDeployVPC(cloudstackTestCase):
|
|||
# expected
|
||||
# 2. All the resources associated with account should be deleted
|
||||
|
||||
# Remove account from cleanup list, we will delete it at end of test
|
||||
self.cleanup = []
|
||||
|
||||
self.debug("Creating a VPC offering..")
|
||||
vpc_off = VpcOffering.create(
|
||||
self.apiclient,
|
||||
|
|
@ -2427,6 +2424,9 @@ class TestVMDeployVPC(cloudstackTestCase):
|
|||
self.account.name)
|
||||
wait_for_cleanup(self.apiclient, ["account.cleanup.interval"])
|
||||
|
||||
# Remove account from cleanup list, we've already deleted it
|
||||
self.cleanup.remove(self.account)
|
||||
|
||||
self.debug("Check if the VPC network is created successfully?")
|
||||
vpc_networks = VPC.list(
|
||||
self.apiclient,
|
||||
|
|
|
|||
Loading…
Reference in New Issue