Add access modifiers to `VirtualMachineTO`
Description
The class VirtualMachineTO lacks access modifiers in its fields. This PR aims to improve adherence to object-oriented programming by adding private access modifiers to all fields in the class mentioned above, along with their respective getters and setters.
Types of changes
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] Enhancement (improves an existing feature and functionality)
- [x] Cleanup (Code refactoring and cleanup, that may add test cases)
- [ ] build/CI
Feature/Enhancement Scale
- [ ] Major
- [x] Minor
How Has This Been Tested?
I ran all the tests related to VirtualMachineTO, checked all usages of the class, and made sure nothing was broken.
@FelipeM525 there are some test failures
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.
@blueorangutan package
@sureshanaparti 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 13629
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 13722
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 13739
@winterhazel , can you assess the status of this PR , please?
@blueorangutan package
@winterhazel 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.
@winterhazel , can you assess the status of this PR , please?
@DaanHoogland I fixed the merge conflicts, it should be good to go if the CI passses. I don't think we need more testing for a simple change like this one.
Codecov Report
Attention: Patch coverage is 23.07692% with 30 lines in your changes missing coverage. Please review.
Project coverage is 16.60%. Comparing base (
e83a347) to head (f3cb29c). Report is 3 commits behind head on main.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| .../java/com/cloud/agent/api/to/VirtualMachineTO.java | 23.07% | 30 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #9277 +/- ##
============================================
- Coverage 16.60% 16.60% -0.01%
- Complexity 13923 13924 +1
============================================
Files 5730 5730
Lines 508224 508254 +30
Branches 61789 61789
============================================
- Hits 84383 84382 -1
- Misses 414406 414436 +30
- Partials 9435 9436 +1
| Flag | Coverage Δ | |
|---|---|---|
| uitests | 3.93% <ø> (ø) |
|
| unittests | 17.49% <23.07%> (-0.01%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13783
@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-13532) Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8 Total time taken: 57953 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9277-t13532-kvm-ol8.zip Smoke tests completed. 141 look OK, 0 have errors, 0 did not run Only failed and skipped tests results shown below:
| Test | Result | Time (s) | Test File |
|---|