diff --git a/features/fedramp_extensions.feature b/features/fedramp_extensions.feature index 45e828a81..873957004 100644 --- a/features/fedramp_extensions.feature +++ b/features/fedramp_extensions.feature @@ -121,6 +121,7 @@ Examples: | interconnection-security | | inventory-item-allows-authenticated-scan | | inventory-item-and-component-has-public | + | inventory-item-has-hardware-model | | inventory-item-has-valid-mac-address | | inventory-item-has-vendor-name | | inventory-item-or-component-has-asset-id | @@ -376,6 +377,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-has-hardware-model-FAIL.yaml | + | inventory-item-has-hardware-model-PASS.yaml | | inventory-item-has-valid-mac-address-FAIL.yaml | | inventory-item-has-valid-mac-address-PASS.yaml | | inventory-item-has-vendor-name-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 e70c03786..24e254cfe 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 @@ -2305,6 +2305,7 @@ approved.

Legacy Example (No implemented-component).

+ @@ -2359,6 +2360,7 @@ approved.

Component Inventory Example

+ @@ -2398,6 +2400,7 @@ approved.

None.

+ @@ -2414,6 +2417,7 @@ approved.

None.

+ @@ -2429,6 +2433,7 @@ approved.

None.

+ @@ -2444,6 +2449,7 @@ approved.

None.

+ @@ -2462,6 +2468,7 @@ approved.

None.

+ @@ -2477,6 +2484,7 @@ approved.

None.

+ @@ -2495,6 +2503,7 @@ approved.

Email-Service

+ diff --git a/src/validations/constraints/content/ssp-inventory-item-has-hardware-model-INVALID.xml b/src/validations/constraints/content/ssp-inventory-item-has-hardware-model-INVALID.xml new file mode 100644 index 000000000..08c896ed1 --- /dev/null +++ b/src/validations/constraints/content/ssp-inventory-item-has-hardware-model-INVALID.xml @@ -0,0 +1,7 @@ + + + + + + + \ 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 f24d6cc41..87a0edb80 100644 --- a/src/validations/constraints/fedramp-external-constraints.xml +++ b/src/validations/constraints/fedramp-external-constraints.xml @@ -663,6 +663,11 @@ + + Inventory Item Has Hardware Model + + In a FedRAMP SSP, each inventory item MUST provide the hardware model either in the inventory item itself or within the linked component. + Inventory Item Has Valid Mac Address diff --git a/src/validations/constraints/unit-tests/inventory-item-has-hardware-model-FAIL.yaml b/src/validations/constraints/unit-tests/inventory-item-has-hardware-model-FAIL.yaml new file mode 100644 index 000000000..bd3ccafde --- /dev/null +++ b/src/validations/constraints/unit-tests/inventory-item-has-hardware-model-FAIL.yaml @@ -0,0 +1,9 @@ +test-case: + name: Negative Test for inventory-item-has-hardware-model + description: >- + This test case validates the behavior of constraint + inventory-item-has-hardware-model + content: ../content/ssp-inventory-item-has-hardware-model-INVALID.xml + expectations: + - constraint-id: inventory-item-has-hardware-model + result: fail diff --git a/src/validations/constraints/unit-tests/inventory-item-has-hardware-model-PASS.yaml b/src/validations/constraints/unit-tests/inventory-item-has-hardware-model-PASS.yaml new file mode 100644 index 000000000..f6fff17c8 --- /dev/null +++ b/src/validations/constraints/unit-tests/inventory-item-has-hardware-model-PASS.yaml @@ -0,0 +1,9 @@ +test-case: + name: Positive Test for inventory-item-has-hardware-model + description: >- + This test case validates the behavior of constraint + inventory-item-has-hardware-model + content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml + expectations: + - constraint-id: inventory-item-has-hardware-model + result: pass