Skip to content

Commit dccf6bd

Browse files
authored
[Internal] Bump Go SDK to v0.45.0 (#3933)
## Changes <!-- Summary of your changes that are easy to understand --> Bumps the Go SDK to latest version and fix some tests related to changes in: - databricks/databricks-sdk-go#1014 - databricks/databricks-sdk-go#1021 ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> Unit tests, nightly will run over release PR. - [ ] `make test` run locally - [ ] relevant change in `docs/` folder - [ ] covered with integration tests in `internal/acceptance` - [ ] relevant acceptance tests are passing - [ ] using Go SDK
1 parent 036da8c commit dccf6bd

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

clusters/resource_cluster_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ func TestResourceClusterRead(t *testing.T) {
513513
}
514514

515515
func TestResourceClusterRead_NotFound(t *testing.T) {
516-
qa.ResourceFixture{
516+
_, err := qa.ResourceFixture{
517517
Fixtures: []qa.HTTPFixture{
518518
{
519519
Method: "GET",
@@ -531,7 +531,8 @@ func TestResourceClusterRead_NotFound(t *testing.T) {
531531
Read: true,
532532
Removed: true,
533533
ID: "abc",
534-
}.ApplyNoError(t)
534+
}.Apply(t)
535+
qa.AssertErrorStartsWith(t, err, "Cluster abc does not exist")
535536
}
536537

537538
func TestResourceClusterRead_Error(t *testing.T) {

common/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ func TestGetJWTProperty_Authenticate_Fail(t *testing.T) {
314314
_, err := client.GetAzureJwtProperty("tid")
315315
require.Error(t, err)
316316
assert.True(t, strings.HasPrefix(err.Error(),
317-
"default auth: azure-cli: cannot get access token: This is just a failing script"))
317+
"default auth: azure-cli: cannot get account info"))
318318
}
319319

320320
type mockInternalUserService struct {

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ module github.com/databricks/terraform-provider-databricks
33
go 1.22
44

55
require (
6-
github.com/databricks/databricks-sdk-go v0.44.0
6+
github.com/databricks/databricks-sdk-go v0.45.0
77
github.com/golang-jwt/jwt/v4 v4.5.0
88
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
99
github.com/hashicorp/hcl v1.0.0
1010
github.com/hashicorp/hcl/v2 v2.21.0
11+
github.com/hashicorp/terraform-plugin-framework v1.11.0
1112
github.com/hashicorp/terraform-plugin-go v0.23.0
1213
github.com/hashicorp/terraform-plugin-log v0.9.0
1314
github.com/hashicorp/terraform-plugin-mux v0.16.0
@@ -49,7 +50,6 @@ require (
4950
github.com/hashicorp/logutils v1.0.0 // indirect
5051
github.com/hashicorp/terraform-exec v0.21.0 // indirect
5152
github.com/hashicorp/terraform-json v0.22.1 // indirect
52-
github.com/hashicorp/terraform-plugin-framework v1.11.0 // indirect
5353
github.com/hashicorp/terraform-registry-address v0.2.3 // indirect
5454
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
5555
github.com/hashicorp/yamux v0.1.1 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBS
2626
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
2727
github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg=
2828
github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4=
29-
github.com/databricks/databricks-sdk-go v0.44.0 h1:9/FZACv4EFQIOYxfwYVKnY7v46xio9FKCw9tpKB2O/s=
30-
github.com/databricks/databricks-sdk-go v0.44.0/go.mod h1:ds+zbv5mlQG7nFEU5ojLtgN/u0/9YzZmKQES/CfedzU=
29+
github.com/databricks/databricks-sdk-go v0.45.0 h1:wdx5Wm/ESrahdHeq62WrjLeGjV4r722LLanD8ahI0Mo=
30+
github.com/databricks/databricks-sdk-go v0.45.0/go.mod h1:ds+zbv5mlQG7nFEU5ojLtgN/u0/9YzZmKQES/CfedzU=
3131
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3232
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
3333
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=

provider/provider_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ func TestConfig_AzureCliHost_Fail(t *testing.T) {
330330
"HOME": p,
331331
"FAIL": "yes",
332332
},
333-
assertError: "default auth: azure-cli: cannot get access token: This is just a failing script.",
333+
assertError: "default auth: azure-cli: cannot get account info",
334334
}.apply(t)
335335
}
336336

0 commit comments

Comments
 (0)