File tree Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -513,7 +513,7 @@ func TestResourceClusterRead(t *testing.T) {
513513}
514514
515515func 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
537538func TestResourceClusterRead_Error (t * testing.T ) {
Original file line number Diff line number Diff 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
320320type mockInternalUserService struct {
Original file line number Diff line number Diff line change @@ -3,11 +3,12 @@ module github.com/databricks/terraform-provider-databricks
33go 1.22
44
55require (
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
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBS
2626github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f /go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc =
2727github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg =
2828github.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 =
3131github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
3232github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
3333github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments