diff --git a/features/fedramp_extensions.feature b/features/fedramp_extensions.feature index aecf898bf..efb4bb984 100644 --- a/features/fedramp_extensions.feature +++ b/features/fedramp_extensions.feature @@ -63,6 +63,8 @@ Examples: | has-authorization-boundary-diagram-description-PASS.yaml | | has-authorization-boundary-diagram-link-FAIL.yaml | | has-authorization-boundary-diagram-link-PASS.yaml | + | has-authorization-boundary-diagram-link-href-target-FAIL.yaml | + | has-authorization-boundary-diagram-link-href-target-PASS.yaml | | has-authorization-boundary-diagram-link-rel-FAIL.yaml | | has-authorization-boundary-diagram-link-rel-PASS.yaml | | has-authorization-boundary-diagram-link-rel-allowed-value-FAIL.yaml | @@ -89,6 +91,8 @@ Examples: | has-data-flow-diagram-description-PASS.yaml | | has-data-flow-diagram-link-FAIL.yaml | | has-data-flow-diagram-link-PASS.yaml | + | has-data-flow-diagram-link-href-target-FAIL.yaml | + | has-data-flow-diagram-link-href-target-PASS.yaml | | has-data-flow-diagram-link-rel-FAIL.yaml | | has-data-flow-diagram-link-rel-PASS.yaml | | has-data-flow-diagram-link-rel-allowed-value-FAIL.yaml | @@ -113,6 +117,8 @@ Examples: | has-network-architecture-diagram-description-PASS.yaml | | has-network-architecture-diagram-link-FAIL.yaml | | has-network-architecture-diagram-link-PASS.yaml | + | has-network-architecture-diagram-link-href-target-FAIL.yaml | + | has-network-architecture-diagram-link-href-target-PASS.yaml | | has-network-architecture-diagram-link-rel-FAIL.yaml | | has-network-architecture-diagram-link-rel-PASS.yaml | | has-network-architecture-diagram-link-rel-allowed-value-FAIL.yaml | @@ -232,6 +238,7 @@ Examples: | has-authorization-boundary-diagram-caption | | has-authorization-boundary-diagram-description | | has-authorization-boundary-diagram-link | + | has-authorization-boundary-diagram-link-href-target | | has-authorization-boundary-diagram-link-rel | | has-authorization-boundary-diagram-link-rel-allowed-value | | has-cloud-deployment-model | @@ -245,6 +252,7 @@ Examples: | has-data-flow-diagram-caption | | has-data-flow-diagram-description | | has-data-flow-diagram-link | + | has-data-flow-diagram-link-href-target | | has-data-flow-diagram-link-rel | | has-data-flow-diagram-link-rel-allowed-value | | has-data-flow-diagram-uuid | @@ -257,6 +265,7 @@ Examples: | has-network-architecture-diagram-caption | | has-network-architecture-diagram-description | | has-network-architecture-diagram-link | + | has-network-architecture-diagram-link-href-target | | has-network-architecture-diagram-link-rel | | has-network-architecture-diagram-link-rel-allowed-value | | has-rules-of-behavior | diff --git a/package-lock.json b/package-lock.json index 401162427..462475c1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "inquirer": "^10.1.8", "js-yaml": "^4.1.0", "jsdom": "^25.0.0", - "oscal": "^2.0.5-rc-3", + "oscal": "2.0.5", "ts-node": "^10.9.2", "xml-formatter": "^3.6.3", "xml2js": "^0.6.2" @@ -2694,9 +2694,9 @@ } }, "node_modules/oscal": { - "version": "2.0.5-rc-3", - "resolved": "https://registry.npmjs.org/oscal/-/oscal-2.0.5-rc-3.tgz", - "integrity": "sha512-cbJb+XX//rt5WuLxCBmYKA2huSLh560O3Z0jmqLjWxuh+Tb0T+zndZVQ6YvjIJo2rmASCVdjGKdBm4lok8epEQ==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/oscal/-/oscal-2.0.5.tgz", + "integrity": "sha512-S19CxjK9dYAE/5CYGFF/M1J9z24oIA/WX5Lkk84BzTvmeAa6qWzwIYEnmoeXRCnJnsLP5sNh/9VSFGfvY97omw==", "license": "MIT", "dependencies": { "@terascope/fetch-github-release": "^0.8.10", diff --git a/src/validations/constraints/content/ssp-has-authorization-boundary-diagram-link-href-target-INVALID.xml b/src/validations/constraints/content/ssp-has-authorization-boundary-diagram-link-href-target-INVALID.xml new file mode 100644 index 000000000..64369d745 --- /dev/null +++ b/src/validations/constraints/content/ssp-has-authorization-boundary-diagram-link-href-target-INVALID.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/validations/constraints/content/ssp-has-authorization-boundary-diagram-link-href-target-VALID-1.xml b/src/validations/constraints/content/ssp-has-authorization-boundary-diagram-link-href-target-VALID-1.xml new file mode 100644 index 000000000..f2df4e7d7 --- /dev/null +++ b/src/validations/constraints/content/ssp-has-authorization-boundary-diagram-link-href-target-VALID-1.xml @@ -0,0 +1,449 @@ + + + + Enhanced Example System Security Plan + 2024-08-01T14:30:00Z + 2024-08-01T14:30:00Z + 1.1 + 1.1.2 + SSP-2024-002 + + + + Document Creator + + + Content Approver + + + System Administrator + + + Asset Owner + + + System Owner + + + Authorizing Official Point of Contact + + + Information System Security Officer (or Equivalent) + + + Information System Management Point of Contact (POC) + +

The highest level manager who is responsible for system operation on behalf of the System Owner.

+
+
+ + Information System Technical Point of Contact + +

The individual or individuals leading the technical operation of the system.

+
+
+ + General Point of Contact (POC) + +

A general point of contact for the system, designated by the system owner.

+
+
+ + +
+ US +
+ +
+ +
+ US +
+ +
+ + Example Organization + ExOrg + + + + Jane Doe + jane.doe@example.com +
+ + + + 11111111-0000-4000-9000-000000000001 + + + 22222222-0000-4000-9000-000000000002 + + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + +

This SSP is an example for demonstration purposes.

+
+ + + + + + F00000001 + Enhanced Example System + System's Short Name or Acronym + +

This is an enhanced example system for demonstration purposes, incorporating more FedRAMP-specific elements.

+
+ + + + + + + fips-199-moderate + + + Financial Information + +

Contains sensitive financial data related to organizational operations.

+
+ + C.2.8.12 + + + fips-199-high + fips-199-high + + + + fips-199-moderate + fips-199-low + +

Required if the base and selected values do not match.

+
+
+ + fips-199-high + fips-199-low + +

Required if the base and selected values do not match.

+
+
+
+
+ + fips-199-moderate + fips-199-moderate + fips-199-moderate + + + + +

The authorization boundary includes all components within the main data center and the disaster recovery site.

+
+ + +

A diagram-specific explanation.

+
+ + Authorization Boundary Diagram +
+
+ + +

A holistic, top-level explanation of the network architecture.

+
+ + +

A diagram-specific explanation.

+
+ + Network Diagram +
+
+ + +

A holistic, top-level explanation of the system's data flows.

+
+ + +

A diagram-specific explanation.

+
+ + Data Flow Diagram +
+
+
+ + + + System Administrator + + + + system-admin + + Admin +

admin user

+ administration +
+ +
+ + + Primary Application Server + +

Main application server hosting the core system functionality.

+
+ main line + + + 11111111-0000-4000-9000-000000000001 + + +

This is the primary application server for the system.

+
+
+ + + External API Connection + +

Secure connection to an external API for data enrichment.

+
+ + + + + 11111111-0000-4000-9000-000000000001 + + +

This connection is used for secure data exchange with external systems.

+
+
+ + + +

Primary database server

+
+ + + + + + + + 11111111-0000-4000-9000-000000000001 + + + + +
+
+ + + +

Implementation of controls for the Enhanced Example System

+
+ + + + + + + +

Access Control Policy and Procedures (AC-1) is fully implemented in our system.

+
+ + + 11111111-0000-4000-9000-000000000001 + +
+
+ + + + + + + +

Information System Component Inventory (CM-8) is partially implemented.

+
+ + + 11111111-0000-4000-9000-000000000001 + +
+
+
+ + + + Access Control Policy + +

Detailed access control policy document

+
+ + +
+ + User's Guide + +

User's Guide

+
+ + + + +

Table 12-1 Attachments: User's Guide Attachment

+

May use rlink with a relative path, or embedded as base64.

+
+
+ + Document Title + +

Rules of Behavior

+
+ + + + + 00000000 + +

Table 12-1 Attachments: Rules of Behavior (ROB)

+

May use rlink with a relative path, or embedded as base64.

+
+
+ + Document Title + +

Contingency Plan (CP)

+
+ + + + + 00000000 + +

Table 12-1 Attachments: Contingency Plan (CP) Attachment

+

May use rlink with a relative path, or embedded as base64.

+
+
+ + Document Title + +

Configuration Management (CM) Plan

+
+ + + + + 00000000 + +

Table 12-1 Attachments: Configuration Management (CM) Plan Attachment

+

May use rlink with a relative path, or embedded as base64.

+
+
+ + Document Title + +

Incident Response (IR) Plan

+
+ + + + + 00000000 + +

Table 12-1 Attachments: Incident Response (IR) Plan Attachment

+

May use rlink with a relative path, or embedded as base64.

+
+
+ + Separation of Duties Matrix + +

Separation of Duties Matrix

+
+ + + + + 00000000 + +

May use rlink with a relative path, or embedded as base64.

+
+
+ + + + Authorization Boundary + +

Authorization Boundary Diagram

+
+ + + + + 00000000 + +

May use rlink with a relative path, or embedded as base64.

+
+
+ + + Network Architecture + +

Network Architecture Diagram

+
+ + + + + 00000000 + +

May use rlink with a relative path, or embedded as base64.

+
+
+ + + Data Flow + +

Data flow Diagram

+
+ + + + + 00000000 + +

May use rlink with a relative path, or embedded as base64.

+
+
+ + + +
+ diff --git a/src/validations/constraints/content/ssp-has-data-flow-diagram-link-href-target-INVALID.xml b/src/validations/constraints/content/ssp-has-data-flow-diagram-link-href-target-INVALID.xml new file mode 100644 index 000000000..0e2128eb5 --- /dev/null +++ b/src/validations/constraints/content/ssp-has-data-flow-diagram-link-href-target-INVALID.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/validations/constraints/content/ssp-has-data-flow-diagram-link-href-target-VALID-1.xml b/src/validations/constraints/content/ssp-has-data-flow-diagram-link-href-target-VALID-1.xml new file mode 100644 index 000000000..e747c4e5d --- /dev/null +++ b/src/validations/constraints/content/ssp-has-data-flow-diagram-link-href-target-VALID-1.xml @@ -0,0 +1,449 @@ + + + + Enhanced Example System Security Plan + 2024-08-01T14:30:00Z + 2024-08-01T14:30:00Z + 1.1 + 1.1.2 + SSP-2024-002 + + + + Document Creator + + + Content Approver + + + System Administrator + + + Asset Owner + + + System Owner + + + Authorizing Official Point of Contact + + + Information System Security Officer (or Equivalent) + + + Information System Management Point of Contact (POC) + +

The highest level manager who is responsible for system operation on behalf of the System Owner.

+
+
+ + Information System Technical Point of Contact + +

The individual or individuals leading the technical operation of the system.

+
+
+ + General Point of Contact (POC) + +

A general point of contact for the system, designated by the system owner.

+
+
+ + +
+ US +
+ +
+ +
+ US +
+ +
+ + Example Organization + ExOrg + + + + Jane Doe + jane.doe@example.com +
+ + + + 11111111-0000-4000-9000-000000000001 + + + 22222222-0000-4000-9000-000000000002 + + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + +

This SSP is an example for demonstration purposes.

+
+ + + + + + F00000001 + Enhanced Example System + System's Short Name or Acronym + +

This is an enhanced example system for demonstration purposes, incorporating more FedRAMP-specific elements.

+
+ + + + + + + fips-199-moderate + + + Financial Information + +

Contains sensitive financial data related to organizational operations.

+
+ + C.2.8.12 + + + fips-199-high + fips-199-high + + + + fips-199-moderate + fips-199-low + +

Required if the base and selected values do not match.

+
+
+ + fips-199-high + fips-199-low + +

Required if the base and selected values do not match.

+
+
+
+
+ + fips-199-moderate + fips-199-moderate + fips-199-moderate + + + + +

The authorization boundary includes all components within the main data center and the disaster recovery site.

+
+ + +

A diagram-specific explanation.

+
+ + Authorization Boundary Diagram +
+
+ + +

A holistic, top-level explanation of the network architecture.

+
+ + +

A diagram-specific explanation.

+
+ + Network Diagram +
+
+ + +

A holistic, top-level explanation of the system's data flows.

+
+ + +

A diagram-specific explanation.

+
+ + Data Flow Diagram +
+
+
+ + + + System Administrator + + + + system-admin + + Admin +

admin user

+ administration +
+ +
+ + + Primary Application Server + +

Main application server hosting the core system functionality.

+
+ main line + + + 11111111-0000-4000-9000-000000000001 + + +

This is the primary application server for the system.

+
+
+ + + External API Connection + +

Secure connection to an external API for data enrichment.

+
+ + + + + 11111111-0000-4000-9000-000000000001 + + +

This connection is used for secure data exchange with external systems.

+
+
+ + + +

Primary database server

+
+ + + + + + + + 11111111-0000-4000-9000-000000000001 + + + + +
+
+ + + +

Implementation of controls for the Enhanced Example System

+
+ + + + + + + +

Access Control Policy and Procedures (AC-1) is fully implemented in our system.

+
+ + + 11111111-0000-4000-9000-000000000001 + +
+
+ + + + + + + +

Information System Component Inventory (CM-8) is partially implemented.

+
+ + + 11111111-0000-4000-9000-000000000001 + +
+
+
+ + + + Access Control Policy + +

Detailed access control policy document

+
+ + +
+ + User's Guide + +

User's Guide

+
+ + + + +

Table 12-1 Attachments: User's Guide Attachment

+

May use rlink with a relative path, or embedded as base64.

+
+
+ + Document Title + +

Rules of Behavior

+
+ + + + + 00000000 + +

Table 12-1 Attachments: Rules of Behavior (ROB)

+

May use rlink with a relative path, or embedded as base64.

+
+
+ + Document Title + +

Contingency Plan (CP)

+
+ + + + + 00000000 + +

Table 12-1 Attachments: Contingency Plan (CP) Attachment

+

May use rlink with a relative path, or embedded as base64.

+
+
+ + Document Title + +

Configuration Management (CM) Plan

+
+ + + + + 00000000 + +

Table 12-1 Attachments: Configuration Management (CM) Plan Attachment

+

May use rlink with a relative path, or embedded as base64.

+
+
+ + Document Title + +

Incident Response (IR) Plan

+
+ + + + + 00000000 + +

Table 12-1 Attachments: Incident Response (IR) Plan Attachment

+

May use rlink with a relative path, or embedded as base64.

+
+
+ + Separation of Duties Matrix + +

Separation of Duties Matrix

+
+ + + + + 00000000 + +

May use rlink with a relative path, or embedded as base64.

+
+
+ + + + Authorization Boundary + +

Authorization Boundary Diagram

+
+ + + + + 00000000 + +

May use rlink with a relative path, or embedded as base64.

+
+
+ + + Network Architecture + +

Network Architecture Diagram

+
+ + + + + 00000000 + +

May use rlink with a relative path, or embedded as base64.

+
+
+ + + Data Flow + +

Data flow Diagram

+
+ + + + + 00000000 + +

May use rlink with a relative path, or embedded as base64.

+
+
+ + + +
+ diff --git a/src/validations/constraints/content/ssp-has-network-architecture-diagram-link-href-target-INVALID.xml b/src/validations/constraints/content/ssp-has-network-architecture-diagram-link-href-target-INVALID.xml new file mode 100644 index 000000000..81e8df8d3 --- /dev/null +++ b/src/validations/constraints/content/ssp-has-network-architecture-diagram-link-href-target-INVALID.xml @@ -0,0 +1,16 @@ + + + + +

A holistic, top-level explanation of the network architecture.

+
+ + + +
+
+ + + + +
\ No newline at end of file diff --git a/src/validations/constraints/content/ssp-has-network-architecture-diagram-link-href-target-VALID-1.xml b/src/validations/constraints/content/ssp-has-network-architecture-diagram-link-href-target-VALID-1.xml new file mode 100644 index 000000000..4b144a341 --- /dev/null +++ b/src/validations/constraints/content/ssp-has-network-architecture-diagram-link-href-target-VALID-1.xml @@ -0,0 +1,449 @@ + + + + Enhanced Example System Security Plan + 2024-08-01T14:30:00Z + 2024-08-01T14:30:00Z + 1.1 + 1.1.2 + SSP-2024-002 + + + + Document Creator + + + Content Approver + + + System Administrator + + + Asset Owner + + + System Owner + + + Authorizing Official Point of Contact + + + Information System Security Officer (or Equivalent) + + + Information System Management Point of Contact (POC) + +

The highest level manager who is responsible for system operation on behalf of the System Owner.

+
+
+ + Information System Technical Point of Contact + +

The individual or individuals leading the technical operation of the system.

+
+
+ + General Point of Contact (POC) + +

A general point of contact for the system, designated by the system owner.

+
+
+ + +
+ US +
+ +
+ +
+ US +
+ +
+ + Example Organization + ExOrg + + + + Jane Doe + jane.doe@example.com +
+ + + + 11111111-0000-4000-9000-000000000001 + + + 22222222-0000-4000-9000-000000000002 + + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + 22222222-0000-4000-9000-000000000002 + + + +

This SSP is an example for demonstration purposes.

+
+ + + + + + F00000001 + Enhanced Example System + System's Short Name or Acronym + +

This is an enhanced example system for demonstration purposes, incorporating more FedRAMP-specific elements.

+
+ + + + + + + fips-199-moderate + + + Financial Information + +

Contains sensitive financial data related to organizational operations.

+
+ + C.2.8.12 + + + fips-199-high + fips-199-high + + + + fips-199-moderate + fips-199-low + +

Required if the base and selected values do not match.

+
+
+ + fips-199-high + fips-199-low + +

Required if the base and selected values do not match.

+
+
+
+
+ + fips-199-moderate + fips-199-moderate + fips-199-moderate + + + + +

The authorization boundary includes all components within the main data center and the disaster recovery site.

+
+ + +

A diagram-specific explanation.

+
+ + Authorization Boundary Diagram +
+
+ + +

A holistic, top-level explanation of the network architecture.

+
+ + +

A diagram-specific explanation.

+
+ + Network Diagram +
+
+ + +

A holistic, top-level explanation of the system's data flows.

+
+ + +

A diagram-specific explanation.

+
+ + Data Flow Diagram +
+
+
+ + + + System Administrator + + + + system-admin + + Admin +

admin user

+ administration +
+ +
+ + + Primary Application Server + +

Main application server hosting the core system functionality.

+
+ main line + + + 11111111-0000-4000-9000-000000000001 + + +

This is the primary application server for the system.

+
+
+ + + External API Connection + +

Secure connection to an external API for data enrichment.

+
+ + + + + 11111111-0000-4000-9000-000000000001 + + +

This connection is used for secure data exchange with external systems.

+
+
+ + + +

Primary database server

+
+ + + + + + + + 11111111-0000-4000-9000-000000000001 + + + + +
+
+ + + +

Implementation of controls for the Enhanced Example System

+
+ + + + + + + +

Access Control Policy and Procedures (AC-1) is fully implemented in our system.

+
+ + + 11111111-0000-4000-9000-000000000001 + +
+
+ + + + + + + +

Information System Component Inventory (CM-8) is partially implemented.

+
+ + + 11111111-0000-4000-9000-000000000001 + +
+
+
+ + + + Access Control Policy + +

Detailed access control policy document

+
+ + +
+ + User's Guide + +

User's Guide

+
+ + + + +

Table 12-1 Attachments: User's Guide Attachment

+

May use rlink with a relative path, or embedded as base64.

+
+
+ + Document Title + +

Rules of Behavior

+
+ + + + + 00000000 + +

Table 12-1 Attachments: Rules of Behavior (ROB)

+

May use rlink with a relative path, or embedded as base64.

+
+
+ + Document Title + +

Contingency Plan (CP)

+
+ + + + + 00000000 + +

Table 12-1 Attachments: Contingency Plan (CP) Attachment

+

May use rlink with a relative path, or embedded as base64.

+
+
+ + Document Title + +

Configuration Management (CM) Plan

+
+ + + + + 00000000 + +

Table 12-1 Attachments: Configuration Management (CM) Plan Attachment

+

May use rlink with a relative path, or embedded as base64.

+
+
+ + Document Title + +

Incident Response (IR) Plan

+
+ + + + + 00000000 + +

Table 12-1 Attachments: Incident Response (IR) Plan Attachment

+

May use rlink with a relative path, or embedded as base64.

+
+
+ + Separation of Duties Matrix + +

Separation of Duties Matrix

+
+ + + + + 00000000 + +

May use rlink with a relative path, or embedded as base64.

+
+
+ + + + Authorization Boundary + +

Authorization Boundary Diagram

+
+ + + + + 00000000 + +

May use rlink with a relative path, or embedded as base64.

+
+
+ + + Network Architecture + +

Network Architecture Diagram

+
+ + + + + 00000000 + +

May use rlink with a relative path, or embedded as base64.

+
+
+ + + Data Flow + +

Data flow Diagram

+
+ + + + + 00000000 + +

May use rlink with a relative path, or embedded as base64.

+
+
+ + + +
+ diff --git a/src/validations/constraints/fedramp-external-constraints.xml b/src/validations/constraints/fedramp-external-constraints.xml index 8bcfe5503..9ae385a40 100644 --- a/src/validations/constraints/fedramp-external-constraints.xml +++ b/src/validations/constraints/fedramp-external-constraints.xml @@ -71,8 +71,26 @@ + + + + + Has Authorization Boundary Diagram Link Href Target + + A FedRAMP SSP MUST include an authorization boundary diagram. + + + Has Data Flow Diagram Link Href Target + + A FedRAMP SSP MUST include a data flow diagram. + + + Has Network Architecture Diagram Link Href Target + + A FedRAMP SSP MUST include a network architecture diagram. + Import Profile has available document diff --git a/src/validations/constraints/unit-tests/has-authorization-boundary-diagram-link-href-target-FAIL.yaml b/src/validations/constraints/unit-tests/has-authorization-boundary-diagram-link-href-target-FAIL.yaml new file mode 100644 index 000000000..ad47bf55b --- /dev/null +++ b/src/validations/constraints/unit-tests/has-authorization-boundary-diagram-link-href-target-FAIL.yaml @@ -0,0 +1,10 @@ +test-case: + name: Negative Test for has-authorization-boundary-diagram-link-href-target + description: >- + This test case validates the behavior of constraint + has-authorization-boundary-diagram-link-href-target + content: >- + ../content/ssp-has-authorization-boundary-diagram-link-href-target-INVALID.xml + expectations: + - constraint-id: has-authorization-boundary-diagram-link-href-target + result: fail diff --git a/src/validations/constraints/unit-tests/has-authorization-boundary-diagram-link-href-target-PASS.yaml b/src/validations/constraints/unit-tests/has-authorization-boundary-diagram-link-href-target-PASS.yaml new file mode 100644 index 000000000..ae5162476 --- /dev/null +++ b/src/validations/constraints/unit-tests/has-authorization-boundary-diagram-link-href-target-PASS.yaml @@ -0,0 +1,12 @@ +test-case: + name: Positive Test for has-authorization-boundary-diagram-link-href-target + description: >- + This test case validates the behavior of constraint has-authorization-boundary-diagram-link-href-target. + Scenario 1: Tests an @href that references a resource in the back-matter. + Scenario 2: Tests a link provided directly in the @href. + content: + - ../content/ssp-all-VALID.xml + - ../content/ssp-has-authorization-boundary-diagram-link-href-target-VALID-1.xml + expectations: + - constraint-id: has-authorization-boundary-diagram-link-href-target + result: pass diff --git a/src/validations/constraints/unit-tests/has-data-flow-diagram-link-href-target-FAIL.yaml b/src/validations/constraints/unit-tests/has-data-flow-diagram-link-href-target-FAIL.yaml new file mode 100644 index 000000000..2ac7fe6dd --- /dev/null +++ b/src/validations/constraints/unit-tests/has-data-flow-diagram-link-href-target-FAIL.yaml @@ -0,0 +1,9 @@ +test-case: + name: Negative Test for has-data-flow-diagram-link-href-target + description: >- + This test case validates the behavior of constraint + has-data-flow-diagram-link-href-target + content: ../content/ssp-has-data-flow-diagram-link-href-target-INVALID.xml + expectations: + - constraint-id: has-data-flow-diagram-link-href-target + result: fail diff --git a/src/validations/constraints/unit-tests/has-data-flow-diagram-link-href-target-PASS.yaml b/src/validations/constraints/unit-tests/has-data-flow-diagram-link-href-target-PASS.yaml new file mode 100644 index 000000000..7e4f098ab --- /dev/null +++ b/src/validations/constraints/unit-tests/has-data-flow-diagram-link-href-target-PASS.yaml @@ -0,0 +1,12 @@ +test-case: + name: Positive Test for has-data-flow-diagram-link-href-target + description: >- + This test case validates the behavior of constraint has-data-flow-diagram-link-href-target. + Scenario 1: Tests an @href that references a resource in the back-matter. + Scenario 2: Tests a link provided directly in the @href. + content: + - ../content/ssp-all-VALID.xml + - ../content/ssp-has-data-flow-diagram-link-href-target-VALID-1.xml + expectations: + - constraint-id: has-data-flow-diagram-link-href-target + result: pass diff --git a/src/validations/constraints/unit-tests/has-network-architecture-diagram-link-href-target-FAIL.yaml b/src/validations/constraints/unit-tests/has-network-architecture-diagram-link-href-target-FAIL.yaml new file mode 100644 index 000000000..cc137ad7b --- /dev/null +++ b/src/validations/constraints/unit-tests/has-network-architecture-diagram-link-href-target-FAIL.yaml @@ -0,0 +1,9 @@ +test-case: + name: Negative Test for has-network-architecture-diagram-link-href-target + description: >- + This test case validates the behavior of constraint + has-network-architecture-diagram-link-href-target + content: ../content/ssp-has-network-architecture-diagram-link-href-target-INVALID.xml + expectations: + - constraint-id: has-network-architecture-diagram-link-href-target + result: fail diff --git a/src/validations/constraints/unit-tests/has-network-architecture-diagram-link-href-target-PASS.yaml b/src/validations/constraints/unit-tests/has-network-architecture-diagram-link-href-target-PASS.yaml new file mode 100644 index 000000000..0de200640 --- /dev/null +++ b/src/validations/constraints/unit-tests/has-network-architecture-diagram-link-href-target-PASS.yaml @@ -0,0 +1,12 @@ +test-case: + name: Positive Test for has-network-architecture-diagram-link-href-target + description: >- + This test case validates the behavior of constraint has-network-architecture-diagram-link-href-target. + Scenario 1: Tests an @href that references a resource in the back-matter. + Scenario 2: Tests a link provided directly in the @href. + content: + - ../content/ssp-all-VALID.xml + - ../content/ssp-has-network-architecture-diagram-link-href-target-VALID-1.xml + expectations: + - constraint-id: has-network-architecture-diagram-link-href-target + result: pass