-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* citations check * update help uri
- Loading branch information
Showing
9 changed files
with
65 additions
and
1 deletion.
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
13 changes: 13 additions & 0 deletions
13
src/validations/constraints/content/ssp-fedramp-citations-has-correct-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,13 @@ | ||
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" uuid="11111111-2222-4000-8000-000000000000"> | ||
<back-matter> | ||
<!-- FedRAMP Laws --> | ||
<resource uuid="11111111-2222-4000-8000-001000000003"> | ||
<title>FedRAMP Applicable Laws and Regulations</title> | ||
<prop name="type" value="citation" class="fedramp-citations" /> | ||
<rlink href="https://example.com"/> | ||
<remarks> | ||
<p>Must be present in a FedRAMP SSP.</p> | ||
</remarks> | ||
</resource> | ||
</back-matter> | ||
</system-security-plan> |
3 changes: 3 additions & 0 deletions
3
src/validations/constraints/content/ssp-has-fedramp-citations-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,3 @@ | ||
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" uuid="11111111-2222-4000-8000-000000000000"> | ||
<back-matter/> | ||
</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/fedramp-citations-has-correct-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 fedramp-citations-has-correct-link | ||
description: >- | ||
This test case validates the behavior of constraint | ||
fedramp-citations-has-correct-link | ||
content: ../content/ssp-fedramp-citations-has-correct-link-INVALID.xml | ||
expectations: | ||
- constraint-id: fedramp-citations-has-correct-link | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/fedramp-citations-has-correct-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 fedramp-citations-has-correct-link | ||
description: >- | ||
This test case validates the behavior of constraint | ||
fedramp-citations-has-correct-link | ||
content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml | ||
expectations: | ||
- constraint-id: fedramp-citations-has-correct-link | ||
result: pass |
7 changes: 7 additions & 0 deletions
7
src/validations/constraints/unit-tests/has-fedramp-citations-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,7 @@ | ||
test-case: | ||
name: Negative Test for has-fedramp-citations | ||
description: This test case validates the behavior of constraint has-fedramp-citations | ||
content: ../content/ssp-has-fedramp-citations-INVALID.xml | ||
expectations: | ||
- constraint-id: has-fedramp-citations | ||
result: fail |
7 changes: 7 additions & 0 deletions
7
src/validations/constraints/unit-tests/has-fedramp-citations-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,7 @@ | ||
test-case: | ||
name: Positive Test for has-fedramp-citations | ||
description: This test case validates the behavior of constraint has-fedramp-citations | ||
content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml | ||
expectations: | ||
- constraint-id: has-fedramp-citations | ||
result: pass |