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:
Sheng Yang 2013-07-24 16:53:55 -07:00
parent 1fc6335401
commit 60bc2cc28a
1 changed files with 3 additions and 3 deletions

View File

@ -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,