-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-introduce party has responsibility-constraints
- Loading branch information
Showing
8 changed files
with
78 additions
and
3 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
15 changes: 15 additions & 0 deletions
15
src/validations/constraints/content/ssp-party-has-one-responsibility-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,15 @@ | ||
<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"> | ||
<metadata> | ||
<party uuid="22222222-0000-4000-9000-000000000002" type="person"> | ||
<name>Jane Doe</name> | ||
<email-address>[email protected]</email-address> | ||
<address type="work"/> | ||
</party> | ||
<responsible-party role-id="content-approver"> | ||
<party-uuid>22222222-0000-4000-9000-000000000002</party-uuid> | ||
</responsible-party> | ||
<responsible-party role-id="content-initiator"> | ||
<party-uuid>22222222-0000-4000-9000-000000000002</party-uuid> | ||
</responsible-party> | ||
</metadata> | ||
</system-security-plan> |
17 changes: 17 additions & 0 deletions
17
src/validations/constraints/content/ssp-party-has-responsibility-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,17 @@ | ||
<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"> | ||
<metadata> | ||
<party uuid="11111111-0000-4000-9000-000000000001" type="organization"> | ||
<name>Example Organization</name> | ||
<short-name>ExOrg</short-name> | ||
<link rel="website" href="https://example.com"/> | ||
</party> | ||
<party uuid="22222222-0000-4000-9000-000000000002" type="person"> | ||
<name>Jane Doe</name> | ||
<email-address>[email protected]</email-address> | ||
<address type="work"/> | ||
</party> | ||
<remarks> | ||
<p>This SSP is an example for demonstration purposes.</p> | ||
</remarks> | ||
</metadata> | ||
</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
src/validations/constraints/unit-tests/party-has-one-responsibility-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 party-has-one-responsibility | ||
description: >- | ||
This test case validates the behavior of constraint | ||
party-has-one-responsibility | ||
content: ../content/ssp-party-has-one-responsibility-INVALID.xml | ||
expectations: | ||
- constraint-id: party-has-one-responsibility | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/party-has-one-responsibility-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 party-has-one-responsibility | ||
description: >- | ||
This test case validates the behavior of constraint | ||
party-has-one-responsibility | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: party-has-one-responsibility | ||
result: pass |
7 changes: 7 additions & 0 deletions
7
src/validations/constraints/unit-tests/party-has-responsibility-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 party-has-responsibility | ||
description: This test case validates the behavior of constraint party-has-responsibility | ||
content: ../content/ssp-party-has-responsibility-INVALID.xml | ||
expectations: | ||
- constraint-id: party-has-responsibility | ||
result: fail |
7 changes: 7 additions & 0 deletions
7
src/validations/constraints/unit-tests/party-has-responsibility-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,7 @@ | ||
test-case: | ||
name: Positive Test for party-has-responsibility | ||
description: This test case validates the behavior of constraint party-has-responsibility | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: party-has-responsibility | ||
result: pass |