-
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.
Browse files
Browse the repository at this point in the history
* Add constraints for fully operational date * Fix constraints and add formal names * Update to align with frr103 Co-authored-by: Gabeblis <[email protected]> * Update to comply with frr112 Co-authored-by: Gabeblis <[email protected]> * Move has-fully-operational-date to appropriate context --------- Co-authored-by: Gabeblis <[email protected]>
- Loading branch information
Showing
13 changed files
with
133 additions
and
0 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
11 changes: 11 additions & 0 deletions
11
src/validations/constraints/content/ssp-fully-operational-date-is-valid-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,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://csrc.nist.gov/ns/oscal/1.0 https://github.com/usnistgov/OSCAL/releases/download/v1.1.2/oscal_ssp_schema.xsd" | ||
uuid="12345678-1234-4321-8765-123456789012"> | ||
|
||
<system-characteristics> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="fully-operational-date" value="2027-01-01+00:00"/><!-- operational date should not be in future --> | ||
</system-characteristics> | ||
|
||
</system-security-plan> |
11 changes: 11 additions & 0 deletions
11
src/validations/constraints/content/ssp-fully-operational-date-type-INVALID-1.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,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://csrc.nist.gov/ns/oscal/1.0 https://github.com/usnistgov/OSCAL/releases/download/v1.1.2/oscal_ssp_schema.xsd" | ||
uuid="12345678-1234-4321-8765-123456789012"> | ||
|
||
<system-characteristics> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="fully-operational-date" value="2023"/><!-- year only instead of full date --> | ||
</system-characteristics> | ||
|
||
</system-security-plan> |
11 changes: 11 additions & 0 deletions
11
src/validations/constraints/content/ssp-fully-operational-date-type-INVALID-2.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,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://csrc.nist.gov/ns/oscal/1.0 https://github.com/usnistgov/OSCAL/releases/download/v1.1.2/oscal_ssp_schema.xsd" | ||
uuid="12345678-1234-4321-8765-123456789012"> | ||
|
||
<system-characteristics> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="fully-operational-date" value="2023-01-01"/><!-- no timezone --> | ||
</system-characteristics> | ||
|
||
</system-security-plan> |
11 changes: 11 additions & 0 deletions
11
src/validations/constraints/content/ssp-has-fully-operational-date-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,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://csrc.nist.gov/ns/oscal/1.0 https://github.com/usnistgov/OSCAL/releases/download/v1.1.2/oscal_ssp_schema.xsd" | ||
uuid="12345678-1234-4321-8765-123456789012"> | ||
|
||
<system-characteristics> | ||
<!-- no prop whatsoever --> | ||
</system-characteristics> | ||
|
||
</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
7 changes: 7 additions & 0 deletions
7
src/validations/constraints/unit-tests/fully-operational-date-is-valid-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 fully-operational-date-is-valid | ||
description: This test case validates the behavior of constraint fully-operational-date-is-valid | ||
content: ../content/ssp-fully-operational-date-is-valid-INVALID.xml | ||
expectations: | ||
- constraint-id: fully-operational-date-is-valid | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/fully-operational-date-is-valid-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 fully-operational-date-is-valid | ||
description: >- | ||
This test case validates the behavior of constraint | ||
fully-operational-date-is-valid | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: fully-operational-date-is-valid | ||
result: pass |
12 changes: 12 additions & 0 deletions
12
src/validations/constraints/unit-tests/fully-operational-date-type-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,12 @@ | ||
test-case: | ||
name: Negative Test for fully-operational-date-type | ||
description: >- | ||
This test case validates the behavior of constraint fully-operational-date-type. | ||
Scenario 1 test: just year, not a full date. | ||
Scenario 2 test: no timezone. | ||
content: | ||
- ../content/ssp-fully-operational-date-type-INVALID-1.xml | ||
- ../content/ssp-fully-operational-date-type-INVALID-2.xml | ||
expectations: | ||
- constraint-id: fully-operational-date-type | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/fully-operational-date-type-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 fully-operational-date-type | ||
description: >- | ||
This test case validates the behavior of constraint | ||
fully-operational-date-type | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: fully-operational-date-type | ||
result: pass |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-fully-operational-date-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-fully-operational-date | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-fully-operational-date | ||
content: ../content/ssp-has-fully-operational-date-INVALID.xml | ||
expectations: | ||
- constraint-id: has-fully-operational-date | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/has-fully-operational-date-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-fully-operational-date | ||
description: >- | ||
This test case validates the behavior of constraint | ||
has-fully-operational-date | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: has-fully-operational-date | ||
result: pass |