From 9b511abb10ff2dda0d41ed09f6f5c8a2e76534ff Mon Sep 17 00:00:00 2001 From: michael-anderson-swi <106351681+michael-anderson-swi@users.noreply.github.com> Date: Sat, 31 Aug 2024 12:43:04 -0600 Subject: [PATCH] fixing titles, fixin resource name (#89) --- internal/provider/log_filter_resource_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/provider/log_filter_resource_test.go b/internal/provider/log_filter_resource_test.go index 4303bba..5716be3 100644 --- a/internal/provider/log_filter_resource_test.go +++ b/internal/provider/log_filter_resource_test.go @@ -18,7 +18,7 @@ func TestAccLogFilterResource(t *testing.T) { Config: testAccLogFilterResourceConfig("test-acc test one"), Check: resource.ComposeAggregateTestCheckFunc( resource.TestCheckResourceAttrSet("swo_logfilter.test", "id"), - resource.TestCheckResourceAttr("swo_logfilter.test", "name", "test one"), + resource.TestCheckResourceAttr("swo_logfilter.test", "name", "test-acc test one"), resource.TestCheckResourceAttr("swo_logfilter.test", "description", "test description"), ), }, @@ -30,9 +30,9 @@ func TestAccLogFilterResource(t *testing.T) { }, // Update and Read testing { - Config: testAccLogFilterResourceConfig("test two"), + Config: testAccLogFilterResourceConfig("test-acc test two"), Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("swo_logfilter.test", "name", "test two"), + resource.TestCheckResourceAttr("swo_logfilter.test", "name", "test-acc test two"), ), }, // Delete testing automatically occurs in TestCase @@ -42,7 +42,7 @@ func TestAccLogFilterResource(t *testing.T) { func testAccLogFilterResourceConfig(name string) string { return providerConfig() + fmt.Sprintf(` - resource "swo_logfilter" "test_logfilter" { + resource "swo_logfilter" "test" { name = %[1]q description = "test description" token_signature = null