From 5bea64bcb4594d4ee6e159ece8f54507ed7f6963 Mon Sep 17 00:00:00 2001 From: Alex Hung Date: Fri, 20 Sep 2024 15:54:09 -0700 Subject: [PATCH] Fix tests --- pkg/xray/resource/resource_xray_security_policy_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/xray/resource/resource_xray_security_policy_test.go b/pkg/xray/resource/resource_xray_security_policy_test.go index 584436a4..6b322982 100644 --- a/pkg/xray/resource/resource_xray_security_policy_test.go +++ b/pkg/xray/resource/resource_xray_security_policy_test.go @@ -50,6 +50,7 @@ func TestAccSecurityPolicy_UpgradeFromSDKv2(t *testing.T) { testData["resource_name"] = resourceName testData["policy_name"] = fmt.Sprintf("terraform-security-policy-4-%d", testutil.RandomInt()) testData["rule_name"] = fmt.Sprintf("test-security-rule-4-%d", testutil.RandomInt()) + testData["applicable_cves_only"] = "false" template := ` resource "xray_security_policy" "{{ .resource_name }}" { @@ -416,6 +417,7 @@ func TestAccSecurityPolicy_createBlockDownloadTrueCVSS(t *testing.T) { testData["resource_name"] = resourceName testData["policy_name"] = fmt.Sprintf("terraform-security-policy-4-%d", testutil.RandomInt()) testData["rule_name"] = fmt.Sprintf("test-security-rule-4-%d", testutil.RandomInt()) + testData["applicable_cves_only"] = "false" resource.Test(t, resource.TestCase{ CheckDestroy: acctest.VerifyDeleted(fqrn, "", acctest.CheckPolicy), @@ -443,6 +445,7 @@ func TestAccSecurityPolicy_createBlockDownloadFalseCVSS(t *testing.T) { testData["resource_name"] = resourceName testData["policy_name"] = fmt.Sprintf("terraform-security-policy-5-%d", testutil.RandomInt()) testData["rule_name"] = fmt.Sprintf("test-security-rule-5-%d", testutil.RandomInt()) + testData["applicable_cves_only"] = "false" testData["block_unscanned"] = "false" testData["block_active"] = "false"