diff --git a/examples/data-sources/scaffolding_example/data-source.tf b/examples/data-sources/scaffolding_example/data-source.tf index a852489..d6acf5d 100644 --- a/examples/data-sources/scaffolding_example/data-source.tf +++ b/examples/data-sources/scaffolding_example/data-source.tf @@ -1,3 +1,3 @@ -data "scaffolding_example" "example" { +data "artie_example" "example" { configurable_attribute = "some-value" } diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index 942db45..ce0b9ab 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -1,3 +1,3 @@ -provider "scaffolding" { +provider "artie" { # example configuration here } diff --git a/examples/resources/scaffolding_example/resource.tf b/examples/resources/scaffolding_example/resource.tf index 9ae3f57..926bfa5 100644 --- a/examples/resources/scaffolding_example/resource.tf +++ b/examples/resources/scaffolding_example/resource.tf @@ -1,3 +1,3 @@ -resource "scaffolding_example" "example" { +resource "artie_example" "example" { configurable_attribute = "some-value" } diff --git a/internal/provider/example_data_source_test.go b/internal/provider/example_data_source_test.go index 6f9aa7d..deebb1f 100644 --- a/internal/provider/example_data_source_test.go +++ b/internal/provider/example_data_source_test.go @@ -18,7 +18,7 @@ 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"), ), }, }, @@ -26,7 +26,7 @@ func TestAccExampleDataSource(t *testing.T) { } const testAccExampleDataSourceConfig = ` -data "scaffolding_example" "test" { +data "artie_example" "test" { configurable_attribute = "example" } ` diff --git a/internal/provider/example_function_test.go b/internal/provider/example_function_test.go index f7b5bdd..ceb8d30 100644 --- a/internal/provider/example_function_test.go +++ b/internal/provider/example_function_test.go @@ -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( @@ -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 @@ -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( diff --git a/internal/provider/example_resource_test.go b/internal/provider/example_resource_test.go index c5464d0..b18a087 100644 --- a/internal/provider/example_resource_test.go +++ b/internal/provider/example_resource_test.go @@ -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 @@ -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 @@ -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)