Skip to content

Commit

Permalink
update(query): improved "Resource Not Using Tags" description (Checkm…
Browse files Browse the repository at this point in the history
…arx#5483)

* updated "Resource Not Using Tags" description

* fixing E2E test
  • Loading branch information
rafaela-soares authored Jun 21, 2022
1 parent 3ab1ca4 commit af958ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"queryName": "Resource Not Using Tags",
"severity": "INFO",
"category": "Best Practices",
"descriptionText": "AWS services resource tags are an essential part of managing components",
"descriptionText": "AWS services resource tags are an essential part of managing components. As a best practice, the field 'tags' should have additional tags defined other than 'Name'",
"descriptionUrl": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/resource-tagging",
"platform": "Terraform",
"descriptionID": "09db2d52",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ CxPolicy[result] {
"resourceName": tf_lib.get_resource_name(resource, name),
"searchKey": sprintf("%s[{{%s}}].tags", [res, name]),
"issueType": "MissingAttribute",
"keyExpectedValue": sprintf("%s[{{%s}}].tags has tags defined other than 'Name'", [res, name]),
"keyActualValue": sprintf("%s[{{%s}}].tags has no tags defined", [res, name]),
"keyExpectedValue": sprintf("%s[{{%s}}].tags has additional tags defined other than 'Name'", [res, name]),
"keyActualValue": sprintf("%s[{{%s}}].tags does not have additional tags defined other than 'Name'", [res, name]),
}
}

Expand Down
2 changes: 1 addition & 1 deletion e2e/fixtures/E2E_CLI_033_RESULT.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
"platform": "Terraform",
"cloud_provider": "AWS",
"category": "Best Practices",
"description": "AWS services resource tags are an essential part of managing components",
"description": "AWS services resource tags are an essential part of managing components. As a best practice, the field 'tags' should have additional tags defined other than 'Name'",
"description_id": "09db2d52",
"files": [
{
Expand Down

0 comments on commit af958ea

Please sign in to comment.