diff --git a/features/fedramp_extensions.feature b/features/fedramp_extensions.feature index 08f2f1aa6..232c46cb9 100644 --- a/features/fedramp_extensions.feature +++ b/features/fedramp_extensions.feature @@ -115,6 +115,7 @@ Examples: | interconnection-direction | | interconnection-security | | inventory-item-allows-authenticated-scan | + | inventory-item-has-software-name | | inventory-item-public | | inventory-item-virtual | | leveraged-authorization-has-authorization-type | @@ -354,6 +355,8 @@ Examples: | interconnection-security-PASS.yaml | | inventory-item-allows-authenticated-scan-FAIL.yaml | | inventory-item-allows-authenticated-scan-PASS.yaml | + | inventory-item-has-software-name-FAIL.yaml | + | inventory-item-has-software-name-PASS.yaml | | inventory-item-public-FAIL.yaml | | inventory-item-public-PASS.yaml | | inventory-item-virtual-FAIL.yaml | diff --git a/src/validations/constraints/content/ssp-inventory-item-has-software-name-INVALID.xml b/src/validations/constraints/content/ssp-inventory-item-has-software-name-INVALID.xml new file mode 100644 index 000000000..d0b88a64a --- /dev/null +++ b/src/validations/constraints/content/ssp-inventory-item-has-software-name-INVALID.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/validations/constraints/fedramp-external-constraints.xml b/src/validations/constraints/fedramp-external-constraints.xml index d03778f96..8c569d633 100644 --- a/src/validations/constraints/fedramp-external-constraints.xml +++ b/src/validations/constraints/fedramp-external-constraints.xml @@ -636,6 +636,18 @@ + + + + + + Inventory Item Has Software Name + + In a FedRAMP SSP, each inventory item MUST include the software name in the inventory item itself or within the linked component. + + + + diff --git a/src/validations/constraints/unit-tests/inventory-item-has-software-name-FAIL.yaml b/src/validations/constraints/unit-tests/inventory-item-has-software-name-FAIL.yaml new file mode 100644 index 000000000..3d5b358bc --- /dev/null +++ b/src/validations/constraints/unit-tests/inventory-item-has-software-name-FAIL.yaml @@ -0,0 +1,9 @@ +test-case: + name: Negative Test for inventory-item-has-software-name + description: >- + This test case validates the behavior of constraint + inventory-item-has-software-name + content: ../content/ssp-inventory-item-has-software-name-INVALID.xml + expectations: + - constraint-id: inventory-item-has-software-name + result: fail diff --git a/src/validations/constraints/unit-tests/inventory-item-has-software-name-PASS.yaml b/src/validations/constraints/unit-tests/inventory-item-has-software-name-PASS.yaml new file mode 100644 index 000000000..8dd3278bc --- /dev/null +++ b/src/validations/constraints/unit-tests/inventory-item-has-software-name-PASS.yaml @@ -0,0 +1,9 @@ +test-case: + name: Positive Test for inventory-item-has-software-name + description: >- + This test case validates the behavior of constraint + inventory-item-has-software-name + content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml + expectations: + - constraint-id: inventory-item-has-software-name + result: pass