-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a7f909
commit 8dd545f
Showing
6 changed files
with
90 additions
and
45 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
27 changes: 27 additions & 0 deletions
27
src/validations/constraints/content/ssp-has-inventory-items-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,27 @@ | ||
<?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> | ||
<inventory-item uuid="77777777-0000-4000-9000-000000000007"> | ||
<description> | ||
<p>Primary database server</p> | ||
</description> | ||
<prop name="asset-id" value="DB-001" ns="http://csrc.nist.gov/ns/oscal"/> | ||
<prop name="asset-type" value="database"/> | ||
<prop name="allows-authenticated-scan" value="yes"/> | ||
<prop name="public" value="no"/> | ||
<prop name="virtual" value="yes"/> | ||
<prop name="scan-type" value="database" ns="https://fedramp.gov/ns/oscal"/> | ||
<responsible-party role-id="asset-owner"> | ||
<party-uuid>11111111-0000-4000-9000-000000000001</party-uuid> | ||
</responsible-party> | ||
<implemented-component component-uuid="55555555-0000-4000-9000-000000000005"> | ||
<prop name="asset-id" value="DB-001" ns="http://csrc.nist.gov/ns/oscal"/> | ||
</implemented-component> | ||
</inventory-item> | ||
</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
8 changes: 8 additions & 0 deletions
8
src/validations/constraints/unit-tests/has-inventory-items-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,8 @@ | ||
# Driver for the invalid has-inventory-items constraint unit test. | ||
test-case: | ||
name: The invalid has-inventory-items constraint unit test. | ||
description: Test that the FedRAMP SSP contains only one inventory item. | ||
content: ../content/ssp-has-inventory-items-INVALID.xml | ||
expectations: | ||
- constraint-id: has-inventory-items | ||
result: fail |
8 changes: 8 additions & 0 deletions
8
src/validations/constraints/unit-tests/has-inventory-items-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,8 @@ | ||
# Driver for the valid has-inventory-items constraint unit test. | ||
test-case: | ||
name: The valid has-inventory-items constraint unit test. | ||
description: Test that the FedRAMP SSP contains the two or more inventory items. | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: has-inventory-items | ||
result: pass |