Skip to content

Commit 94fa063

Browse files
refactor sdkv2 detailed diff tests
1 parent 7aadd5d commit 94fa063

File tree

941 files changed

+277
-1997
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

941 files changed

+277
-1997
lines changed

pkg/tests/detailed_diff_list_test.go renamed to pkg/tests/diff_test/detailed_diff_list_test.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
crosstests "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/internal/tests/cross-tests"
1212
)
1313

14-
func TestDetailedDiffList(t *testing.T) {
14+
func TestSDKv2DetailedDiffList(t *testing.T) {
1515
t.Parallel()
1616

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

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

300-
type testOutput struct {
301-
initialValue *[]string
302-
changeValue *[]string
303-
tfOut string
304-
pulumiOut string
305-
detailedDiff map[string]any
306-
}
307-
308300
runTest := func(t *testing.T, schema schema.Resource, valueMaker func(*[]string) map[string]cty.Value, initialValue *[]string, changeValue *[]string) {
309301
diff := crosstests.Diff(t, &schema, valueMaker(initialValue), valueMaker(changeValue))
310302
autogold.ExpectFile(t, testOutput{

0 commit comments

Comments
 (0)