Skip to content

Commit

Permalink
sdkv2provider: Fix resource tests for corner_user_cty (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
austinvalle authored Jun 17, 2024
1 parent f0f5d2f commit 6f65870
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions internal/sdkv2provider/resource_user_cty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,38 @@ 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"),
),
},
},
}
}

const configResourceUserCtyBasic = `
resource "corner_user" "foo" {
resource "corner_user_cty" "foo" {
email = "ford@prefect.co"
name = "Ford Prefect"
age = 200
}
`

const configResourceUserCtyUpdate = `
resource "corner_user" "foo" {
resource "corner_user_cty" "foo" {
email = "ford@prefect.co"
name = "Ford Prefect II"
age = 300
Expand Down
16 changes: 8 additions & 8 deletions internal/sdkv2testingprovider/resource_user_cty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,38 @@ 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"),
),
},
},
}
}

const configResourceUserCtyBasic = `
resource "corner_user" "foo" {
resource "corner_user_cty" "foo" {
email = "ford@prefect.co"
name = "Ford Prefect"
age = 200
}
`

const configResourceUserCtyUpdate = `
resource "corner_user" "foo" {
resource "corner_user_cty" "foo" {
email = "ford@prefect.co"
name = "Ford Prefect II"
age = 300
Expand Down

0 comments on commit 6f65870

Please sign in to comment.