Skip to content

Commit

Permalink
Add support for GetRawConfig in testing framework
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmay-db committed Feb 21, 2024
1 parent e167d4a commit d2d2df9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qa/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (f ResourceFixture) prepareExecution(r *schema.Resource) (resourceCRUD, err
return nil, fmt.Errorf("no `Create|Read|Update|Delete: true` specificed")
}

func (f ResourceFixture) setDatabricksEnvironmentForTest(t *testing.T, client *common.DatabricksClient, host string) {
func (f ResourceFixture) setDatabricksEnvironmentForTest(client *common.DatabricksClient, host string) {
if f.Azure || f.AzureSPN {
client.Config.DatabricksEnvironment = &config.DatabricksEnvironment{
Cloud: config.CloudAzure,
Expand Down Expand Up @@ -315,7 +315,7 @@ func (f ResourceFixture) Apply(t *testing.T) (*schema.ResourceData, error) {
if f.AccountID != "" {
config.AccountID = f.AccountID
}
f.setDatabricksEnvironmentForTest(t, client, server.URL)
f.setDatabricksEnvironmentForTest(client, server.URL)
if len(f.HCL) > 0 {
var out any
// TODO: update to HCLv2 somehow, so that importer and this use the same stuff
Expand Down

0 comments on commit d2d2df9

Please sign in to comment.