Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mgyucht committed Dec 6, 2024
1 parent b3634bd commit 32cba97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/providers/pluginfw/converters/converters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"reflect"
"testing"

pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common"
tfcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
Expand Down Expand Up @@ -168,14 +167,14 @@ func RunConverterTest(t *testing.T, description string, tfSdkStruct DummyTfSdk,
convertedGoSdkStruct := DummyGoSdk{}
d := TfSdkToGoSdkStruct(context.Background(), tfSdkStruct, &convertedGoSdkStruct)
if d.HasError() {
t.Errorf("tfsdk to gosdk conversion: %s", pluginfwcommon.DiagToString(d))
t.Errorf("tfsdk to gosdk conversion: %s", tfcommon.DiagToString(d))
}
assert.Equal(t, goSdkStruct, convertedGoSdkStruct, fmt.Sprintf("tfsdk to gosdk conversion - %s", description))

convertedTfSdkStruct := DummyTfSdk{}
d = GoSdkToTfSdkStruct(context.Background(), goSdkStruct, &convertedTfSdkStruct)
if d.HasError() {
t.Errorf("gosdk to tfsdk conversion: %s", pluginfwcommon.DiagToString(d))
t.Errorf("gosdk to tfsdk conversion: %s", tfcommon.DiagToString(d))
}
assert.Equal(t, populateEmptyFields(tfSdkStruct), convertedTfSdkStruct, fmt.Sprintf("gosdk to tfsdk conversion - %s", description))
}
Expand Down

0 comments on commit 32cba97

Please sign in to comment.