Skip to content

Commit

Permalink
Rebase the branch and add "inventory-item" to constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriZhurkin committed Sep 25, 2024
1 parent efa0784 commit 997d820
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 21 deletions.
18 changes: 9 additions & 9 deletions features/fedramp_extensions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ Examples:
#BEGIN_DYNAMIC_TEST_CASES
| address-type-FAIL.yaml |
| address-type-PASS.yaml |
| allows-authenticated-scan-FAIL.yaml |
| allows-authenticated-scan-PASS.yaml |
| attachment-type-FAIL.yaml |
| attachment-type-PASS.yaml |
| authorization-type-FAIL.yaml |
Expand Down Expand Up @@ -113,12 +111,16 @@ Examples:
| interconnection-direction-PASS.yaml |
| interconnection-security-FAIL.yaml |
| interconnection-security-PASS.yaml |
| inventory-item-allows-authenticated-scan-FAIL.yaml |
| inventory-item-allows-authenticated-scan-PASS.yaml |
| inventory-item-public-FAIL.yaml |
| inventory-item-public-PASS.yaml |
| inventory-item-virtual-FAIL.yaml |
| inventory-item-virtual-PASS.yaml |
| missing-response-components-FAIL.yaml |
| missing-response-components-PASS.yaml |
| privilege-level-FAIL.yaml |
| privilege-level-PASS.yaml |
| public-FAIL.yaml |
| public-PASS.yaml |
| resource-has-base64-or-rlink-FAIL.yaml |
| resource-has-base64-or-rlink-PASS.yaml |
| resource-has-title-FAIL.yaml |
Expand All @@ -135,8 +137,6 @@ Examples:
| scan-type-PASS.yaml |
| user-type-FAIL.yaml |
| user-type-PASS.yaml |
| virtual-FAIL.yaml |
| virtual-PASS.yaml |
#END_DYNAMIC_TEST_CASES

@full-coverage
Expand All @@ -153,7 +153,6 @@ Examples:
| constraint_id |
#BEGIN_DYNAMIC_CONSTRAINT_IDS
| address-type |
| allows-authenticated-scan |
| attachment-type |
| authorization-type |
| categorization-has-correct-system-attribute |
Expand Down Expand Up @@ -201,16 +200,17 @@ Examples:
| information-type-system |
| interconnection-direction |
| interconnection-security |
| inventory-item-allows-authenticated-scan |
| inventory-item-public |
| inventory-item-virtual |
| missing-response-components |
| privilege-level |
| prop-response-point-has-cardinality-one |
| public |
| resource-has-base64-or-rlink |
| resource-has-title |
| role-defined-authorizing-official-poc |
| role-defined-information-system-security-officer |
| role-defined-system-owner |
| scan-type |
| user-type |
| virtual |
#END_DYNAMIC_CONSTRAINT_IDS
Original file line number Diff line number Diff line change
Expand Up @@ -175,21 +175,21 @@
<enum value="other">Other</enum>
</allowed-values>

<allowed-values id="virtual" target="(//inventory-item/prop[@name='virtual'] | //component/prop[@name='virtual'])/@value" allow-other="no" level="ERROR">
<allowed-values id="inventory-item-virtual" target="(//inventory-item/prop[@name='virtual'] | //component/prop[@name='virtual'])/@value" allow-other="no" level="ERROR">
<formal-name>Virtual</formal-name>
<description>Indicates if the asset is virtual.</description>
<enum value="yes">Yes</enum>
<enum value="no">No</enum>
</allowed-values>

<allowed-values id="public" target="(//inventory-item | //component)/prop[@name='public']/@value" allow-other="no" level="ERROR">
<allowed-values id="inventory-item-public" target="(//inventory-item | //component)/prop[@name='public']/@value" allow-other="no" level="ERROR">
<formal-name>Public</formal-name>
<description>Indicates if the asset is exposed to the public Internet.</description>
<enum value="yes">Yes</enum>
<enum value="no">No</enum>
</allowed-values>

<allowed-values id="allows-authenticated-scan" target="(//inventory-item | //component)/prop[@name='allows-authenticated-scan']/@value" allow-other="no" level="ERROR">
<allowed-values id="inventory-item-allows-authenticated-scan" target="(//inventory-item | //component)/prop[@name='allows-authenticated-scan']/@value" allow-other="no" level="ERROR">
<formal-name>Allows Authenticated Scan</formal-name>
<description>Indicates if the asset is capable of having an authenticated scan.</description>
<enum value="yes">Yes</enum>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
test-case:
name: The invalid authenticated scan test.
description: Test that the specified authenticated scan is invalid.
content: ../content/ssp-allows-authenticated-scan-INVALID.xml
content: ../content/ssp-inventory-item-allows-authenticated-scan-INVALID.xml
expectations:
- constraint-id: allows-authenticated-scan
- constraint-id: inventory-item-allows-authenticated-scan
result: fail
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ test-case:
description: Test that the specified authenticated scan is valid.
content: ../content/ssp-all-VALID.xml
expectations:
- constraint-id: allows-authenticated-scan
- constraint-id: inventory-item-allows-authenticated-scan
result: pass
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
test-case:
name: The invalid public asset test.
description: Test that the specified public asset is invalid.
content: ../content/ssp-public-INVALID.xml
content: ../content/ssp-inventory-item-public-INVALID.xml
expectations:
- constraint-id: public
- constraint-id: inventory-item-public
result: fail
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ test-case:
description: Test that the specified public asset is valid.
content: ../content/ssp-all-VALID.xml
expectations:
- constraint-id: public
- constraint-id: inventory-item-public
result: pass
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
test-case:
name: The invalid virtual asset test.
description: Test that the specified virtual asset is invalid.
content: ../content/ssp-virtual-INVALID.xml
content: ../content/ssp-inventory-item-virtual-INVALID.xml
expectations:
- constraint-id: virtual
- constraint-id: inventory-item-virtual
result: fail
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ test-case:
description: Test that the specified virtual asset is valid.
content: ../content/ssp-all-VALID.xml
expectations:
- constraint-id: virtual
- constraint-id: inventory-item-virtual
result: pass

0 comments on commit 997d820

Please sign in to comment.