diff --git a/features/fedramp_extensions.feature b/features/fedramp_extensions.feature index bfc7a3cf9..a59781806 100644 --- a/features/fedramp_extensions.feature +++ b/features/fedramp_extensions.feature @@ -28,6 +28,7 @@ Examples: #BEGIN_DYNAMIC_CONSTRAINT_IDS | address-type | | attachment-type | + | authentication-method-has-remarks | | authorization-type | | categorization-has-correct-system-attribute | | categorization-has-information-type-id | @@ -130,7 +131,6 @@ Examples: | security-level | | security-sensitivity-level-matches-security-impact-level | | unique-inventory-item-asset-id | - | unique-inventory-item-asset-id | | user-authentication | | user-has-authorized-privilege | | user-has-privilege-level | @@ -161,6 +161,8 @@ Examples: | address-type-PASS.yaml | | attachment-type-FAIL.yaml | | attachment-type-PASS.yaml | + | authentication-method-has-remarks-FAIL.yaml | + | authentication-method-has-remarks-PASS.yaml | | authorization-type-FAIL.yaml | | authorization-type-PASS.yaml | | categorization-has-correct-system-attribute-FAIL.yaml | diff --git a/src/validations/constraints/content/ssp-authentication-method-has-remarks-INVALID.xml b/src/validations/constraints/content/ssp-authentication-method-has-remarks-INVALID.xml new file mode 100644 index 000000000..06b7b625d --- /dev/null +++ b/src/validations/constraints/content/ssp-authentication-method-has-remarks-INVALID.xml @@ -0,0 +1,11 @@ + + + + + + + + + \ 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 efdecb643..eebb1b89a 100644 --- a/src/validations/constraints/fedramp-external-constraints.xml +++ b/src/validations/constraints/fedramp-external-constraints.xml @@ -568,6 +568,11 @@ + + Authentication Method Has Remarks + + Each authentication method in a FedRAMP SSP MUST have a remarks field. + Unique Asset Identifier Ensure each inventory item has a unique asset-id property. diff --git a/src/validations/constraints/unit-tests/authentication-method-has-remarks-FAIL.yaml b/src/validations/constraints/unit-tests/authentication-method-has-remarks-FAIL.yaml new file mode 100644 index 000000000..857f3973a --- /dev/null +++ b/src/validations/constraints/unit-tests/authentication-method-has-remarks-FAIL.yaml @@ -0,0 +1,9 @@ +test-case: + name: Negative Test for authentication-method-has-remarks + description: >- + This test case validates the behavior of constraint + authentication-method-has-remarks + content: ../content/ssp-authentication-method-has-remarks-INVALID.xml + expectations: + - constraint-id: authentication-method-has-remarks + result: fail diff --git a/src/validations/constraints/unit-tests/authentication-method-has-remarks-PASS.yaml b/src/validations/constraints/unit-tests/authentication-method-has-remarks-PASS.yaml new file mode 100644 index 000000000..114dd8e65 --- /dev/null +++ b/src/validations/constraints/unit-tests/authentication-method-has-remarks-PASS.yaml @@ -0,0 +1,9 @@ +test-case: + name: Positive Test for authentication-method-has-remarks + description: >- + This test case validates the behavior of constraint + authentication-method-has-remarks + content: ../content/ssp-all-VALID.xml + expectations: + - constraint-id: authentication-method-has-remarks + result: pass