From 7202882edb18e2c0754897f0cad025fd7fac7117 Mon Sep 17 00:00:00 2001 From: edwardfeng-db Date: Fri, 9 Aug 2024 13:06:41 +0200 Subject: [PATCH] update --- aws/resource_instance_profile.go | 2 +- clusters/clusters_api.go | 2 +- commands/commands.go | 2 +- jobs/resource_job.go | 2 +- libraries/libraries_api_sdk.go | 2 +- mws/resource_mws_networks.go | 2 +- mws/resource_mws_vpc_endpoint.go | 2 +- mws/resource_mws_workspaces.go | 2 +- pipelines/resource_pipeline.go | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/aws/resource_instance_profile.go b/aws/resource_instance_profile.go index 04ba23b0a5..1c2cb21dbb 100644 --- a/aws/resource_instance_profile.go +++ b/aws/resource_instance_profile.go @@ -12,8 +12,8 @@ import ( "github.com/hashicorp/go-cty/cty" "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" ) // InstanceProfileInfo contains the ARN for aws instance profiles diff --git a/clusters/clusters_api.go b/clusters/clusters_api.go index 3434d3fdae..0e309dcba0 100644 --- a/clusters/clusters_api.go +++ b/clusters/clusters_api.go @@ -13,8 +13,8 @@ import ( "github.com/databricks/databricks-sdk-go/service/compute" "github.com/databricks/terraform-provider-databricks/common" - "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" ) // AutoScale is a struct the describes auto scaling for clusters diff --git a/commands/commands.go b/commands/commands.go index 4c14518211..62c248751f 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -9,7 +9,7 @@ import ( "github.com/databricks/terraform-provider-databricks/clusters" "github.com/databricks/terraform-provider-databricks/common" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) // Command is the struct that contains what the 1.2 api returns for the commands api diff --git a/jobs/resource_job.go b/jobs/resource_job.go index 770a42afa5..1ef8d2b918 100644 --- a/jobs/resource_job.go +++ b/jobs/resource_job.go @@ -14,9 +14,9 @@ import ( "github.com/databricks/databricks-sdk-go/service/compute" "github.com/databricks/databricks-sdk-go/service/jobs" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/databricks/databricks-sdk-go/apierr" "github.com/databricks/terraform-provider-databricks/clusters" diff --git a/libraries/libraries_api_sdk.go b/libraries/libraries_api_sdk.go index 09a8531d03..8d2af22af1 100644 --- a/libraries/libraries_api_sdk.go +++ b/libraries/libraries_api_sdk.go @@ -11,7 +11,7 @@ import ( "github.com/databricks/databricks-sdk-go" "github.com/databricks/databricks-sdk-go/apierr" "github.com/databricks/databricks-sdk-go/service/compute" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) // Given a compute.Wait struct, returns library statuses based on the input parameter. diff --git a/mws/resource_mws_networks.go b/mws/resource_mws_networks.go index 56cb98bb98..757f132ef4 100644 --- a/mws/resource_mws_networks.go +++ b/mws/resource_mws_networks.go @@ -9,9 +9,9 @@ import ( "github.com/databricks/databricks-sdk-go/apierr" "github.com/databricks/terraform-provider-databricks/common" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) // NewNetworksAPI creates MWSNetworksAPI instance from provider meta diff --git a/mws/resource_mws_vpc_endpoint.go b/mws/resource_mws_vpc_endpoint.go index fd10d8cfaf..5160b540c7 100644 --- a/mws/resource_mws_vpc_endpoint.go +++ b/mws/resource_mws_vpc_endpoint.go @@ -8,8 +8,8 @@ import ( "github.com/databricks/terraform-provider-databricks/common" - "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" ) // NewVPCEndpointAPI creates VPCEndpointAPI instance from provider meta diff --git a/mws/resource_mws_workspaces.go b/mws/resource_mws_workspaces.go index 73c5d40aa4..1d59b2950d 100644 --- a/mws/resource_mws_workspaces.go +++ b/mws/resource_mws_workspaces.go @@ -19,8 +19,8 @@ import ( "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/terraform-plugin-log/tflog" - "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" ) // DefaultProvisionTimeout is the amount of minutes terraform will wait diff --git a/pipelines/resource_pipeline.go b/pipelines/resource_pipeline.go index 457bf95744..cfa9322750 100644 --- a/pipelines/resource_pipeline.go +++ b/pipelines/resource_pipeline.go @@ -7,9 +7,9 @@ import ( "regexp" "time" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/databricks/databricks-sdk-go/apierr" "github.com/databricks/databricks-sdk-go/marshal"