Skip to content

Commit

Permalink
Merge pull request #951 from NASA-PDS/i950
Browse files Browse the repository at this point in the history
Fix for disabling context ref mismatch for `pds4.collection` and `pds4.bundle` rules
  • Loading branch information
jordanpadams committed Aug 9, 2024
2 parents 05a57f0 + 698e73f commit 1a38e2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ protected RuleContext getChildContext(URL child)
newContext.setLabelExtension(context.getLabelExtension());
newContext.setLabelPattern(context.getLabelPattern());
newContext.setLastDirectoryFlag(context.isLastDirectory());

newContext.setEveryN(this.context.getEveryN());
newContext.setContextMismatchAsWarn(this.context.getContextMismatchAsWarn());
return newContext;
}

Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/features/developer.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ Scenario Outline: Execute validate command for tests below.
Examples:
| testName | testDir | messageCount | messageText | problemEnum | resourceDir | reportDir | commandArgs | refOutputValue |

# Validate#950
|"NASA-PDS/validate#950 Disable context ref mismatch collection" | "github915" | 0 | "0 warnings expected" | "CONTEXT_REFERENCE_FOUND_MISMATCH_WARN" | "src/test/resources" | "target/test" | "-r {reportDir}/report_github950.json -s json --skip-content-validation --disable-context-mismatch-warnings -R pds4.collection -t {resourceDir}/github915/collection.xml" | "report_github950.json" |

# Validate#919
|"NASA-PDS/validate#919 Success with 61 bit value" | "github919" | 0 | "0 errors expected" | "totalErrors" | "src/test/resources" | "target/test" | "-r {reportDir}/report_github919.json -s json --skip-context-validation -t {resourceDir}/github919/uh0003b_draft.xml" | "report_github919.json" |

Expand Down

0 comments on commit 1a38e2b

Please sign in to comment.