From 13aaec1fa3f8d4dc1af1b2a8784c8318a37ceaf6 Mon Sep 17 00:00:00 2001 From: Kazuma Watanabe Date: Sun, 10 Sep 2023 16:12:32 +0000 Subject: [PATCH] Follow up of https://github.com/hashicorp/terraform-plugin-sdk/issues/464 --- integration/basic/result.json | 2 +- rules/magicmodules/generated_rules_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/basic/result.json b/integration/basic/result.json index cb04f1f..f8a2906 100644 --- a/integration/basic/result.json +++ b/integration/basic/result.json @@ -6,7 +6,7 @@ "severity":"error", "link":"" }, - "message":"expected override_strategy to be one of [STRICT OVERRIDE ], got DEFAULT", + "message":"expected override_strategy to be one of [\"STRICT\" \"OVERRIDE\" \"\"], got DEFAULT", "range":{ "filename":"main.tf", "start":{ diff --git a/rules/magicmodules/generated_rules_test.go b/rules/magicmodules/generated_rules_test.go index f8b9981..ca5275e 100644 --- a/rules/magicmodules/generated_rules_test.go +++ b/rules/magicmodules/generated_rules_test.go @@ -69,7 +69,7 @@ resource "google_cloud_asset_folder_feed" "main" { Expected: helper.Issues{ { Rule: NewGoogleCloudAssetFolderFeedInvalidContentTypeRule(), - Message: `expected content_type to be one of [CONTENT_TYPE_UNSPECIFIED RESOURCE IAM_POLICY ORG_POLICY OS_INVENTORY ACCESS_POLICY ], got INVALID`, + Message: `expected content_type to be one of ["CONTENT_TYPE_UNSPECIFIED" "RESOURCE" "IAM_POLICY" "ORG_POLICY" "OS_INVENTORY" "ACCESS_POLICY" ""], got INVALID`, Range: hcl.Range{ Filename: "resource.tf", Start: hcl.Pos{Line: 3, Column: 18},