Skip to content

Commit a7eb9f6

Browse files
Add detailed diff recordings to PF diff tests
1 parent 6b8c163 commit a7eb9f6

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

pkg/pf/tests/diff_list_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ func TestDetailedDiffList(t *testing.T) {
219219
changeValue *[]string
220220
tfOut string
221221
pulumiOut string
222+
detailedDiff map[string]any
222223
}
223224

224225
for _, schemaValueMakerPair := range schemaValueMakerPairs {
@@ -242,6 +243,7 @@ func TestDetailedDiffList(t *testing.T) {
242243
changeValue: scenario.changeValue,
243244
tfOut: diff.TFOut,
244245
pulumiOut: diff.PulumiOut,
246+
detailedDiff: diff.PulumiDiff.DetailedDiff,
245247
})
246248
})
247249
}

pkg/pf/tests/diff_map_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ func TestDetailedDiffMap(t *testing.T) {
163163
changeValue *map[string]*string
164164
tfOut string
165165
pulumiOut string
166+
detailedDiff map[string]any
166167
}
167168

168169
for _, schemaValueMakerPair := range schemaValueMakerPairs {
@@ -184,6 +185,7 @@ func TestDetailedDiffMap(t *testing.T) {
184185
changeValue: scenario.changeValue,
185186
tfOut: diff.TFOut,
186187
pulumiOut: diff.PulumiOut,
188+
detailedDiff: diff.PulumiDiff.DetailedDiff,
187189
})
188190
})
189191
}

pkg/pf/tests/diff_object_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ func TestDetailedDiffObject(t *testing.T) {
323323
changeValue *map[string]string
324324
tfOut string
325325
pulumiOut string
326+
detailedDiff map[string]any
326327
}
327328

328329
for _, schema := range schemas {
@@ -342,6 +343,7 @@ func TestDetailedDiffObject(t *testing.T) {
342343
changeValue: scenario.changeValue,
343344
tfOut: diff.TFOut,
344345
pulumiOut: diff.PulumiOut,
346+
detailedDiff: diff.PulumiDiff.DetailedDiff,
345347
})
346348
})
347349
}
@@ -361,6 +363,7 @@ func TestDetailedDiffObject(t *testing.T) {
361363
changeValue: scenario.changeValue,
362364
tfOut: diff.TFOut,
363365
pulumiOut: diff.PulumiOut,
366+
detailedDiff: diff.PulumiDiff.DetailedDiff,
364367
})
365368
})
366369
}

pkg/pf/tests/diff_set_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ func TestDetailedDiffSet(t *testing.T) {
583583
changeValue *[]string
584584
tfOut string
585585
pulumiOut string
586+
detailedDiff map[string]any
586587
}
587588

588589
for _, schemaValueMakerPair := range schemaValueMakerPairs {
@@ -601,6 +602,7 @@ func TestDetailedDiffSet(t *testing.T) {
601602
changeValue: scenario.changeValue,
602603
tfOut: diff.TFOut,
603604
pulumiOut: diff.PulumiOut,
605+
detailedDiff: diff.PulumiDiff.DetailedDiff,
604606
})
605607
})
606608
}

pkg/pf/tests/diff_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ func TestDetailedDiffStringAttribute(t *testing.T) {
180180
changeValue *string
181181
tfOut string
182182
pulumiOut string
183+
detailedDiff map[string]any
183184
}
184185

185186
for _, schema := range schemas {
@@ -201,6 +202,7 @@ func TestDetailedDiffStringAttribute(t *testing.T) {
201202
changeValue: scenario.changeValue,
202203
tfOut: diff.TFOut,
203204
pulumiOut: diff.PulumiOut,
205+
detailedDiff: diff.PulumiDiff.DetailedDiff,
204206
})
205207
})
206208
}

0 commit comments

Comments
 (0)