forked from GSA/fedramp-automation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AC, AT, and AU constraints and tests. Add 'point to' feature to d…
…ev-constraint.js Add CA, CM, and CP constraints and tests. Add IA AND IR constraints and tests. Add MA and MP constraints and tests ADD PE, PL, and PS constraints and tests Add RA constraint and tests Add SA and SC constraints and tests Add SI and SR constraints and tests One invalid file for all control statements Add approach #2 proceed with option #2 proceed with option #2
- Loading branch information
Showing
9 changed files
with
431 additions
and
66 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
145 changes: 80 additions & 65 deletions
145
src/content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml
Large diffs are not rendered by default.
Oops, something went wrong.
260 changes: 260 additions & 0 deletions
260
src/validations/constraints/content/ssp-has-policy-and-procedure-INVALID.xml
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
test-case: | ||
name: Negative Test for has-policy | ||
description: This test case validates the behavior of constraint has-policy | ||
content: ../content/ssp-has-policy-and-procedure-INVALID.xml | ||
expectations: | ||
- constraint-id: has-policy | ||
result: fail |
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-policy | ||
description: This test case validates the behavior of constraint has-policy | ||
content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml | ||
expectations: | ||
- constraint-id: has-policy | ||
result: pass |
7 changes: 7 additions & 0 deletions
7
src/validations/constraints/unit-tests/has-procedure-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-procedure | ||
description: This test case validates the behavior of constraint has-procedure | ||
content: ../content/ssp-has-policy-and-procedure-INVALID.xml | ||
expectations: | ||
- constraint-id: has-procedure | ||
result: fail |
7 changes: 7 additions & 0 deletions
7
src/validations/constraints/unit-tests/has-procedure-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-procedure | ||
description: This test case validates the behavior of constraint has-procedure | ||
content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml | ||
expectations: | ||
- constraint-id: has-procedure | ||
result: pass |
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