RANGER-5326: Add unit test cases for agents-common module #684
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
AI Disclosure
Added AI-generated Test methods/Test classes using Cursor AI for Common library for Plugins module and manually reviewed.
Added unit test cases for agents-common module
How was this patch tested?
Build completed successfully along with all test cases using the command: mvn clean compile package install.
As per Jacoco
Apache -> Common library for Plugins
Packages Covered
Improved Jacoco coverage across multiple packages:
org.apache.ranger.services.gds → 0% → 100%
org.apache.ranger.services.tag → 0% → 99%
org.apache.ranger.admin.client.datatype→ 0% → 84%
org.apache.hadoop.security → 0% → 96%
org.apache.ranger.plugin.client → 0% → 92%
org.apache.ranger.plugin.contextenricher.externalretrievers → 0% → 88%
org.apache.ranger.plugin.store → 1% → 85%
org.apache.ranger.admin.client → 7% → 84%
org.apache.ranger.plugin.service → 32% → 75%
org.apache.ranger.plugin.model → 36% → 77%
org.apache.ranger.plugin.util → 40% → 75%
org.apache.ranger.authorization.utils → 41% → 93%
org.apache.ranger.authorization.hadoop.config → 49% → 89%
org.apache.ranger.plugin.audit → 63% → 98%
org.apache.ranger.plugin.conditionevaluator → 59% → 90%
org.apache.ranger.plugin.contextenricher → 48% → 78%
org.apache.ranger.plugin.geo → 55% → 96%