From ea9f11f5af0f234f29f79d76086355e44458bfc3 Mon Sep 17 00:00:00 2001 From: Austin Valle Date: Fri, 14 Jun 2024 17:24:46 -0400 Subject: [PATCH] sdkv2provider: Fix resource tests for `corner_user_cty` --- internal/sdkv2provider/resource_user_cty_test.go | 16 ++++++++-------- .../resource_user_cty_test.go | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/internal/sdkv2provider/resource_user_cty_test.go b/internal/sdkv2provider/resource_user_cty_test.go index a5b74c5..3824302 100644 --- a/internal/sdkv2provider/resource_user_cty_test.go +++ b/internal/sdkv2provider/resource_user_cty_test.go @@ -18,22 +18,22 @@ func testAccResourceUserCty(t *testing.T) resource.TestCase { Config: configResourceUserCtyBasic, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr( - "corner_user.foo", "email", "ford@prefect.co"), + "corner_user_cty.foo", "email", "ford@prefect.co"), resource.TestCheckResourceAttr( - "corner_user.foo", "name", "Ford Prefect"), + "corner_user_cty.foo", "name", "Ford Prefect"), resource.TestCheckResourceAttr( - "corner_user.foo", "age", "200"), + "corner_user_cty.foo", "age", "200"), ), }, { Config: configResourceUserCtyUpdate, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr( - "corner_user.foo", "email", "ford@prefect.co"), + "corner_user_cty.foo", "email", "ford@prefect.co"), resource.TestCheckResourceAttr( - "corner_user.foo", "name", "Ford Prefect II"), + "corner_user_cty.foo", "name", "Ford Prefect II"), resource.TestCheckResourceAttr( - "corner_user.foo", "age", "300"), + "corner_user_cty.foo", "age", "300"), ), }, }, @@ -41,7 +41,7 @@ func testAccResourceUserCty(t *testing.T) resource.TestCase { } const configResourceUserCtyBasic = ` -resource "corner_user" "foo" { +resource "corner_user_cty" "foo" { email = "ford@prefect.co" name = "Ford Prefect" age = 200 @@ -49,7 +49,7 @@ resource "corner_user" "foo" { ` const configResourceUserCtyUpdate = ` -resource "corner_user" "foo" { +resource "corner_user_cty" "foo" { email = "ford@prefect.co" name = "Ford Prefect II" age = 300 diff --git a/internal/sdkv2testingprovider/resource_user_cty_test.go b/internal/sdkv2testingprovider/resource_user_cty_test.go index f92a73b..cbeb3b6 100644 --- a/internal/sdkv2testingprovider/resource_user_cty_test.go +++ b/internal/sdkv2testingprovider/resource_user_cty_test.go @@ -18,22 +18,22 @@ func testAccResourceUserCty(t *testing.T) resource.TestCase { Config: configResourceUserCtyBasic, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr( - "corner_user.foo", "email", "ford@prefect.co"), + "corner_user_cty.foo", "email", "ford@prefect.co"), resource.TestCheckResourceAttr( - "corner_user.foo", "name", "Ford Prefect"), + "corner_user_cty.foo", "name", "Ford Prefect"), resource.TestCheckResourceAttr( - "corner_user.foo", "age", "200"), + "corner_user_cty.foo", "age", "200"), ), }, { Config: configResourceUserCtyUpdate, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr( - "corner_user.foo", "email", "ford@prefect.co"), + "corner_user_cty.foo", "email", "ford@prefect.co"), resource.TestCheckResourceAttr( - "corner_user.foo", "name", "Ford Prefect II"), + "corner_user_cty.foo", "name", "Ford Prefect II"), resource.TestCheckResourceAttr( - "corner_user.foo", "age", "300"), + "corner_user_cty.foo", "age", "300"), ), }, }, @@ -41,7 +41,7 @@ func testAccResourceUserCty(t *testing.T) resource.TestCase { } const configResourceUserCtyBasic = ` -resource "corner_user" "foo" { +resource "corner_user_cty" "foo" { email = "ford@prefect.co" name = "Ford Prefect" age = 200 @@ -49,7 +49,7 @@ resource "corner_user" "foo" { ` const configResourceUserCtyUpdate = ` -resource "corner_user" "foo" { +resource "corner_user_cty" "foo" { email = "ford@prefect.co" name = "Ford Prefect II" age = 300