From 1a67e9502d3ff71e1b4853f96e32d95c2bda0bcd Mon Sep 17 00:00:00 2001 From: Gautam Ramaswamy Date: Tue, 30 Jul 2024 15:33:08 -0700 Subject: [PATCH] internal/provider guardrail_test: Fix syntax --- internal/provider/guardrail_data_source_test.go | 14 ++++++-------- internal/provider/guardrail_resource_test.go | 14 ++++++-------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/internal/provider/guardrail_data_source_test.go b/internal/provider/guardrail_data_source_test.go index 776d2e0..f737d28 100644 --- a/internal/provider/guardrail_data_source_test.go +++ b/internal/provider/guardrail_data_source_test.go @@ -24,10 +24,9 @@ func TestAccGuardrailDataSource_basic(t *testing.T) { resource.TestCheckResourceAttr("data.resourcely_guardrail.by_series_id", "category", "GUARDRAIL_BEST_PRACTICES"), resource.TestCheckResourceAttr("data.resourcely_guardrail.by_series_id", "state", "GUARDRAIL_STATE_EVALUATE_ONLY"), resource.TestCheckResourceAttr("data.resourcely_guardrail.by_series_id", "content", - `guardrail "basic test" -when aws_s3_bucket -require bucket = "acme-{team}-{project}" -end + `GUARDRAIL "basic test" + WHEN aws_s3_bucket + REQUIRE bucket = "acme-{team}-{project}" `), ), }, @@ -43,10 +42,9 @@ resource "resourcely_guardrail" "basic_data_source" { category = "GUARDRAIL_BEST_PRACTICES" state = "GUARDRAIL_STATE_EVALUATE_ONLY" content = <<-EOT - guardrail "basic test" - when aws_s3_bucket - require bucket = "acme-{team}-{project}" - end + GUARDRAIL "basic test" + WHEN aws_s3_bucket + REQUIRE bucket = "acme-{team}-{project}" EOT } diff --git a/internal/provider/guardrail_resource_test.go b/internal/provider/guardrail_resource_test.go index 451774b..888a0e2 100644 --- a/internal/provider/guardrail_resource_test.go +++ b/internal/provider/guardrail_resource_test.go @@ -26,10 +26,9 @@ func TestAccGuardrailResource_basic(t *testing.T) { resource.TestCheckResourceAttr("resourcely_guardrail.basic", "category", "GUARDRAIL_BEST_PRACTICES"), resource.TestCheckResourceAttr("resourcely_guardrail.basic", "state", "GUARDRAIL_STATE_EVALUATE_ONLY"), resource.TestCheckResourceAttr("resourcely_guardrail.basic", "content", - `guardrail "basic test" - when aws_s3_bucket - require bucket = "acme-{team}-{project}" -end + `GUARDRAIL "basic test" + WHEN aws_s3_bucket + REQUIRE bucket = "acme-{team}-{project}" `), ), }, @@ -75,10 +74,9 @@ resource "resourcely_guardrail" "basic" { category = "GUARDRAIL_BEST_PRACTICES" state = "GUARDRAIL_STATE_EVALUATE_ONLY" content = <<-EOT - guardrail "basic test" - when aws_s3_bucket - require bucket = "acme-{team}-{project}" - end + GUARDRAIL "basic test" + WHEN aws_s3_bucket + REQUIRE bucket = "acme-{team}-{project}" EOT } `, name)