test: cleanup test_guest_os.py for multiple execution#10818
test: cleanup test_guest_os.py for multiple execution#10818DaanHoogland merged 1 commit intoapache:4.20from
Conversation
Currently test cases in test_guest_os.py creat new guest os and mapping entries which are not always cleared. This PR makes changes to clear all entries created during tests to allow test cases to run multiple times. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #10818 +/- ##
============================================
- Coverage 16.13% 16.13% -0.01%
+ Complexity 13220 13219 -1
============================================
Files 5651 5651
Lines 496740 496740
Branches 60183 60183
============================================
- Hits 80148 80138 -10
- Misses 407674 407678 +4
- Partials 8918 8924 +6
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:
|
|
@blueorangutan package |
|
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13271 |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-13219)
|
|
|
||
| return (apiclient.listOsTypes(cmd)) | ||
|
|
||
| def delete(self, apiclient): |
There was a problem hiding this comment.
out of curiosity, where is this used?
There was a problem hiding this comment.
I would imagine the cleanup_resources method of cloudstackTestcase needs these.
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Description
Currently test cases in test_guest_os.py creates new guest os and mapping entries which are not always cleared. This PR makes changes to clear all entries created during tests to allow test cases to run multiple times.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Before:
After:
How did you try to break this feature and the system with this change?