-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add validation check for diagram document directly in @href
- Loading branch information
Showing
7 changed files
with
1,371 additions
and
15 deletions.
There are no files selected for viewing
449 changes: 449 additions & 0 deletions
449
...s/constraints/content/ssp-has-authorization-boundary-diagram-link-href-target-VALID-1.xml
Large diffs are not rendered by default.
Oops, something went wrong.
449 changes: 449 additions & 0 deletions
449
src/validations/constraints/content/ssp-has-data-flow-diagram-link-href-target-VALID-1.xml
Large diffs are not rendered by default.
Oops, something went wrong.
449 changes: 449 additions & 0 deletions
449
...ons/constraints/content/ssp-has-network-architecture-diagram-link-href-target-VALID-1.xml
Large diffs are not rendered by default.
Oops, something went wrong.
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: 6 additions & 3 deletions
9
...ions/constraints/unit-tests/has-authorization-boundary-diagram-link-href-target-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 |
---|---|---|
@@ -1,9 +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 | ||
content: ../content/ssp-all-VALID.xml | ||
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 |
9 changes: 6 additions & 3 deletions
9
src/validations/constraints/unit-tests/has-data-flow-diagram-link-href-target-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 |
---|---|---|
@@ -1,9 +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 | ||
content: ../content/ssp-all-VALID.xml | ||
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 |
9 changes: 6 additions & 3 deletions
9
...ations/constraints/unit-tests/has-network-architecture-diagram-link-href-target-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 |
---|---|---|
@@ -1,9 +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 | ||
content: ../content/ssp-all-VALID.xml | ||
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 |