-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Testcases Added #9116
base: main
Are you sure you want to change the base?
Testcases Added #9116
Conversation
…ted a new test in OVAProcessorTest.java
Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9116 +/- ##
============================================
+ Coverage 4.25% 15.28% +11.02%
- Complexity 0 11537 +11537
============================================
Files 363 5424 +5061
Lines 29686 474334 +444648
Branches 5214 58626 +53412
============================================
+ Hits 1264 72509 +71245
- Misses 28279 393767 +365488
- Partials 143 8058 +7915
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@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. |
@my-code-AL Build is failing with error:
|
Packaging result [SF]: ✖️ el7 ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 9718 |
@DaanHoogland Howdy Daan, I was able to update the checkstyle ruleset for these test cases. Let me know if there is anything else I can do! |
@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. |
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
actually this is just unit-tests, so no packaging needed to prove this, as GHA does already run those. |
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9778 |
Description
This PR adds a new tester directory and file at
core/src/test/java/com/cloud/serializer/GsonHelperTest.java
. Previously, theserializer
directory did not exist. The new test file checks the base functionality of GSON conversion into JSON of a Java CloudStack object implementing thedataStoreTo
interface to ensure it works properly with a CloudStack class.Additionally, this PR includes a test for
OVAProcessor.java
that tests the OVA processing of large objects and adds a test forPasswordPolicyImpl.java
atserver/src/test/java/com/cloud/user/PasswordPolicyImplTest.java
. The new test verifies that a password meets all test case points (such as length, minimum special characters, minimum uppercase characters, regex specifications) instead of just individual criteria.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?
The tests were designed to cover various edge cases and typical usage scenarios to ensure robustness. For
GsonHelperTest.java
, different CloudStack objects were serialized and deserialized to verify GSON conversion accuracy. ForOVAProcessor.java
, large file sizes were used to test the OVA processing logic. ForPasswordPolicyImpl.java
, various password inputs were tested to ensure they meet all specified criteria.