Skip to content

Commit 7a8c758

Browse files
committed
chore: migrate to hashicorp/terraform-plugin-testing
Migrate a provider's acceptance tests from the legacy 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` Signed-off-by: Ryan Johnson <[email protected]>
1 parent 70ec536 commit 7a8c758

File tree

79 files changed

+247
-243
lines changed

Some content is hidden

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

79 files changed

+247
-243
lines changed

go.mod

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ go 1.23.2
55
require (
66
github.com/go-openapi/runtime v0.28.0
77
github.com/go-openapi/strfmt v0.23.0
8-
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
8+
github.com/hashicorp/go-cty v1.5.0
99
github.com/hashicorp/go-version v1.7.0
10-
github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0
10+
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1
11+
github.com/hashicorp/terraform-plugin-testing v1.12.0
1112
github.com/vmware/vra-sdk-go v0.6.2
1213
)
1314

1415
require (
15-
github.com/ProtonMail/go-crypto v1.1.0-alpha.5-proton // indirect
16+
github.com/ProtonMail/go-crypto v1.1.3 // indirect
1617
github.com/agext/levenshtein v1.2.3 // indirect
1718
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
1819
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
@@ -29,7 +30,7 @@ require (
2930
github.com/go-openapi/swag v0.23.0 // indirect
3031
github.com/go-openapi/validate v0.24.0 // indirect
3132
github.com/golang/protobuf v1.5.4 // indirect
32-
github.com/google/go-cmp v0.6.0 // indirect
33+
github.com/google/go-cmp v0.7.0 // indirect
3334
github.com/google/uuid v1.6.0 // indirect
3435
github.com/hashicorp/errwrap v1.1.0 // indirect
3536
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
@@ -39,14 +40,14 @@ require (
3940
github.com/hashicorp/go-plugin v1.6.2 // indirect
4041
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
4142
github.com/hashicorp/go-uuid v1.0.3 // indirect
42-
github.com/hashicorp/hc-install v0.9.0 // indirect
43-
github.com/hashicorp/hcl/v2 v2.22.0 // indirect
43+
github.com/hashicorp/hc-install v0.9.1 // indirect
44+
github.com/hashicorp/hcl/v2 v2.23.0 // indirect
4445
github.com/hashicorp/logutils v1.0.0 // indirect
45-
github.com/hashicorp/terraform-exec v0.21.0 // indirect
46-
github.com/hashicorp/terraform-json v0.23.0 // indirect
47-
github.com/hashicorp/terraform-plugin-go v0.25.0 // indirect
46+
github.com/hashicorp/terraform-exec v0.22.0 // indirect
47+
github.com/hashicorp/terraform-json v0.24.0 // indirect
48+
github.com/hashicorp/terraform-plugin-go v0.26.0 // indirect
4849
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
49-
github.com/hashicorp/terraform-registry-address v0.2.3 // indirect
50+
github.com/hashicorp/terraform-registry-address v0.2.4 // indirect
5051
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
5152
github.com/hashicorp/yamux v0.1.2 // indirect
5253
github.com/josharian/intern v1.0.0 // indirect
@@ -64,21 +65,21 @@ require (
6465
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
6566
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
6667
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
67-
github.com/zclconf/go-cty v1.15.0 // indirect
68+
github.com/zclconf/go-cty v1.16.2 // indirect
6869
go.mongodb.org/mongo-driver v1.16.1 // indirect
69-
go.opentelemetry.io/otel v1.29.0 // indirect
70-
go.opentelemetry.io/otel/metric v1.29.0 // indirect
71-
go.opentelemetry.io/otel/trace v1.29.0 // indirect
70+
go.opentelemetry.io/otel v1.31.0 // indirect
71+
go.opentelemetry.io/otel/metric v1.31.0 // indirect
72+
go.opentelemetry.io/otel/trace v1.31.0 // indirect
7273
golang.org/x/crypto v0.36.0 // indirect
73-
golang.org/x/mod v0.21.0 // indirect
74+
golang.org/x/mod v0.22.0 // indirect
7475
golang.org/x/net v0.38.0 // indirect
7576
golang.org/x/sync v0.12.0 // indirect
7677
golang.org/x/sys v0.31.0 // indirect
7778
golang.org/x/text v0.23.0 // indirect
7879
golang.org/x/tools v0.25.0 // indirect
7980
google.golang.org/appengine v1.6.8 // indirect
80-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
81-
google.golang.org/grpc v1.67.1 // indirect
82-
google.golang.org/protobuf v1.35.1 // indirect
81+
google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect
82+
google.golang.org/grpc v1.69.4 // indirect
83+
google.golang.org/protobuf v1.36.3 // indirect
8384
gopkg.in/yaml.v3 v3.0.1 // indirect
8485
)

go.sum

Lines changed: 50 additions & 47 deletions
Large diffs are not rendered by default.

vra/core_acceptance_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"strconv"
1111
"testing"
1212

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

1818
func TestAccVRAWordpressInfrastructure_Basic(t *testing.T) {

vra/data_source_block_device_snapshots_test.go

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

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

1616
func TestAccBlockDeviceSnapshotRead(t *testing.T) {

vra/data_source_block_device_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
package vra
66

77
import (
8-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
9-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
8+
"github.com/hashicorp/terraform-plugin-testing/helper/acctest"
9+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1010

1111
"regexp"
1212
"testing"

vra/data_source_blueprint_test.go

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

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

1414
"testing"
1515
)

vra/data_source_blueprint_version_test.go

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

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

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

1515
"testing"
1616
)

vra/data_source_catalog_item_entitlement_test.go

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

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

1515
func TestAccDataSourceVRACatalogItemEntitlement_Valid(t *testing.T) {

vra/data_source_catalog_item_test.go

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

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

1212
"os"
1313
"regexp"

vra/data_source_catalog_source_blueprint_test.go

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

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

1414
"testing"
1515
)

vra/data_source_catalog_source_entitlement_test.go

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

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

1515
func TestAccDataSourceVRACatalogSourceEntitlement_Valid(t *testing.T) {

vra/data_source_cloud_account_aws_test.go

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

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

1616
func TestAccDataSourceVRACloudAccountAWS(t *testing.T) {

vra/data_source_cloud_account_azure_test.go

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

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

1717
func TestAccDataSourceVRACloudAccountAzure(t *testing.T) {

vra/data_source_cloud_account_gcp_test.go

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

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

1717
func TestAccDataSourceVRACloudAccountGCP(t *testing.T) {

vra/data_source_cloud_account_nsxt_test.go

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

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

1717
func TestAccDataSourceVRACloudAccountNSXT(t *testing.T) {

vra/data_source_cloud_account_nsxv_test.go

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

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

1717
func TestAccDataSourceVRACloudAccountNSXV(t *testing.T) {

vra/data_source_cloud_account_vmc_test.go

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

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

1717
func TestAccDataSourceVRACloudAccountVMC(t *testing.T) {

vra/data_source_cloud_account_vsphere_test.go

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

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

1717
func TestAccDataSourceVRACloudAccountVsphere(t *testing.T) {

vra/data_source_content_sharing_policy_test.go

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

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

1414
"testing"
1515
)

vra/data_source_data_collector_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"regexp"
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
)
1616

1717
func TestAccVRADataCollector_Basic(t *testing.T) {

vra/data_source_deployment_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ package vra
77
import (
88
"fmt"
99

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

1313
"regexp"
1414
"testing"

vra/data_source_fabric_compute_test.go

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

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

1616
func TestAccFabricCompute_Basic(t *testing.T) {

vra/data_source_fabric_datastore_vsphere_test.go

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

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

1616
func TestAccFabricDatastoreVsphere_Basic(t *testing.T) {

vra/data_source_fabric_network_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"regexp"
1111
"testing"
1212

13-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
14-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
15-
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
13+
"github.com/hashicorp/terraform-plugin-testing/helper/acctest"
14+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
15+
"github.com/hashicorp/terraform-plugin-testing/terraform"
1616
"github.com/vmware/vra-sdk-go/pkg/client/cloud_account"
1717
)
1818

vra/data_source_fabric_storage_account_azure_test.go

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

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

1616
func TestAccDataSourceVRAFabricStorageAccountAzure(t *testing.T) {

vra/data_source_fabric_storage_policy_vsphere_test.go

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

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

1616
func TestAccFabricStoragePolicyVsphere_Basic(t *testing.T) {

vra/data_source_image_profile_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
package vra
66

77
import (
8-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
9-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
8+
"github.com/hashicorp/terraform-plugin-testing/helper/acctest"
9+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1010

1111
"regexp"
1212
"testing"

vra/data_source_image_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"regexp"
1111
"testing"
1212

13-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
14-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
15-
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
13+
"github.com/hashicorp/terraform-plugin-testing/helper/acctest"
14+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
15+
"github.com/hashicorp/terraform-plugin-testing/terraform"
1616
"github.com/vmware/vra-sdk-go/pkg/client/cloud_account"
1717
)
1818

vra/data_source_network_domain_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"regexp"
1111
"testing"
1212

13-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
14-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
15-
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
13+
"github.com/hashicorp/terraform-plugin-testing/helper/acctest"
14+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
15+
"github.com/hashicorp/terraform-plugin-testing/terraform"
1616
"github.com/vmware/vra-sdk-go/pkg/client/cloud_account"
1717
)
1818

vra/data_source_network_profile_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
package vra
66

77
import (
8-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
9-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
8+
"github.com/hashicorp/terraform-plugin-testing/helper/acctest"
9+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1010

1111
"regexp"
1212
"testing"

vra/data_source_network_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/acctest"
12-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
11+
"github.com/hashicorp/terraform-plugin-testing/helper/acctest"
12+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1313
)
1414

1515
func TestAccDataSourceVRANetwork(t *testing.T) {

0 commit comments

Comments
 (0)