smoke test: fix test_vm_deployment_planner (#7183)

This commit is contained in:
Wei Zhou 2023-02-09 15:19:57 +01:00 committed by GitHub
parent 1b89a22ab0
commit f3e8f39f2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()