-
Notifications
You must be signed in to change notification settings - Fork 1.2k
test: cleanup test_guest_os.py for multiple execution #10818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 <[email protected]>
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:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
@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)
|
@@ -6772,10 +6773,13 @@ def list(cls, apiclient, id=None, oscategoryid=None, description=None, **kwargs) | |||
|
|||
return (apiclient.listOsTypes(cmd)) | |||
|
|||
def delete(self, apiclient): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of curiosity, where is this used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would imagine the cleanup_resources method of cloudstackTestcase needs these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code lgtm.
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?