Skip to content

Commit 441a42a

Browse files
committed
chore(deps): testing migration
Migrate a provider's acceptance tests from SDKv2 to the testing module, `github.com/hashicorp/terraform-plugin-testing`: - `github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest` >>> `github.com/hashicorp/terraform-plugin-testing/helper/acctest` - `github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource` >>> `github.com/hashicorp/terraform-plugin-testing/helper/resource` - `github.com/hashicorp/terraform-plugin-sdk/v2/terraform` >>> `github.com/hashicorp/terraform-plugin-testing/terraform` Areas where the provider uses `terraform.InstanceState` must remain with the original import since it is testing terraform-plugin-sdk functionality. This may be removed later as it's relevent to state migration code from 7+ years ago. Signed-off-by: Ryan Johnson <[email protected]>
1 parent 20c6a92 commit 441a42a

File tree

77 files changed

+166
-159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+166
-159
lines changed

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go 1.23.8
55
require (
66
github.com/davecgh/go-spew v1.1.1
77
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1
8+
github.com/hashicorp/terraform-plugin-testing v1.12.0
89
github.com/mitchellh/copystructure v1.2.0
910
github.com/vmware/govmomi v0.49.0
1011
)
@@ -20,7 +21,7 @@ require (
2021
github.com/hashicorp/errwrap v1.0.0 // indirect
2122
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
2223
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
23-
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
24+
github.com/hashicorp/go-cty v1.5.0 // indirect
2425
github.com/hashicorp/go-hclog v1.6.3 // indirect
2526
github.com/hashicorp/go-multierror v1.1.1 // indirect
2627
github.com/hashicorp/go-plugin v1.6.2 // indirect

go.sum

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuD
5757
github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
5858
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
5959
github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
60-
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUKaCaGKZ/dR2roBXv0vKbSCnssIldfQdI=
61-
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs=
60+
github.com/hashicorp/go-cty v1.5.0 h1:EkQ/v+dDNUqnuVpmS5fPqyY71NXVgT5gf32+57xY8g0=
61+
github.com/hashicorp/go-cty v1.5.0/go.mod h1:lFUCG5kd8exDobgSfyj4ONE/dc822kiYMguVKdHGMLM=
6262
github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k=
6363
github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M=
6464
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
@@ -88,6 +88,8 @@ github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9T
8888
github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow=
8989
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1 h1:WNMsTLkZf/3ydlgsuXePa3jvZFwAJhruxTxP/c1Viuw=
9090
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1/go.mod h1:P6o64QS97plG44iFzSM6rAn6VJIC/Sy9a9IkEtl79K4=
91+
github.com/hashicorp/terraform-plugin-testing v1.12.0 h1:tpIe+T5KBkA1EO6aT704SPLedHUo55RenguLHcaSBdI=
92+
github.com/hashicorp/terraform-plugin-testing v1.12.0/go.mod h1:jbDQUkT9XRjAh1Bvyufq+PEH1Xs4RqIdpOQumSgSXBM=
9193
github.com/hashicorp/terraform-registry-address v0.2.4 h1:JXu/zHB2Ymg/TGVCRu10XqNa4Sh2bWcqCNyKWjnCPJA=
9294
github.com/hashicorp/terraform-registry-address v0.2.4/go.mod h1:tUNYTVyCtU4OIGXXMDp7WNcJ+0W1B4nmstVDgHMjfAU=
9395
github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ=
@@ -206,7 +208,6 @@ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuX
206208
golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y=
207209
golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g=
208210
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
209-
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
210211
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
211212
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
212213
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=

terraform-provider-vsphere

47.5 MB
Binary file not shown.

vsphere/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"strconv"
1111
"testing"
1212

13-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
13+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1414

1515
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
1616
)

vsphere/data_source_vsphere_compute_cluster_host_group_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"os"
99
"testing"
1010

11-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
11+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1212
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1313
)
1414

@@ -40,7 +40,7 @@ variable hosts {
4040
default = [ %q, %q ]
4141
}
4242
43-
%s
43+
%s
4444
4545
data "vsphere_host" "hosts" {
4646
count = %d

vsphere/data_source_vsphere_compute_cluster_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1111

12-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
12+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1313
)
1414

1515
func TestAccDataSourceVSphereComputeCluster_basic(t *testing.T) {

vsphere/data_source_vsphere_content_library_item_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1212

13-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
13+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1414
)
1515

1616
func TestAccDataSourceVSphereContentLibraryItem_basic(t *testing.T) {
@@ -39,7 +39,7 @@ func testAccDataSourceVSphereContentLibraryItemConfig() string {
3939
4040
variable "file" {
4141
type = string
42-
default = "%s"
42+
default = "%s"
4343
}
4444
4545
data "vsphere_datastore" "ds" {

vsphere/data_source_vsphere_content_library_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1212

13-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
13+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1414
)
1515

1616
func TestAccDataSourceVSphereContentLibrary_basic(t *testing.T) {

vsphere/data_source_vsphere_custom_attribute_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"fmt"
88
"testing"
99

10-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
10+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1111
)
1212

1313
func TestAccDataSourceVSphereCustomAttribute_basic(t *testing.T) {

vsphere/data_source_vsphere_datacenter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"regexp"
1010
"testing"
1111

12-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
12+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1313
)
1414

1515
var testAccDataSourceVSphereDatacenterExpectedRegexp = regexp.MustCompile("^datacenter-")

vsphere/data_source_vsphere_datastore_cluster_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1212

13-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
13+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1414
)
1515

1616
func TestAccDataSourceVSphereDatastoreCluster_basic(t *testing.T) {

vsphere/data_source_vsphere_datastore_stats_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"os"
99
"testing"
1010

11-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
11+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1212
)
1313

1414
func TestAccDataSourceVSphereDatastoreStats_basic(t *testing.T) {

vsphere/data_source_vsphere_datastore_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1212

13-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
13+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1414
)
1515

1616
func TestAccDataSourceVSphereDatastore_basic(t *testing.T) {

vsphere/data_source_vsphere_distributed_virtual_switch_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1111

12-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
12+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1313
)
1414

1515
func TestAccDataSourceVSphereDistributedVirtualSwitch_basic(t *testing.T) {

vsphere/data_source_vsphere_dynamic_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"regexp"
99
"testing"
1010

11-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
12-
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
11+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
12+
"github.com/hashicorp/terraform-plugin-testing/terraform"
1313
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1414
)
1515

vsphere/data_source_vsphere_folder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"regexp"
1010
"testing"
1111

12-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
12+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1313
)
1414

1515
var testAccDataSourceVSphereFolderExpectedRegexp = regexp.MustCompile("^group-v")

vsphere/data_source_vsphere_guest_os_customization_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ package vsphere
55

66
import (
77
"fmt"
8-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
9-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
108
"testing"
9+
10+
"github.com/hashicorp/terraform-plugin-testing/helper/acctest"
11+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1112
)
1213

1314
func TestAccDataSourceVSphereGOSC_basic(t *testing.T) {

vsphere/data_source_vsphere_host_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1313

14-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
14+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1515
)
1616

1717
func TestAccDataSourceVSphereHost_basic(t *testing.T) {

vsphere/data_source_vsphere_host_thumbprint_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"regexp"
1010
"testing"
1111

12-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
12+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1313
)
1414

1515
func TestAccDataSourceVSphereHostThumbprint_basic(t *testing.T) {

vsphere/data_source_vsphere_license_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"os"
99
"testing"
1010

11-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
11+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1212
)
1313

1414
func TestAccDataSourceVSphereLicense_basic(t *testing.T) {

vsphere/data_source_vsphere_network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"fmt"
88
"time"
99

10-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
1110
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
1211
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
12+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1313

1414
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/network"
1515

vsphere/data_source_vsphere_network_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1212

13-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
13+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1414
)
1515

1616
func TestAccDataSourceVSphereNetwork_dvsPortgroup(t *testing.T) {

vsphere/data_source_vsphere_resource_pool_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1313

14-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
14+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1515
)
1616

1717
func TestAccDataSourceVSphereResourcePool_basic(t *testing.T) {

vsphere/data_source_vsphere_role_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"fmt"
88
"testing"
99

10-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
10+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1111
)
1212

1313
const NoAccessRoleDescription = "No access"

vsphere/data_source_vsphere_tag_category_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"fmt"
88
"testing"
99

10-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
10+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1111
)
1212

1313
func TestAccDataSourceVSphereTagCategory_basic(t *testing.T) {

vsphere/data_source_vsphere_tag_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"fmt"
88
"testing"
99

10-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
10+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1111
)
1212

1313
func TestAccDataSourceVSphereTag_basic(t *testing.T) {

vsphere/data_source_vsphere_vapp_container_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1313

14-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
14+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1515
)
1616

1717
func TestAccDataSourceVSphereVAppContainer_basic(t *testing.T) {

vsphere/data_source_vsphere_virtual_machine_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1313

14-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
14+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1515
)
1616

1717
func TestAccDataSourceVSphereVirtualMachine_basic(t *testing.T) {

vsphere/data_source_vsphere_vmfs_disks_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010

1111
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1212

13-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
14-
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
13+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
14+
"github.com/hashicorp/terraform-plugin-testing/terraform"
1515
)
1616

1717
func TestAccDataSourceVSphereVmfsDisks_basic(t *testing.T) {

vsphere/helper_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"testing"
1616
"time"
1717

18-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
19-
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
18+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
19+
"github.com/hashicorp/terraform-plugin-testing/terraform"
2020
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/clustercomputeresource"
2121
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/contentlibrary"
2222
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/datacenter"

vsphere/resource_vsphere_compute_cluster_host_group_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1616

1717
"github.com/davecgh/go-spew/spew"
18-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
19-
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
18+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
19+
"github.com/hashicorp/terraform-plugin-testing/terraform"
2020
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/structure"
2121
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/viapi"
2222
"github.com/vmware/govmomi/vim25/types"
@@ -219,7 +219,7 @@ variable hosts {
219219
default = [ %q, %q ]
220220
}
221221
222-
%s
222+
%s
223223
224224
data "vsphere_host" "hosts" {
225225
count = %d

vsphere/resource_vsphere_compute_cluster_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"path"
1111
"testing"
1212

13-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
14-
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
13+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
14+
"github.com/hashicorp/terraform-plugin-testing/terraform"
1515
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/folder"
1616
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/hostsystem"
1717
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"

vsphere/resource_vsphere_compute_cluster_vm_affinity_rule_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1616

1717
"github.com/davecgh/go-spew/spew"
18-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
19-
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
18+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
19+
"github.com/hashicorp/terraform-plugin-testing/terraform"
2020
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/structure"
2121
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/viapi"
2222
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/virtualmachine"

vsphere/resource_vsphere_compute_cluster_vm_anti_affinity_rule_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1616

1717
"github.com/davecgh/go-spew/spew"
18-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
19-
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
18+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
19+
"github.com/hashicorp/terraform-plugin-testing/terraform"
2020
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/structure"
2121
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/viapi"
2222
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/virtualmachine"

vsphere/resource_vsphere_compute_cluster_vm_dependency_rule_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1515

1616
"github.com/davecgh/go-spew/spew"
17-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
18-
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
17+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
18+
"github.com/hashicorp/terraform-plugin-testing/terraform"
1919
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/structure"
2020
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/viapi"
2121
"github.com/vmware/govmomi/vim25/types"

vsphere/resource_vsphere_compute_cluster_vm_group_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/testhelper"
1616

1717
"github.com/davecgh/go-spew/spew"
18-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
19-
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
18+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
19+
"github.com/hashicorp/terraform-plugin-testing/terraform"
2020
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/structure"
2121
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/viapi"
2222
"github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/virtualmachine"

0 commit comments

Comments
 (0)