-
Notifications
You must be signed in to change notification settings - Fork 11
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
Product referential integrity check throws invalid WARNINGs #368
Comments
@qchaupds per this ticket, just added another update that should be include here:
|
Because the code from branch #69 has been merged back into main branch on July 17, 2021, the work for this ticket will be branched off a fresh copy of main. |
1. Add new test resource: src/test/resources/github368 2. Add logic to make throwing the warning optional for future work: src/main/java/gov/nasa/pds/tools/util/ReferentialIntegrityUtil.java 3. Add new enum type to report the warning to a specific type instead of using general: src/main/java/gov/nasa/pds/tools/validate/ProblemType.java 4. Modify test to reflect the correct number of warnings and add new test: src/test/resources/features/validate.feature Refs: #368 Product referential integrity check throws invalid WARNINGs
Product referential integrity check now does not throw invalid WARNINGs
closed per #383 |
@jordanpadams @qchaupds |
@rchenatjpl this was a bug identified after #308 was implemented. as long as you feel #308 was testing sufficiently, I think we can say this was tested as well |
Through many of the tickets things had purposely been turned off due to a large amount of noise #368. When the reporting was turned on for this ticket got 8 warnings when the expectation was one or two. Found that the reference for some were not for this bundle. Added further filtering that the reference had to be contained in this bundle as well. Found many of the lid/lidvid checks where contains() instead of startsWith(). Change to startsWith() to prevent some messed up thing where there is a match in the middle of the string when it clearly must startWith() for correctness. This too may have some cleanup to the output.
🐛 Describe the bug
When I try to validate against the insight documents bundle (as an example), I am getting WARNINGs about LID references not found for products that do not pertain to this bundle.
📜 To Reproduce
Steps to reproduce the behavior:
🕵️ Expected behavior
info.validation.general
. Replace with new problem type:warning.integrity.reference_not_found
📚 Version of Software Used
2.1.0-SNAPSHOT
🩺 Test Data / Additional context
Really any bundle, but https://pds.nasa.gov/data/pds4/test-data/registry/urn-nasa-pds-insight_documents/ also
🏞Screenshots
🖥 System Info
🦄 Applicable requirements
🦄 #308
The text was updated successfully, but these errors were encountered: