test: cleanup resources in test_deploy_vm_iso, use base class tearDown#13136
test: cleanup resources in test_deploy_vm_iso, use base class tearDown#13136DaanHoogland wants to merge 2 commits intomainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13136 +/- ##
=========================================
Coverage 18.08% 18.09%
- Complexity 16718 16721 +3
=========================================
Files 6037 6037
Lines 542546 542546
Branches 66432 66432
=========================================
+ Hits 98146 98157 +11
+ Misses 433378 433368 -10
+ Partials 11022 11021 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR aims to ensure test_deploy_vm_iso properly cleans up created resources by relying on the base cloudstackTestCase tearDown/tearDownClass cleanup mechanisms, so test runs don’t leak ISOs/VMs/accounts into the environment.
Changes:
- Remove the test-specific
tearDown/tearDownClassand rely oncloudstackTestCasecleanup handling. - Standardize the class client attribute name to
cls.apiclientso base-class cleanup can find it. - Add newly created resources (ISO, VM) to
self.cleanupso they’re deleted after each test.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3a234d8 to
acf78ab
Compare
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
@blueorangutan package |
|
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17789 |
|



The test was creating an ISO and a VirtualMachine without adding them to self.cleanup, so they were never deleted after each test run.
Relates to #3693
Description
This PR...
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?