Skip to content

Commit

Permalink
refactor sdkv2 detailed diff tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VenelinMartinov committed Jan 7, 2025
1 parent dbc1c2d commit 4f6a39f
Show file tree
Hide file tree
Showing 941 changed files with 277 additions and 1,997 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
crosstests "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/internal/tests/cross-tests"
)

func TestDetailedDiffList(t *testing.T) {
func TestSDKv2DetailedDiffList(t *testing.T) {
t.Parallel()

listAttrSchema := schema.Resource{
Expand Down Expand Up @@ -297,14 +297,6 @@ func TestDetailedDiffList(t *testing.T) {

scenarios := append(oneElementScenarios, multiElementScenarios...)

type testOutput struct {
initialValue *[]string
changeValue *[]string
tfOut string
pulumiOut string
detailedDiff map[string]any
}

runTest := func(t *testing.T, schema schema.Resource, valueMaker func(*[]string) map[string]cty.Value, initialValue *[]string, changeValue *[]string) {
diff := crosstests.Diff(t, &schema, valueMaker(initialValue), valueMaker(changeValue))
autogold.ExpectFile(t, testOutput{
Expand Down
Loading

0 comments on commit 4f6a39f

Please sign in to comment.