Missing referential integrity checks from browse products to others i… #440
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.
…n the bundle
Refs:
#432 Missing referential integrity checks from browse products to others in the bundle
Closes #432 Missing referential integrity checks from browse products to others in the bundle
It is important to use the rule "-R pds4.bundle" when validating a bundle. The rule gives guidance of what things are being required to run, including referential checks.
If the correct rule is not being used, only label or directory rules are applied based on the name of the target.
Note that the checking is done for references within a bundle only. As Jordan had indicated, this is another ticket to check for references outside of the bundle beyond the scope of this ticket.
Tested in DEV:
Test 1: Specify rule "-R pds4.bundle"
There should be 3 WARN messages:
Test 2: Specify rule "-R pds4.label" when validating bundle-voyager1-pls-sat-1.0.xml as a label.
There should be no warning messages.
Test 3: Specify no rule. The default rule used by validate will be "PDS4 Directory"
There should be no warning messages.