diff --git a/Makefile b/Makefile index 407f7830f..af8f01ead 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ BUILD_DIR ?= $(CURDIR)/out GO_OS ?= $(shell go env GOOS) GO_ARCH ?= $(shell go env GOARCH) -GO_PACKAGES := $(shell go list ./... | grep -vE "vendor|tools") +GO_PACKAGES := $(shell go list ./... | grep -vE "vendor|tools|sweep") GO_LINT_SCRIPT ?= $(CURDIR)/scripts/golangci-lint.sh GO_TEST_COVERAGE_FILE ?= "coverage.out" diff --git a/go.mod b/go.mod index 6fb449578..f9f8baf3e 100644 --- a/go.mod +++ b/go.mod @@ -8,6 +8,7 @@ require ( github.com/hashicorp/go-multierror v1.1.1 github.com/hashicorp/terraform-plugin-docs v0.14.1 github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1 + github.com/hashicorp/terraform-plugin-testing v1.2.0 github.com/stretchr/testify v1.8.2 gopkg.in/dnaeon/go-vcr.v3 v3.1.2 ) @@ -29,7 +30,7 @@ require ( github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-checkpoint v0.5.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect - github.com/hashicorp/go-hclog v1.4.0 // indirect + github.com/hashicorp/go-hclog v1.5.0 // indirect github.com/hashicorp/go-plugin v1.4.8 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect github.com/hashicorp/go-version v1.6.0 // indirect diff --git a/go.sum b/go.sum index 007239792..c4d18e194 100644 --- a/go.sum +++ b/go.sum @@ -119,8 +119,8 @@ github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9n github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUKaCaGKZ/dR2roBXv0vKbSCnssIldfQdI= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs= -github.com/hashicorp/go-hclog v1.4.0 h1:ctuWFGrhFha8BnnzxqeRGidlEcQkDyL5u8J8t5eA11I= -github.com/hashicorp/go-hclog v1.4.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= +github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= @@ -150,6 +150,8 @@ github.com/hashicorp/terraform-plugin-log v0.8.0 h1:pX2VQ/TGKu+UU1rCay0OlzosNKe4 github.com/hashicorp/terraform-plugin-log v0.8.0/go.mod h1:1myFrhVsBLeylQzYYEV17VVjtG8oYPRFdaZs7xdW2xs= github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1 h1:G9WAfb8LHeCxu7Ae8nc1agZlQOSCUWsb610iAogBhCs= github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1/go.mod h1:xcOSYlRVdPLmDUoqPhO9fiO/YCN/l6MGYeTzGt5jgkQ= +github.com/hashicorp/terraform-plugin-testing v1.2.0 h1:pASRAe6BOZFO4xSGQr9WzitXit0nrQAYDk8ziuRfn9E= +github.com/hashicorp/terraform-plugin-testing v1.2.0/go.mod h1:+8bp3O7xUb1UtBcdknrGdVRIuTw4b62TYSIgXHqlyew= github.com/hashicorp/terraform-registry-address v0.1.0 h1:W6JkV9wbum+m516rCl5/NjKxCyTVaaUBbzYcMzBDO3U= github.com/hashicorp/terraform-registry-address v0.1.0/go.mod h1:EnyO2jYO6j29DTHbJcm00E5nQTFeTtyZH3H5ycydQ5A= github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 h1:HKLsbzeOsfXmKNpr3GiT18XAblV0BjCbzL8KQAMZGa0= diff --git a/internal/acctest/acctest.go b/internal/acctest/acctest.go index 1c8172321..33f0b4f6b 100644 --- a/internal/acctest/acctest.go +++ b/internal/acctest/acctest.go @@ -7,8 +7,8 @@ import ( "github.com/auth0/go-auth0/management" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "gopkg.in/dnaeon/go-vcr.v3/recorder" "github.com/auth0/terraform-provider-auth0/internal/provider" diff --git a/internal/acctest/sweep/clients.go b/internal/acctest/sweep/clients.go index c6c7b72ea..1ec95804f 100644 --- a/internal/acctest/sweep/clients.go +++ b/internal/acctest/sweep/clients.go @@ -6,7 +6,7 @@ import ( "github.com/auth0/go-auth0/management" "github.com/hashicorp/go-multierror" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) // Clients will run a test sweeper to remove all Auth0 Clients created through tests. diff --git a/internal/acctest/sweep/connections.go b/internal/acctest/sweep/connections.go index 214ddaccc..57f3b4166 100644 --- a/internal/acctest/sweep/connections.go +++ b/internal/acctest/sweep/connections.go @@ -6,7 +6,7 @@ import ( "github.com/auth0/go-auth0/management" "github.com/hashicorp/go-multierror" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) // Connections will run a test sweeper to remove all Auth0 Connections created through tests. diff --git a/internal/acctest/sweep/custom_domains.go b/internal/acctest/sweep/custom_domains.go index 2f6c6f884..9fb4528d5 100644 --- a/internal/acctest/sweep/custom_domains.go +++ b/internal/acctest/sweep/custom_domains.go @@ -5,7 +5,7 @@ import ( "strings" "github.com/hashicorp/go-multierror" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) // CustomDomains will run a test sweeper to remove all Auth0 Custom Domains created through tests. diff --git a/internal/acctest/sweep/email.go b/internal/acctest/sweep/email.go index a06f52907..97b516acb 100644 --- a/internal/acctest/sweep/email.go +++ b/internal/acctest/sweep/email.go @@ -3,7 +3,7 @@ package sweep import ( "github.com/auth0/go-auth0" "github.com/auth0/go-auth0/management" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) // Email will run a test sweeper to remove the Auth0 Email Provider created through tests. diff --git a/internal/acctest/sweep/log_streams.go b/internal/acctest/sweep/log_streams.go index ac0d54eef..3b933fb31 100644 --- a/internal/acctest/sweep/log_streams.go +++ b/internal/acctest/sweep/log_streams.go @@ -5,7 +5,7 @@ import ( "strings" "github.com/hashicorp/go-multierror" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) // LogStreams will run a test sweeper to remove all Auth0 Log Streams created through tests. diff --git a/internal/acctest/sweep/organizations.go b/internal/acctest/sweep/organizations.go index 418e77e28..25726d444 100644 --- a/internal/acctest/sweep/organizations.go +++ b/internal/acctest/sweep/organizations.go @@ -6,7 +6,7 @@ import ( "github.com/auth0/go-auth0/management" "github.com/hashicorp/go-multierror" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) // Organizations will run a test sweeper to remove all Auth0 Organizations created through tests. diff --git a/internal/acctest/sweep/resource_servers.go b/internal/acctest/sweep/resource_servers.go index 5dae8f1db..a3558ad97 100644 --- a/internal/acctest/sweep/resource_servers.go +++ b/internal/acctest/sweep/resource_servers.go @@ -5,7 +5,7 @@ import ( "strings" "github.com/auth0/go-auth0/management" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) // ResourceServers will run a test sweeper to remove all Auth0 Resource Servers created through tests. diff --git a/internal/acctest/sweep/roles.go b/internal/acctest/sweep/roles.go index 48d6c1d89..5da2567db 100644 --- a/internal/acctest/sweep/roles.go +++ b/internal/acctest/sweep/roles.go @@ -6,7 +6,7 @@ import ( "github.com/auth0/go-auth0/management" "github.com/hashicorp/go-multierror" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) // Roles will run a test sweeper to remove all Auth0 Roles created through tests. diff --git a/internal/acctest/sweep/rule_configs.go b/internal/acctest/sweep/rule_configs.go index 65fd66693..c0e17ffd9 100644 --- a/internal/acctest/sweep/rule_configs.go +++ b/internal/acctest/sweep/rule_configs.go @@ -5,7 +5,7 @@ import ( "strings" "github.com/hashicorp/go-multierror" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) // RuleConfigs will run a test sweeper to remove all Auth0 Rule Configs created through tests. diff --git a/internal/acctest/sweep/sweep_test.go b/internal/acctest/sweep/sweep_test.go index f546d99c0..4ba5adfd8 100644 --- a/internal/acctest/sweep/sweep_test.go +++ b/internal/acctest/sweep/sweep_test.go @@ -3,7 +3,7 @@ package sweep import ( "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) func init() { diff --git a/internal/acctest/sweep/users.go b/internal/acctest/sweep/users.go index e4f17429c..148c83199 100644 --- a/internal/acctest/sweep/users.go +++ b/internal/acctest/sweep/users.go @@ -5,7 +5,7 @@ import ( "github.com/auth0/go-auth0/management" "github.com/hashicorp/go-multierror" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) // Users will run a test sweeper to remove all Auth0 Users created through tests. diff --git a/internal/auth0/action/resource_test.go b/internal/auth0/action/resource_test.go index 4f5c27569..9c9c624ba 100644 --- a/internal/auth0/action/resource_test.go +++ b/internal/auth0/action/resource_test.go @@ -5,7 +5,7 @@ import ( "regexp" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/action/resource_trigger_binding_test.go b/internal/auth0/action/resource_trigger_binding_test.go index 1834c368b..96f72e695 100644 --- a/internal/auth0/action/resource_trigger_binding_test.go +++ b/internal/auth0/action/resource_trigger_binding_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/attackprotection/data_source_test.go b/internal/auth0/attackprotection/data_source_test.go index ea49ccd6c..11cac8234 100644 --- a/internal/auth0/attackprotection/data_source_test.go +++ b/internal/auth0/attackprotection/data_source_test.go @@ -3,7 +3,7 @@ package attackprotection_test import ( "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/attackprotection/resource_test.go b/internal/auth0/attackprotection/resource_test.go index 98cda2e37..1dcaeaa6c 100644 --- a/internal/auth0/attackprotection/resource_test.go +++ b/internal/auth0/attackprotection/resource_test.go @@ -3,7 +3,7 @@ package attackprotection_test import ( "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/branding/data_source_test.go b/internal/auth0/branding/data_source_test.go index fc2e0e54d..a85071525 100644 --- a/internal/auth0/branding/data_source_test.go +++ b/internal/auth0/branding/data_source_test.go @@ -3,7 +3,7 @@ package branding_test import ( "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/branding/data_source_theme_test.go b/internal/auth0/branding/data_source_theme_test.go index 1eb219a12..719ecc8e3 100644 --- a/internal/auth0/branding/data_source_theme_test.go +++ b/internal/auth0/branding/data_source_theme_test.go @@ -3,7 +3,7 @@ package branding_test import ( "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/branding/resource_test.go b/internal/auth0/branding/resource_test.go index ca06dceb5..50b8b3c12 100644 --- a/internal/auth0/branding/resource_test.go +++ b/internal/auth0/branding/resource_test.go @@ -4,7 +4,7 @@ import ( "regexp" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/branding/resource_theme_test.go b/internal/auth0/branding/resource_theme_test.go index 2ad3ea93b..6d78fe9d7 100644 --- a/internal/auth0/branding/resource_theme_test.go +++ b/internal/auth0/branding/resource_theme_test.go @@ -3,7 +3,7 @@ package branding_test import ( "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/client/data_source_test.go b/internal/auth0/client/data_source_test.go index 148e1b484..38fb070ca 100644 --- a/internal/auth0/client/data_source_test.go +++ b/internal/auth0/client/data_source_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/client/global_data_source_test.go b/internal/auth0/client/global_data_source_test.go index 96a48e68d..b695bb5e5 100644 --- a/internal/auth0/client/global_data_source_test.go +++ b/internal/auth0/client/global_data_source_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/client/global_resource_test.go b/internal/auth0/client/global_resource_test.go index fb78a7352..fb617c478 100644 --- a/internal/auth0/client/global_resource_test.go +++ b/internal/auth0/client/global_resource_test.go @@ -4,8 +4,8 @@ import ( "errors" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/terraform" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/client/resource_grant_test.go b/internal/auth0/client/resource_grant_test.go index 7854429aa..338c64556 100644 --- a/internal/auth0/client/resource_grant_test.go +++ b/internal/auth0/client/resource_grant_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/client/resource_test.go b/internal/auth0/client/resource_test.go index cf4080e60..eb1780b63 100644 --- a/internal/auth0/client/resource_test.go +++ b/internal/auth0/client/resource_test.go @@ -5,7 +5,7 @@ import ( "regexp" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/connection/data_source_test.go b/internal/auth0/connection/data_source_test.go index 86c506698..ee93790e1 100644 --- a/internal/auth0/connection/data_source_test.go +++ b/internal/auth0/connection/data_source_test.go @@ -5,7 +5,7 @@ import ( "regexp" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/connection/resource_client_test.go b/internal/auth0/connection/resource_client_test.go index 2bc330b81..4464aee85 100644 --- a/internal/auth0/connection/resource_client_test.go +++ b/internal/auth0/connection/resource_client_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/connection/resource_test.go b/internal/auth0/connection/resource_test.go index 707538286..e25d6083a 100644 --- a/internal/auth0/connection/resource_test.go +++ b/internal/auth0/connection/resource_test.go @@ -6,7 +6,7 @@ import ( "regexp" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/customdomain/data_source_test.go b/internal/auth0/customdomain/data_source_test.go index 0b3387a32..6a5347f89 100644 --- a/internal/auth0/customdomain/data_source_test.go +++ b/internal/auth0/customdomain/data_source_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/customdomain/resource_test.go b/internal/auth0/customdomain/resource_test.go index 6a11e792d..9c0cc5218 100644 --- a/internal/auth0/customdomain/resource_test.go +++ b/internal/auth0/customdomain/resource_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/customdomain/resource_verification_test.go b/internal/auth0/customdomain/resource_verification_test.go index c15d19070..4d6096b65 100644 --- a/internal/auth0/customdomain/resource_verification_test.go +++ b/internal/auth0/customdomain/resource_verification_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/email/resource_template_test.go b/internal/auth0/email/resource_template_test.go index 5d76eee0b..ab5fe754a 100644 --- a/internal/auth0/email/resource_template_test.go +++ b/internal/auth0/email/resource_template_test.go @@ -3,7 +3,7 @@ package email_test import ( "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/email/resource_test.go b/internal/auth0/email/resource_test.go index 1f66da694..f612bdd1b 100644 --- a/internal/auth0/email/resource_test.go +++ b/internal/auth0/email/resource_test.go @@ -3,7 +3,7 @@ package email_test import ( "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/guardian/resource_test.go b/internal/auth0/guardian/resource_test.go index 9b0676ac6..d29580bfc 100644 --- a/internal/auth0/guardian/resource_test.go +++ b/internal/auth0/guardian/resource_test.go @@ -3,7 +3,7 @@ package guardian_test import ( "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/hook/resource_test.go b/internal/auth0/hook/resource_test.go index 86ac562ef..ef91b3bec 100644 --- a/internal/auth0/hook/resource_test.go +++ b/internal/auth0/hook/resource_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/logstream/resource_test.go b/internal/auth0/logstream/resource_test.go index 84c390a88..e5bc28d26 100644 --- a/internal/auth0/logstream/resource_test.go +++ b/internal/auth0/logstream/resource_test.go @@ -6,7 +6,7 @@ import ( "regexp" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/organization/data_source_test.go b/internal/auth0/organization/data_source_test.go index 85fea848d..9faed3dd5 100644 --- a/internal/auth0/organization/data_source_test.go +++ b/internal/auth0/organization/data_source_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/organization/resource_connection_test.go b/internal/auth0/organization/resource_connection_test.go index aa29a8404..6a848ec98 100644 --- a/internal/auth0/organization/resource_connection_test.go +++ b/internal/auth0/organization/resource_connection_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/organization/resource_member_test.go b/internal/auth0/organization/resource_member_test.go index 25071431f..8e0115b13 100644 --- a/internal/auth0/organization/resource_member_test.go +++ b/internal/auth0/organization/resource_member_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/organization/resource_test.go b/internal/auth0/organization/resource_test.go index c2bd87cbd..0aeed653c 100644 --- a/internal/auth0/organization/resource_test.go +++ b/internal/auth0/organization/resource_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/prompt/resource_custom_text_test.go b/internal/auth0/prompt/resource_custom_text_test.go index 9ce9679af..039a8b17b 100644 --- a/internal/auth0/prompt/resource_custom_text_test.go +++ b/internal/auth0/prompt/resource_custom_text_test.go @@ -3,7 +3,7 @@ package prompt_test import ( "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/prompt/resource_test.go b/internal/auth0/prompt/resource_test.go index 634c48124..716c4f438 100644 --- a/internal/auth0/prompt/resource_test.go +++ b/internal/auth0/prompt/resource_test.go @@ -3,7 +3,7 @@ package prompt_test import ( "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/resourceserver/data_source_test.go b/internal/auth0/resourceserver/data_source_test.go index 7b3b5fd71..807c44c05 100644 --- a/internal/auth0/resourceserver/data_source_test.go +++ b/internal/auth0/resourceserver/data_source_test.go @@ -5,7 +5,7 @@ import ( "regexp" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/resourceserver/resource_test.go b/internal/auth0/resourceserver/resource_test.go index e499bdaaa..c5eb667d0 100644 --- a/internal/auth0/resourceserver/resource_test.go +++ b/internal/auth0/resourceserver/resource_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/role/data_source_test.go b/internal/auth0/role/data_source_test.go index bc020c9b1..1c3f6256a 100644 --- a/internal/auth0/role/data_source_test.go +++ b/internal/auth0/role/data_source_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/role/resource_test.go b/internal/auth0/role/resource_test.go index 8f6295ef2..fc601d3b2 100644 --- a/internal/auth0/role/resource_test.go +++ b/internal/auth0/role/resource_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/rule/resource_config_test.go b/internal/auth0/rule/resource_config_test.go index f4557e8c4..342d80d8e 100644 --- a/internal/auth0/rule/resource_config_test.go +++ b/internal/auth0/rule/resource_config_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/rule/resource_test.go b/internal/auth0/rule/resource_test.go index b1f3da96b..de22a812c 100644 --- a/internal/auth0/rule/resource_test.go +++ b/internal/auth0/rule/resource_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/tenant/data_source_test.go b/internal/auth0/tenant/data_source_test.go index c8cfdac1c..ccce5b719 100644 --- a/internal/auth0/tenant/data_source_test.go +++ b/internal/auth0/tenant/data_source_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/tenant/resource_test.go b/internal/auth0/tenant/resource_test.go index 7003f4972..e2d705e7d 100644 --- a/internal/auth0/tenant/resource_test.go +++ b/internal/auth0/tenant/resource_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/user/data_source_test.go b/internal/auth0/user/data_source_test.go index c45d01f1a..e35e353ed 100644 --- a/internal/auth0/user/data_source_test.go +++ b/internal/auth0/user/data_source_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/auth0/user/resource_test.go b/internal/auth0/user/resource_test.go index c907c864e..34c99814f 100644 --- a/internal/auth0/user/resource_test.go +++ b/internal/auth0/user/resource_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/auth0/terraform-provider-auth0/internal/acctest" ) diff --git a/internal/provider/provider_test.go b/internal/provider/provider_test.go index 49f692cc5..04aacf5c9 100644 --- a/internal/provider/provider_test.go +++ b/internal/provider/provider_test.go @@ -7,8 +7,8 @@ import ( "testing" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) func TestMain(m *testing.M) {