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.
implementation point constraint (GSA#936)
* implementation point constraint * add help uri * improve constraint * add extra fail content * Update src/validations/constraints/content/ssp-all-VALID.xml Co-authored-by: DimitriZhurkin <[email protected]> * Update fedramp-external-constraints.xml Co-authored-by: Rene Tshiteya <[email protected]> * implementation point constraint * add help uri * improve constraint * add extra fail content * Update src/validations/constraints/content/ssp-all-VALID.xml Co-authored-by: DimitriZhurkin <[email protected]> * Update fedramp-external-constraints.xml Co-authored-by: Rene Tshiteya <[email protected]> * add needed props to all valid * rebase Co-Authored-By: A.J. Stein <[email protected]> * Update src/validations/constraints/fedramp-external-constraints.xml Co-authored-by: A.J. Stein <[email protected]> --------- Co-authored-by: DimitriZhurkin <[email protected]> Co-authored-by: Rene Tshiteya <[email protected]> Co-authored-by: A.J. Stein <[email protected]>
- Loading branch information
1 parent
1377478
commit c6f8e8f
Showing
8 changed files
with
130 additions
and
4 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
33 changes: 33 additions & 0 deletions
33
...idations/constraints/content/ssp-network-component-has-implementation-point-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,33 @@ | ||
<?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-implementation> | ||
<component uuid="66666666-0000-4000-9000-000000000006" type="service"> | ||
<title>Firebase CLI Connection</title> | ||
<description> | ||
<p>CLI for updating firebase Secure connection to an external API for data enrichment.</p> | ||
</description> | ||
<prop name="asset-type" value="cli"/> | ||
<prop name="implementation-point" value="test"/> | ||
<status state="operational"/> | ||
</component> | ||
<component uuid="66666666-0000-4000-9000-000000000006" type="software"> | ||
<title>Firebase CLI Connection</title> | ||
<description> | ||
<p>CLI for updating firebase Secure connection to an external API for data enrichment.</p> | ||
</description> | ||
<prop name="asset-type" value="cli"/> | ||
<status state="operational"/> | ||
</component> | ||
<component uuid="66666666-0000-4000-9000-000000000006" type="software"> | ||
<title>nvm CLI Connection</title> | ||
<description> | ||
<p>CLI for updating nvm Secure connection to an external API for data enrichment.</p> | ||
</description> | ||
<prop name="asset-type" value="cli"/> | ||
<status state="operational"/> | ||
</component> | ||
</system-implementation> | ||
</system-security-plan> |
25 changes: 25 additions & 0 deletions
25
...alidations/constraints/content/ssp-network-component-has-implementation-point-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,25 @@ | ||
<?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-implementation> | ||
<component uuid="66666666-0000-4000-9000-000000000006" type="service"> | ||
<title>Firebase CLI Connection</title> | ||
<description> | ||
<p>CLI for updating firebase Secure connection to an external API for data enrichment.</p> | ||
</description> | ||
<prop name="asset-type" value="cli"/> | ||
<status state="operational"/> | ||
</component> | ||
<component uuid="66666666-0000-4000-9000-000000000006" type="software"> | ||
<title>Firebase CLI Connection</title> | ||
<description> | ||
<p>CLI for updating firebase Secure connection to an external API for data enrichment.</p> | ||
</description> | ||
<prop name="asset-type" value="cli"/> | ||
<status state="operational"/> | ||
</component> | ||
|
||
</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
13 changes: 13 additions & 0 deletions
13
src/validations/constraints/unit-tests/network-component-has-implementation-point-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,13 @@ | ||
test-case: | ||
name: Negative Test for network-component-has-implementation-point | ||
description: >- | ||
This test case validates the behavior of constraint | ||
network-component-has-implementation-point | ||
content: | ||
- ../content/ssp-network-component-has-implementation-point-INVALID.xml | ||
- ../content/ssp-network-component-has-implementation-point-INVALID-2.xml | ||
expectations: | ||
- constraint-id: network-component-has-implementation-point | ||
fail_count: | ||
type: "exact" | ||
value: 2 |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/network-component-has-implementation-point-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 network-component-has-implementation-point | ||
description: >- | ||
This test case validates the behavior of constraint | ||
network-component-has-implementation-point | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: network-component-has-implementation-point | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ test-case: | |
- constraint-id: unique-inventory-item-asset-id | ||
fail_count: | ||
type: "exact" | ||
value: 1 | ||
value: 2 |