This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new f3e8f39f2b7 smoke test: fix test_vm_deployment_planner (#7183)
f3e8f39f2b7 is described below
commit f3e8f39f2b729ab9aa3284e7f8d35a129323f05b
Author: Wei Zhou <[email protected]>
AuthorDate: Thu Feb 9 15:19:57 2023 +0100
smoke test: fix test_vm_deployment_planner (#7183)
---
test/integration/smoke/test_vm_deployment_planner.py | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/test/integration/smoke/test_vm_deployment_planner.py
b/test/integration/smoke/test_vm_deployment_planner.py
index f5cb092bc15..636eaaceb5a 100644
--- a/test/integration/smoke/test_vm_deployment_planner.py
+++ b/test/integration/smoke/test_vm_deployment_planner.py
@@ -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()