Skip to content

Commit

Permalink
Rename more
Browse files Browse the repository at this point in the history
  • Loading branch information
danafallon committed Jul 22, 2024
1 parent e25d663 commit 8a1a129
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion examples/data-sources/scaffolding_example/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
data "scaffolding_example" "example" {
data "artie_example" "example" {
configurable_attribute = "some-value"
}
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
provider "scaffolding" {
provider "artie" {
# example configuration here
}
2 changes: 1 addition & 1 deletion examples/resources/scaffolding_example/resource.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
resource "scaffolding_example" "example" {
resource "artie_example" "example" {
configurable_attribute = "some-value"
}
4 changes: 2 additions & 2 deletions internal/provider/example_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ func TestAccExampleDataSource(t *testing.T) {
{
Config: testAccExampleDataSourceConfig,
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr("data.scaffolding_example.test", "id", "example-id"),
resource.TestCheckResourceAttr("data.artie_example.test", "id", "example-id"),
),
},
},
})
}

const testAccExampleDataSourceConfig = `
data "scaffolding_example" "test" {
data "artie_example" "test" {
configurable_attribute = "example"
}
`
6 changes: 3 additions & 3 deletions internal/provider/example_function_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestExampleFunction_Known(t *testing.T) {
{
Config: `
output "test" {
value = provider::scaffolding::example("testvalue")
value = provider::artie::example("testvalue")
}
`,
Check: resource.ComposeAggregateTestCheckFunc(
Expand All @@ -42,7 +42,7 @@ func TestExampleFunction_Null(t *testing.T) {
{
Config: `
output "test" {
value = provider::scaffolding::example(null)
value = provider::artie::example(null)
}
`,
// The parameter does not enable AllowNullValue
Expand All @@ -66,7 +66,7 @@ func TestExampleFunction_Unknown(t *testing.T) {
}
output "test" {
value = provider::scaffolding::example(terraform_data.test.output)
value = provider::artie::example(terraform_data.test.output)
}
`,
Check: resource.ComposeAggregateTestCheckFunc(
Expand Down
12 changes: 6 additions & 6 deletions internal/provider/example_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ func TestAccExampleResource(t *testing.T) {
{
Config: testAccExampleResourceConfig("one"),
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr("scaffolding_example.test", "configurable_attribute", "one"),
resource.TestCheckResourceAttr("scaffolding_example.test", "defaulted", "example value when not configured"),
resource.TestCheckResourceAttr("scaffolding_example.test", "id", "example-id"),
resource.TestCheckResourceAttr("artie_example.test", "configurable_attribute", "one"),
resource.TestCheckResourceAttr("artie_example.test", "defaulted", "example value when not configured"),
resource.TestCheckResourceAttr("artie_example.test", "id", "example-id"),
),
},
// ImportState testing
{
ResourceName: "scaffolding_example.test",
ResourceName: "artie_example.test",
ImportState: true,
ImportStateVerify: true,
// This is not normally necessary, but is here because this
Expand All @@ -39,7 +39,7 @@ func TestAccExampleResource(t *testing.T) {
{
Config: testAccExampleResourceConfig("two"),
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr("scaffolding_example.test", "configurable_attribute", "two"),
resource.TestCheckResourceAttr("artie_example.test", "configurable_attribute", "two"),
),
},
// Delete testing automatically occurs in TestCase
Expand All @@ -49,7 +49,7 @@ func TestAccExampleResource(t *testing.T) {

func testAccExampleResourceConfig(configurableAttribute string) string {
return fmt.Sprintf(`
resource "scaffolding_example" "test" {
resource "artie_example" "test" {
configurable_attribute = %[1]q
}
`, configurableAttribute)
Expand Down

0 comments on commit 8a1a129

Please sign in to comment.