diff --git a/Makefile b/Makefile index a479a68..805398f 100644 --- a/Makefile +++ b/Makefile @@ -12,8 +12,8 @@ endif VERSION=$(shell cat ./version) # Change DUMMY_PROVIDER below to reflect the name of the service under development. The # value of this variable is used in LOCAL_LOCATION, and is also used in the -DUMMY_PROVIDER=hpe -LOCAL_LOCATION=~/.local/share/terraform/plugins/registry.terraform.io/$(DUMMY_PROVIDER)/hpegl/$(VERSION)/linux_$(GOARCH) +DUMMY_PROVIDER=metal +LOCAL_LOCATION=~/.local/share/terraform/plugins/terraform.example.com/$(DUMMY_PROVIDER)/hpegl/$(VERSION)/linux_$(GOARCH) # Stuff that needs to be installed globally (not in vendor) DEPEND= diff --git a/internal/acceptance_test/resource_host_test.go b/internal/acceptance_test/resource_host_test.go index 120cffa..3f477cb 100644 --- a/internal/acceptance_test/resource_host_test.go +++ b/internal/acceptance_test/resource_host_test.go @@ -5,7 +5,6 @@ package acceptance_test import ( "fmt" "net/http" - "os" "strconv" "testing" "time" @@ -25,7 +24,6 @@ const ( ) func TestAccResourceHost_Async(t *testing.T) { - os.Setenv("TF_ACC", "true") resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -46,7 +44,6 @@ func TestAccResourceHost_Async(t *testing.T) { } func TestAccResourceHost_Sync(t *testing.T) { - os.Setenv("TF_ACC", "true") resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/internal/acceptance_test/resource_ssh_key_test.go b/internal/acceptance_test/resource_ssh_key_test.go index 4520795..585c341 100644 --- a/internal/acceptance_test/resource_ssh_key_test.go +++ b/internal/acceptance_test/resource_ssh_key_test.go @@ -4,7 +4,6 @@ package acceptance_test import ( "fmt" - "os" "testing" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" @@ -24,8 +23,6 @@ func metalSSHKeyConfigBasic(name, publicSSHKey string) string { } func TestAccResourceSSHKey_Basic(t *testing.T) { - os.Setenv("TF_ACC", "true") - key := rest.SshKey{} keyName := "keySShNameTest"