From d71d1b6f5428c16b74164fb2bf85f046457bcc31 Mon Sep 17 00:00:00 2001 From: Simon Baird Date: Thu, 20 Jun 2024 11:56:28 -0400 Subject: [PATCH] Fix typo in rule data attributes key A small fixup for PR #1030 Ref: https://issues.redhat.com/browse/EC-638 --- policy/release/sbom_cyclonedx.rego | 2 +- policy/release/sbom_cyclonedx_test.rego | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/policy/release/sbom_cyclonedx.rego b/policy/release/sbom_cyclonedx.rego index 41ccd6c2..8e7ce2d8 100644 --- a/policy/release/sbom_cyclonedx.rego +++ b/policy/release/sbom_cyclonedx.rego @@ -233,4 +233,4 @@ _rule_data_errors contains msg if { _rule_data_packages_key := "disallowed_packages" -_rule_data_attributes_key := "dissalowed_attributes" +_rule_data_attributes_key := "disallowed_attributes" diff --git a/policy/release/sbom_cyclonedx_test.rego b/policy/release/sbom_cyclonedx_test.rego index 3310c837..d59d2142 100644 --- a/policy/release/sbom_cyclonedx_test.rego +++ b/policy/release/sbom_cyclonedx_test.rego @@ -276,25 +276,25 @@ test_rule_data_validation if { }, { "code": "sbom_cyclonedx.disallowed_packages_provided", - "msg": "Rule data dissalowed_attributes has unexpected format: 2: name is required", + "msg": "Rule data disallowed_attributes has unexpected format: 2: name is required", }, { "code": "sbom_cyclonedx.disallowed_packages_provided", - "msg": "Rule data dissalowed_attributes has unexpected format: 3: Additional property something is not allowed", + "msg": "Rule data disallowed_attributes has unexpected format: 3: Additional property something is not allowed", }, { "code": "sbom_cyclonedx.disallowed_packages_provided", # regal ignore:line-length - "msg": "Rule data dissalowed_attributes has unexpected format: 4.name: Invalid type. Expected: string, given: integer", + "msg": "Rule data disallowed_attributes has unexpected format: 4.name: Invalid type. Expected: string, given: integer", }, { "code": "sbom_cyclonedx.disallowed_packages_provided", # regal ignore:line-length - "msg": "Rule data dissalowed_attributes has unexpected format: 4.value: Invalid type. Expected: string, given: integer", + "msg": "Rule data disallowed_attributes has unexpected format: 4.value: Invalid type. Expected: string, given: integer", }, { "code": "sbom_cyclonedx.disallowed_packages_provided", - "msg": "Rule data dissalowed_attributes has unexpected format: (Root): array items[5,6] must be unique", + "msg": "Rule data disallowed_attributes has unexpected format: (Root): array items[5,6] must be unique", }, }