Skip to content

Commit a451b64

Browse files
authored
Merge pull request #406 from ovh/refactoring_sdk_go
terraform-plugin-sdk + go versions bump
2 parents 360929b + ef7f0f5 commit a451b64

File tree

1,558 files changed

+60427
-254404
lines changed

Some content is hidden

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

1,558 files changed

+60427
-254404
lines changed

.cds/terraform-provider-ovh-check.pip.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
make test
1616
make vet
1717
requirements:
18-
- model: shared.infra/Go-official-1.13-buster
18+
- model: shared.infra/Go-official-1.19-bullseye

.cds/terraform-provider-ovh-testacc.pip.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
TF_ACC=1 go test ./ovh/ -v -sweep=1
3434
3535
requirements:
36-
- model: shared.infra/Go-official-1.16-buster
36+
- model: shared.infra/Go-official-1.19-bullseye

.cds/terraform-provider-ovh.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,4 @@ notifications:
6363
on_success: never
6464
send_to_author: false
6565
recipients:
66-
67-
66+

GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test: fmtcheck
1414
xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4
1515

1616
testacc: fmtcheck
17-
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 240m
17+
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 600m -p 10
1818

1919
vet:
2020
@echo "go vet ."

go.mod

Lines changed: 52 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,63 @@
11
module github.com/ovh/terraform-provider-ovh
22

33
require (
4-
github.com/google/go-cmp v0.5.6 // indirect
5-
github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e // indirect
4+
github.com/google/go-cmp v0.5.9
65
github.com/hashicorp/go-cleanhttp v0.5.2
76
github.com/hashicorp/go-version v1.6.0
8-
github.com/hashicorp/terraform-plugin-sdk/v2 v2.9.0
7+
github.com/hashicorp/terraform-plugin-sdk/v2 v2.24.0
98
github.com/mitchellh/go-homedir v1.1.0
109
github.com/ovh/go-ovh v1.3.0
11-
github.com/smartystreets/assertions v0.0.0-20190116191733-b6c0e53d7304 // indirect
1210
github.com/ybriffa/rfc3339 v0.0.0-20220203155318-1789e3fd6e70
13-
golang.org/x/tools v0.0.0-20201118030313-598b068a9102 // indirect
1411
gopkg.in/ini.v1 v1.57.0
15-
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
12+
gopkg.in/yaml.v3 v3.0.1
13+
)
14+
15+
require (
16+
github.com/agext/levenshtein v1.2.2 // indirect
17+
github.com/apparentlymart/go-cidr v1.1.0 // indirect
18+
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
19+
github.com/davecgh/go-spew v1.1.1 // indirect
20+
github.com/fatih/color v1.13.0 // indirect
21+
github.com/golang/protobuf v1.5.2 // indirect
22+
github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e // indirect
23+
github.com/hashicorp/errwrap v1.0.0 // indirect
24+
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
25+
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
26+
github.com/hashicorp/go-hclog v1.2.1 // indirect
27+
github.com/hashicorp/go-multierror v1.1.1 // indirect
28+
github.com/hashicorp/go-plugin v1.4.4 // indirect
29+
github.com/hashicorp/go-uuid v1.0.3 // indirect
30+
github.com/hashicorp/hc-install v0.4.0 // indirect
31+
github.com/hashicorp/hcl/v2 v2.14.1 // indirect
32+
github.com/hashicorp/logutils v1.0.0 // indirect
33+
github.com/hashicorp/terraform-exec v0.17.3 // indirect
34+
github.com/hashicorp/terraform-json v0.14.0 // indirect
35+
github.com/hashicorp/terraform-plugin-go v0.14.0 // indirect
36+
github.com/hashicorp/terraform-plugin-log v0.7.0 // indirect
37+
github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c // indirect
38+
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
39+
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
40+
github.com/mattn/go-colorable v0.1.12 // indirect
41+
github.com/mattn/go-isatty v0.0.14 // indirect
42+
github.com/mitchellh/copystructure v1.2.0 // indirect
43+
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
44+
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
45+
github.com/mitchellh/mapstructure v1.5.0 // indirect
46+
github.com/mitchellh/reflectwalk v1.0.2 // indirect
47+
github.com/oklog/run v1.0.0 // indirect
48+
github.com/smartystreets/assertions v0.0.0-20190116191733-b6c0e53d7304 // indirect
49+
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
50+
github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect
51+
github.com/vmihailenco/tagparser v0.1.1 // indirect
52+
github.com/zclconf/go-cty v1.11.0 // indirect
53+
golang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect
54+
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect
55+
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 // indirect
56+
golang.org/x/text v0.3.7 // indirect
57+
google.golang.org/appengine v1.6.6 // indirect
58+
google.golang.org/genproto v0.0.0-20200711021454-869866162049 // indirect
59+
google.golang.org/grpc v1.48.0 // indirect
60+
google.golang.org/protobuf v1.28.1 // indirect
1661
)
1762

18-
go 1.16
63+
go 1.19

go.sum

Lines changed: 103 additions & 367 deletions
Large diffs are not rendered by default.

ovh/data_cloud_project_database_kafka_topics_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ data "ovh_cloud_project_database_kafka_topics" "topics" {
4242

4343
func TestAccCloudProjectDatabaseKafkaTopicsDataSource_basic(t *testing.T) {
4444
serviceName := os.Getenv("OVH_CLOUD_PROJECT_SERVICE_TEST")
45-
version := os.Getenv("OVH_CLOUD_PROJECT_DATABASE_KAKFA_VERSION_TEST")
45+
version := os.Getenv("OVH_CLOUD_PROJECT_DATABASE_KAFKA_VERSION_TEST")
4646
if version == "" {
4747
version = os.Getenv("OVH_CLOUD_PROJECT_DATABASE_VERSION_TEST")
4848
}

ovh/data_cloud_project_database_mongodb_user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func dataSourceCloudProjectDatabaseMongodbUser() *schema.Resource {
3535
Computed: true,
3636
},
3737
"roles": {
38-
Type: schema.TypeList,
38+
Type: schema.TypeSet,
3939
Description: "Roles the user belongs to",
4040
Computed: true,
4141
Elem: &schema.Schema{Type: schema.TypeString},

ovh/data_dedicated_nasha_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func TestAccDedicatedNashaData(t *testing.T) {
1313

1414
resource.Test(t, resource.TestCase{
1515
PreCheck: func() {
16-
checkEnvOrFail(t, "OVH_NASHA_SERVICE_TEST")
16+
checkEnvOrSkip(t, "OVH_NASHA_SERVICE_TEST")
1717
testAccPreCheckCredentials(t)
1818
},
1919
Providers: testAccProviders,

ovh/import_cloud_project_containerregistry_test.go

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)