Skip to content

Commit d3650ae

Browse files
committed
chore: migrate to terraform-plugin-testing
# Conflicts: # internal/services/block/snapshot_test.go
1 parent 42bab1d commit d3650ae

File tree

287 files changed

+478
-475
lines changed

Some content is hidden

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

287 files changed

+478
-475
lines changed

cmd/tftemplate/datasource_test.go.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package {{.API}}_test
44
import (
55
"testing"
66

7-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
7+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
88
)
99

1010
func TestAccDataSource{{.Resource}}_Basic(t *testing.T) {

cmd/tftemplate/resource_test.go.tmpl

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

8-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
8+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
99
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
1010
"github.com/scaleway/scaleway-sdk-go/scw"
1111
)

cmd/tftemplate/sweep.go.tmpl

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

8-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
8+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
99
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
1010
"github.com/scaleway/scaleway-sdk-go/scw"
1111
)

cmd/tftemplate/sweep_test.go.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package {{.API}}_test
44
import (
55
"fmt"
66

7-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
7+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
88
)
99

1010
func init() {

go.mod

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@ require (
2121
github.com/hashicorp/go-cty v1.5.0
2222
github.com/hashicorp/go-multierror v1.1.1
2323
github.com/hashicorp/go-retryablehttp v0.7.7
24-
github.com/hashicorp/terraform-plugin-go v0.26.0
24+
github.com/hashicorp/terraform-plugin-go v0.27.0
2525
github.com/hashicorp/terraform-plugin-log v0.9.0
2626
github.com/hashicorp/terraform-plugin-mux v0.18.0
27-
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.0
27+
github.com/hashicorp/terraform-plugin-sdk/v2 v2.37.0
28+
github.com/hashicorp/terraform-plugin-testing v1.13.1
2829
github.com/nats-io/jwt/v2 v2.7.4
2930
github.com/nats-io/nats.go v1.38.0
3031
github.com/robfig/cron/v3 v3.0.1
3132
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250512145715-0fc65cc3636b
3233
github.com/stretchr/testify v1.10.0
33-
golang.org/x/crypto v0.37.0
34+
golang.org/x/crypto v0.38.0
3435
gopkg.in/dnaeon/go-vcr.v3 v3.2.0
3536
)
3637

@@ -40,8 +41,8 @@ require (
4041
github.com/Masterminds/goutils v1.1.1 // indirect
4142
github.com/Masterminds/semver/v3 v3.2.0 // indirect
4243
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
43-
github.com/Microsoft/go-winio v0.6.1 // indirect
44-
github.com/ProtonMail/go-crypto v1.1.3 // indirect
44+
github.com/Microsoft/go-winio v0.6.2 // indirect
45+
github.com/ProtonMail/go-crypto v1.1.6 // indirect
4546
github.com/agext/levenshtein v1.2.3 // indirect
4647
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
4748
github.com/armon/go-radix v1.0.0 // indirect
@@ -65,7 +66,7 @@ require (
6566
github.com/bgentry/speakeasy v0.1.0 // indirect
6667
github.com/bmatcuk/doublestar v1.3.4 // indirect
6768
github.com/bmatcuk/doublestar/v4 v4.8.1 // indirect
68-
github.com/cloudflare/circl v1.3.7 // indirect
69+
github.com/cloudflare/circl v1.6.0 // indirect
6970
github.com/containerd/log v0.1.0 // indirect
7071
github.com/davecgh/go-spew v1.1.1 // indirect
7172
github.com/distribution/reference v0.5.0 // indirect
@@ -84,17 +85,17 @@ require (
8485
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
8586
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
8687
github.com/hashicorp/go-hclog v1.6.3 // indirect
87-
github.com/hashicorp/go-plugin v1.6.2 // indirect
88+
github.com/hashicorp/go-plugin v1.6.3 // indirect
8889
github.com/hashicorp/go-uuid v1.0.3 // indirect
8990
github.com/hashicorp/go-version v1.7.0 // indirect
90-
github.com/hashicorp/hc-install v0.9.1 // indirect
91+
github.com/hashicorp/hc-install v0.9.2 // indirect
9192
github.com/hashicorp/hcl v1.0.0 // indirect
9293
github.com/hashicorp/hcl/v2 v2.23.0 // indirect
9394
github.com/hashicorp/logutils v1.0.0 // indirect
94-
github.com/hashicorp/terraform-exec v0.22.0 // indirect
95-
github.com/hashicorp/terraform-json v0.24.0 // indirect
95+
github.com/hashicorp/terraform-exec v0.23.0 // indirect
96+
github.com/hashicorp/terraform-json v0.25.0 // indirect
9697
github.com/hashicorp/terraform-plugin-docs v0.21.0 // indirect
97-
github.com/hashicorp/terraform-registry-address v0.2.4 // indirect
98+
github.com/hashicorp/terraform-registry-address v0.2.5 // indirect
9899
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
99100
github.com/hashicorp/yamux v0.1.1 // indirect
100101
github.com/huandu/xstrings v1.3.3 // indirect
@@ -151,17 +152,17 @@ require (
151152
go.opentelemetry.io/otel/metric v1.35.0 // indirect
152153
go.opentelemetry.io/otel/trace v1.35.0 // indirect
153154
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect
154-
golang.org/x/mod v0.23.0 // indirect
155+
golang.org/x/mod v0.24.0 // indirect
155156
golang.org/x/net v0.39.0 // indirect
156157
golang.org/x/sync v0.14.0 // indirect
157-
golang.org/x/sys v0.32.0 // indirect
158+
golang.org/x/sys v0.33.0 // indirect
158159
golang.org/x/text v0.25.0 // indirect
159160
golang.org/x/time v0.3.0 // indirect
160161
golang.org/x/tools v0.30.0 // indirect
161162
google.golang.org/appengine v1.6.8 // indirect
162163
google.golang.org/genproto/googleapis/api v0.0.0-20250505200425-f936aa4a68b2 // indirect
163164
google.golang.org/genproto/googleapis/rpc v0.0.0-20250505200425-f936aa4a68b2 // indirect
164-
google.golang.org/grpc v1.72.0 // indirect
165+
google.golang.org/grpc v1.72.1 // indirect
165166
google.golang.org/protobuf v1.36.6 // indirect
166167
gopkg.in/ini.v1 v1.66.4 // indirect
167168
gopkg.in/yaml.v2 v2.4.0 // indirect

0 commit comments

Comments
 (0)