-
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.
Add back-matter 'has' constraints (#654)
* Added back-matter 'has' constraints * Set levels to 'ERROR'
- Loading branch information
1 parent
5a0e799
commit 9a636ea
Showing
15 changed files
with
224 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
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/has-configuration-management-plan-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 has-configuration-management-plan | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-configuration-management-plan | ||
content: ../content/ssp-all-INVALID.xml | ||
expectations: | ||
- constraint-id: has-configuration-management-plan | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-configuration-management-plan-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 has-configuration-management-plan | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-configuration-management-plan | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: has-configuration-management-plan | ||
result: pass |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-incident-response-plan-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 has-incident-response-plan | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-incident-response-plan | ||
content: ../content/ssp-all-INVALID.xml | ||
expectations: | ||
- constraint-id: has-incident-response-plan | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-incident-response-plan-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 has-incident-response-plan | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-incident-response-plan | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: has-incident-response-plan | ||
result: pass |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-information-system-contingency-plan-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 has-information-system-contingency-plan | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-information-system-contingency-plan | ||
content: ../content/ssp-all-INVALID.xml | ||
expectations: | ||
- constraint-id: has-information-system-contingency-plan | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-information-system-contingency-plan-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 has-information-system-contingency-plan | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-information-system-contingency-plan | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: has-information-system-contingency-plan | ||
result: pass |
7 changes: 7 additions & 0 deletions
7
src/validations/constraints/unit-tests/has-rules-of-behavior-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-rules-of-behavior | ||
description: This test case validates the behavior of constraint has-rules-of-behavior | ||
content: ../content/ssp-all-INVALID.xml | ||
expectations: | ||
- constraint-id: has-rules-of-behavior | ||
result: fail |
7 changes: 7 additions & 0 deletions
7
src/validations/constraints/unit-tests/has-rules-of-behavior-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-rules-of-behavior | ||
description: This test case validates the behavior of constraint has-rules-of-behavior | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: has-rules-of-behavior | ||
result: pass |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-separation-of-duties-matrix-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 has-separation-of-duties-matrix | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-separation-of-duties-matrix | ||
content: ../content/ssp-all-INVALID.xml | ||
expectations: | ||
- constraint-id: has-separation-of-duties-matrix | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-separation-of-duties-matrix-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 has-separation-of-duties-matrix | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-separation-of-duties-matrix | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: has-separation-of-duties-matrix | ||
result: pass |
7 changes: 7 additions & 0 deletions
7
src/validations/constraints/unit-tests/has-user-guide-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-user-guide | ||
description: This test case validates the behavior of constraint has-user-guide | ||
content: ../content/ssp-all-INVALID.xml | ||
expectations: | ||
- constraint-id: has-user-guide | ||
result: fail |
7 changes: 7 additions & 0 deletions
7
src/validations/constraints/unit-tests/has-user-guide-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-user-guide | ||
description: This test case validates the behavior of constraint has-user-guide | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: has-user-guide | ||
result: pass |