diff --git a/src/validations/constraints/content/ssp-oscal-version-matches-fedramp-version-INVALID-1.xml b/src/validations/constraints/content/ssp-oscal-version-matches-fedramp-version-INVALID-1.xml new file mode 100644 index 000000000..209739302 --- /dev/null +++ b/src/validations/constraints/content/ssp-oscal-version-matches-fedramp-version-INVALID-1.xml @@ -0,0 +1,9 @@ + + + 1.0.4 + + + \ No newline at end of file diff --git a/src/validations/constraints/content/ssp-oscal-version-matches-fedramp-version-INVALID.xml b/src/validations/constraints/content/ssp-oscal-version-matches-fedramp-version-INVALID-2.xml similarity index 100% rename from src/validations/constraints/content/ssp-oscal-version-matches-fedramp-version-INVALID.xml rename to src/validations/constraints/content/ssp-oscal-version-matches-fedramp-version-INVALID-2.xml diff --git a/src/validations/constraints/content/ssp-oscal-version-matches-fedramp-version-INVALID-3.xml b/src/validations/constraints/content/ssp-oscal-version-matches-fedramp-version-INVALID-3.xml new file mode 100644 index 000000000..43ca534c7 --- /dev/null +++ b/src/validations/constraints/content/ssp-oscal-version-matches-fedramp-version-INVALID-3.xml @@ -0,0 +1,9 @@ + + + 1.0.4 + + + \ No newline at end of file diff --git a/src/validations/constraints/unit-tests/oscal-version-matches-fedramp-version-FAIL.yaml b/src/validations/constraints/unit-tests/oscal-version-matches-fedramp-version-FAIL.yaml index b04b36f0c..f9037ac2a 100644 --- a/src/validations/constraints/unit-tests/oscal-version-matches-fedramp-version-FAIL.yaml +++ b/src/validations/constraints/unit-tests/oscal-version-matches-fedramp-version-FAIL.yaml @@ -1,9 +1,14 @@ test-case: - name: Negative Test for oscal-version-matches-fedramp-version + name: Positive Test for import-profile-has-available-document description: >- - This test case validates the behavior of constraint - oscal-version-matches-fedramp-version - content: ../content/ssp-oscal-version-matches-fedramp-version-INVALID.xml + This test case validates the behavior of constraint import-profile-has-available-document. + Scenario 1 tests: an invalid match below the minimum required version threshold. + Scenario 2 tests: an invalid match above the implied maximum required version threshold, a major version greater than required. + Scenario 3 tests: an invalid match because the fedramp-version prop is missing, so a fallthrough default is required. + content: + - ../content/ssp-oscal-version-matches-fedramp-version-INVALID-1.xml + - ../content/ssp-oscal-version-matches-fedramp-version-INVALID-2.xml + - ../content/ssp-oscal-version-matches-fedramp-version-INVALID-3.xml expectations: - constraint-id: oscal-version-matches-fedramp-version result: fail