-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added system-characteristi has-security constraints and tests
- Loading branch information
Showing
13 changed files
with
132 additions
and
8 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
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-security-impact-level-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-security-impact-level | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-security-impact-level | ||
content: ../content/ssp-all-INVALID.xml | ||
expectations: | ||
- constraint-id: has-security-impact-level | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-security-impact-level-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-security-impact-level | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-security-impact-level | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: has-security-impact-level | ||
result: pass |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-security-objective-availability-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-security-objective-availability | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-security-objective-availability | ||
content: ../content/ssp-all-INVALID.xml | ||
expectations: | ||
- constraint-id: has-security-objective-availability | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-security-objective-availability-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-security-objective-availability | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-security-objective-availability | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: has-security-objective-availability | ||
result: pass |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-security-objective-confidentiality-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-security-objective-confidentiality | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-security-objective-confidentiality | ||
content: ../content/ssp-all-INVALID.xml | ||
expectations: | ||
- constraint-id: has-security-objective-confidentiality | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-security-objective-confidentiality-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-security-objective-confidentiality | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-security-objective-confidentiality | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: has-security-objective-confidentiality | ||
result: pass |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-security-objective-integrity-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-security-objective-integrity | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-security-objective-integrity | ||
content: ../content/ssp-all-INVALID.xml | ||
expectations: | ||
- constraint-id: has-security-objective-integrity | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-security-objective-integrity-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-security-objective-integrity | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-security-objective-integrity | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: has-security-objective-integrity | ||
result: pass |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-security-sensitivity-level-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-security-sensitivity-level | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-security-sensitivity-level | ||
content: ../content/ssp-all-INVALID.xml | ||
expectations: | ||
- constraint-id: has-security-sensitivity-level | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-security-sensitivity-level-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-security-sensitivity-level | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-security-sensitivity-level | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: has-security-sensitivity-level | ||
result: pass |