-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'Validation Component' Constraints
- Loading branch information
Showing
15 changed files
with
152 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/content/ssp-component-has-proof-of-compliance-link-INVALID.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" uuid="11111111-2222-4000-8000-000000000000"> | ||
<system-implementation> | ||
<component uuid="11111111-2222-4000-8000-009000000000" type="validation"> | ||
<prop ns="http://fedramp.gov/ns/oscal" name="asset-type" value="cryptographic-module"/> | ||
<prop name="validation-type" value="fips-140-2"/> | ||
<!-- <link rel="proof-of-compliance" href="https://csrc.nist.gov/projects/cryptographic-module-validation-program/certificate/4811"/> Missing proof-of-compliance link. --> | ||
</component> | ||
</system-implementation> | ||
</system-security-plan> |
10 changes: 10 additions & 0 deletions
10
...idations/constraints/content/ssp-component-has-valid-proof-of-compliance-link-INVALID.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" uuid="11111111-2222-4000-8000-000000000000"> | ||
<system-implementation> | ||
<component uuid="11111111-2222-4000-8000-009000000000" type="validation"> | ||
<prop ns="http://fedramp.gov/ns/oscal" name="asset-type" value="cryptographic-module"/> | ||
<prop name="validation-type" value="fips-140-2"/> | ||
<!-- Missing valid proof-of-compliance link. --> | ||
<link rel="proof-of-compliance" href="invalid-link"/> | ||
</component> | ||
</system-implementation> | ||
</system-security-plan> |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/content/ssp-component-has-validation-reference-INVALID.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" uuid="11111111-2222-4000-8000-000000000000"> | ||
<system-implementation> | ||
<component uuid="11111111-2222-4000-8000-009000000000" type="validation"> | ||
<prop ns="http://fedramp.gov/ns/oscal" name="asset-type" value="cryptographic-module"/> | ||
<prop name="validation-type" value="fips-140-2"/> | ||
<!-- <prop name="validation-reference" value="3928"/> Missing validation reference. --> | ||
</component> | ||
</system-implementation> | ||
</system-security-plan> |
10 changes: 10 additions & 0 deletions
10
src/validations/constraints/content/ssp-validation-reference-has-correct-format-INVALID.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" uuid="11111111-2222-4000-8000-000000000000"> | ||
<system-implementation> | ||
<component uuid="11111111-2222-4000-8000-009000000000" type="validation"> | ||
<prop ns="http://fedramp.gov/ns/oscal" name="asset-type" value="cryptographic-module"/> | ||
<prop name="validation-type" value="fips-140-2"/> | ||
<!-- Validation reference has incorrect format. --> | ||
<prop name="validation-reference" value="abcd"/> | ||
</component> | ||
</system-implementation> | ||
</system-security-plan> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/component-has-proof-of-compliance-link-FAIL.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test-case: | ||
name: Negative Test for component-has-proof-of-compliance-link | ||
description: >- | ||
This test case validates the behavior of constraint | ||
component-has-proof-of-compliance-link | ||
content: ../content/ssp-component-has-proof-of-compliance-link-INVALID.xml | ||
expectations: | ||
- constraint-id: component-has-proof-of-compliance-link | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/component-has-proof-of-compliance-link-PASS.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test-case: | ||
name: Positive Test for component-has-proof-of-compliance-link | ||
description: >- | ||
This test case validates the behavior of constraint | ||
component-has-proof-of-compliance-link | ||
content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml | ||
expectations: | ||
- constraint-id: component-has-proof-of-compliance-link | ||
result: pass |
9 changes: 9 additions & 0 deletions
9
...validations/constraints/unit-tests/component-has-valid-proof-of-compliance-link-FAIL.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test-case: | ||
name: Negative Test for component-has-valid-proof-of-compliance-link | ||
description: >- | ||
This test case validates the behavior of constraint | ||
component-has-valid-proof-of-compliance-link | ||
content: ../content/ssp-component-has-valid-proof-of-compliance-link-INVALID.xml | ||
expectations: | ||
- constraint-id: component-has-valid-proof-of-compliance-link | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
...validations/constraints/unit-tests/component-has-valid-proof-of-compliance-link-PASS.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test-case: | ||
name: Positive Test for component-has-valid-proof-of-compliance-link | ||
description: >- | ||
This test case validates the behavior of constraint | ||
component-has-valid-proof-of-compliance-link | ||
content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml | ||
expectations: | ||
- constraint-id: component-has-valid-proof-of-compliance-link | ||
result: pass |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/component-has-validation-reference-FAIL.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test-case: | ||
name: Negative Test for component-has-validation-reference | ||
description: >- | ||
This test case validates the behavior of constraint | ||
component-has-validation-reference | ||
content: ../content/ssp-component-has-validation-reference-INVALID.xml | ||
expectations: | ||
- constraint-id: component-has-validation-reference | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/component-has-validation-reference-PASS.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test-case: | ||
name: Positive Test for component-has-validation-reference | ||
description: >- | ||
This test case validates the behavior of constraint | ||
component-has-validation-reference | ||
content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml | ||
expectations: | ||
- constraint-id: component-has-validation-reference | ||
result: pass |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/validation-reference-has-correct-format-FAIL.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test-case: | ||
name: Negative Test for validation-reference-has-correct-format | ||
description: >- | ||
This test case validates the behavior of constraint | ||
validation-reference-has-correct-format | ||
content: ../content/ssp-validation-reference-has-correct-format-INVALID.xml | ||
expectations: | ||
- constraint-id: validation-reference-has-correct-format | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/validation-reference-has-correct-format-PASS.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test-case: | ||
name: Positive Test for validation-reference-has-correct-format | ||
description: >- | ||
This test case validates the behavior of constraint | ||
validation-reference-has-correct-format | ||
content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml | ||
expectations: | ||
- constraint-id: validation-reference-has-correct-format | ||
result: pass |