diff --git a/features/fedramp_extensions.feature b/features/fedramp_extensions.feature index d7743320b..16653732f 100644 --- a/features/fedramp_extensions.feature +++ b/features/fedramp_extensions.feature @@ -127,6 +127,7 @@ Examples: | interconnection-security | | inventory-item-allows-authenticated-scan | | inventory-item-and-component-has-public | + | inventory-item-asset-types | | inventory-item-has-asset-type | | inventory-item-has-diagram-label | | inventory-item-has-function | @@ -402,6 +403,8 @@ Examples: | inventory-item-allows-authenticated-scan-PASS.yaml | | inventory-item-and-component-has-public-FAIL.yaml | | inventory-item-and-component-has-public-PASS.yaml | + | inventory-item-asset-types-FAIL.yaml | + | inventory-item-asset-types-PASS.yaml | | inventory-item-has-asset-type-FAIL.yaml | | inventory-item-has-asset-type-PASS.yaml | | inventory-item-has-diagram-label-FAIL.yaml | diff --git a/src/content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml b/src/content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml index e0605f9db..753f9aba1 100644 --- a/src/content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml +++ b/src/content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml @@ -2493,7 +2493,7 @@ approved.

- + diff --git a/src/validations/constraints/content/ssp-inventory-item-asset-types-INVALID.xml b/src/validations/constraints/content/ssp-inventory-item-asset-types-INVALID.xml new file mode 100644 index 000000000..c21b4a7a9 --- /dev/null +++ b/src/validations/constraints/content/ssp-inventory-item-asset-types-INVALID.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/src/validations/constraints/fedramp-external-allowed-values.xml b/src/validations/constraints/fedramp-external-allowed-values.xml index d10bcdd9b..8f4ab87ac 100644 --- a/src/validations/constraints/fedramp-external-allowed-values.xml +++ b/src/validations/constraints/fedramp-external-allowed-values.xml @@ -548,6 +548,16 @@ No + + Inventory Item Asset Types + Identifies the inventory item asset types recognized by FedRAMP. + + Hardware + Infrastructure + Network + Software + + Public Indicates if the asset is exposed to the public Internet. diff --git a/src/validations/constraints/unit-tests/inventory-item-asset-types-FAIL.yaml b/src/validations/constraints/unit-tests/inventory-item-asset-types-FAIL.yaml new file mode 100644 index 000000000..1db6603bb --- /dev/null +++ b/src/validations/constraints/unit-tests/inventory-item-asset-types-FAIL.yaml @@ -0,0 +1,9 @@ +test-case: + name: Negative Test for inventory-item-asset-types + description: >- + This test case validates the behavior of constraint + inventory-item-asset-types + content: ../content/ssp-inventory-item-asset-types-INVALID.xml + expectations: + - constraint-id: inventory-item-asset-types + fail_count: 0 diff --git a/src/validations/constraints/unit-tests/inventory-item-asset-types-PASS.yaml b/src/validations/constraints/unit-tests/inventory-item-asset-types-PASS.yaml new file mode 100644 index 000000000..b84a262e8 --- /dev/null +++ b/src/validations/constraints/unit-tests/inventory-item-asset-types-PASS.yaml @@ -0,0 +1,9 @@ +test-case: + name: Positive Test for inventory-item-asset-types + description: >- + This test case validates the behavior of constraint + inventory-item-asset-types + content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml + expectations: + - constraint-id: inventory-item-asset-types + result: pass