mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
smoke test: fix test_vm_deployment_planner (#7183)
This commit is contained in:
parent
1b89a22ab0
commit
f3e8f39f2b
@ -56,23 +56,14 @@ class TestVMDeploymentPlanner(cloudstackTestCase):
|
||||
cls.services["service_offerings"]["tiny"]
|
||||
)
|
||||
|
||||
cls.cleanup = [
|
||||
cls._cleanup = [
|
||||
cls.account,
|
||||
cls.service_offering
|
||||
]
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
try:
|
||||
cls.apiclient = super(
|
||||
TestVMDeploymentPlanner,
|
||||
cls
|
||||
).getClsTestClient().getApiClient()
|
||||
# Clean up, terminate the created templates
|
||||
cleanup_resources(cls.apiclient, cls.cleanup)
|
||||
|
||||
except Exception as e:
|
||||
raise Exception("Warning: Exception during cleanup : %s" % e)
|
||||
super(TestVMDeploymentPlanner, cls).tearDownClass()
|
||||
|
||||
def deploy_vm(self, destination_id):
|
||||
cmd = deployVirtualMachine.deployVirtualMachineCmd()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user