-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add leveraged authorization entry constraints and tests
- Loading branch information
Showing
15 changed files
with
154 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
8 changes: 8 additions & 0 deletions
8
...ations/constraints/content/ssp-leveraged-authorization-has-authorization-type-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,8 @@ | ||
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uuid="12345678-1234-4321-8765-123456789012"> | ||
<system-implementation> | ||
<leveraged-authorization uuid="5a9c98ab-8e5e-433d-a7bd-515c07cd1497"> | ||
<!-- <prop ns="http://fedramp.gov/ns/oscal" name="authorization-type" value="fedramp-agency"/> Missing authorization-type --> | ||
<date-authorized>2015-01-01</date-authorized> | ||
</leveraged-authorization> | ||
</system-implementation> | ||
</system-security-plan> |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/content/ssp-leveraged-authorization-has-impact-level-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,9 @@ | ||
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uuid="12345678-1234-4321-8765-123456789012"> | ||
<system-implementation> | ||
<leveraged-authorization uuid="5a9c98ab-8e5e-433d-a7bd-515c07cd1497"> | ||
<!-- <prop ns="http://fedramp.gov/ns/oscal" name="impact-level" value="moderate"/> Missing impact-level --> | ||
<party-uuid>f0bc13a4-3303-47dd-80d3-380e159c8362</party-uuid> | ||
<date-authorized>2015-01-01</date-authorized> | ||
</leveraged-authorization> | ||
</system-implementation> | ||
</system-security-plan> |
7 changes: 7 additions & 0 deletions
7
...dations/constraints/content/ssp-leveraged-authorization-has-system-identifier-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,7 @@ | ||
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uuid="12345678-1234-4321-8765-123456789012"> | ||
<system-implementation> | ||
<leveraged-authorization uuid="5a9c98ab-8e5e-433d-a7bd-515c07cd1497"> | ||
<!-- <prop ns="http://fedramp.gov/ns/oscal" name="leveraged-system-identifier" value="F1603047866"/> Missing leveraged-system-identifier --> | ||
</leveraged-authorization> | ||
</system-implementation> | ||
</system-security-plan> |
13 changes: 13 additions & 0 deletions
13
...tions/constraints/content/ssp-leveraged-authorization-has-user-authentication-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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uuid="12345678-1234-4321-8765-123456789012"> | ||
<system-implementation> | ||
<leveraged-authorization uuid="5a9c98ab-8e5e-433d-a7bd-515c07cd1497"> | ||
<prop ns="http://fedramp.gov/ns/oscal" name="user-authentication" value="yes"> | ||
<!-- <remarks> | ||
<p>If 'yes', describe the user authentication method.</p> | ||
<p>If 'no', explain why no user authentication is used.</p> | ||
<p>If 'not-applicable', attest that no users access the leveraged system.</p> | ||
</remarks> No remarks provided to support the value--> | ||
</prop> | ||
</leveraged-authorization> | ||
</system-implementation> | ||
</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
...lidations/constraints/unit-tests/leveraged-authorization-has-authorization-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,9 @@ | ||
test-case: | ||
name: Negative Test for leveraged-authorization-has-authorization-type | ||
description: >- | ||
This test case validates the behavior of constraint | ||
leveraged-authorization-has-authorization-type | ||
content: ../content/ssp-leveraged-authorization-has-authorization-type-INVALID.xml | ||
expectations: | ||
- constraint-id: leveraged-authorization-has-authorization-type | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
...lidations/constraints/unit-tests/leveraged-authorization-has-authorization-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 leveraged-authorization-has-authorization-type | ||
description: >- | ||
This test case validates the behavior of constraint | ||
leveraged-authorization-has-authorization-type | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: leveraged-authorization-has-authorization-type | ||
result: pass |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/leveraged-authorization-has-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 leveraged-authorization-has-impact-level | ||
description: >- | ||
This test case validates the behavior of constraint | ||
leveraged-authorization-has-impact-level | ||
content: ../content/ssp-leveraged-authorization-has-impact-level-INVALID.xml | ||
expectations: | ||
- constraint-id: leveraged-authorization-has-impact-level | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/leveraged-authorization-has-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 leveraged-authorization-has-impact-level | ||
description: >- | ||
This test case validates the behavior of constraint | ||
leveraged-authorization-has-impact-level | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: leveraged-authorization-has-impact-level | ||
result: pass |
9 changes: 9 additions & 0 deletions
9
...alidations/constraints/unit-tests/leveraged-authorization-has-system-identifier-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 leveraged-authorization-has-system-identifier | ||
description: >- | ||
This test case validates the behavior of constraint | ||
leveraged-authorization-has-system-identifier | ||
content: ../content/ssp-leveraged-authorization-has-system-identifier-INVALID.xml | ||
expectations: | ||
- constraint-id: leveraged-authorization-has-system-identifier | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
...alidations/constraints/unit-tests/leveraged-authorization-has-system-identifier-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 leveraged-authorization-has-system-identifier | ||
description: >- | ||
This test case validates the behavior of constraint | ||
leveraged-authorization-has-system-identifier | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: leveraged-authorization-has-system-identifier | ||
result: pass |
9 changes: 9 additions & 0 deletions
9
...idations/constraints/unit-tests/leveraged-authorization-has-user-authentication-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 leveraged-authorization-has-user-authentication | ||
description: >- | ||
This test case validates the behavior of constraint | ||
leveraged-authorization-has-user-authentication | ||
content: ../content/ssp-leveraged-authorization-has-user-authentication-INVALID.xml | ||
expectations: | ||
- constraint-id: leveraged-authorization-has-user-authentication | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
...idations/constraints/unit-tests/leveraged-authorization-has-user-authentication-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 leveraged-authorization-has-user-authentication | ||
description: >- | ||
This test case validates the behavior of constraint | ||
leveraged-authorization-has-user-authentication | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: leveraged-authorization-has-user-authentication | ||
result: pass |