Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 8d06d68

Browse files
committed
core: Backport NewComputed change to nested list/set tests
Needed due to work done in 95d37ea, we may need to adjust hasComputedSubKeys to propagate NewComputed in the same way that we have added "~", however will wait for comment from @mitchellh.
1 parent f258056 commit 8d06d68

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

helper/schema/schema_test.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3321,7 +3321,7 @@ func TestSchemaMap_DiffSuppress(t *testing.T) {
33213321
"var.bar": interfaceToVariableSwallowError(config.UnknownVariableValue),
33223322
},
33233323

3324-
Diff: &terraform.InstanceDiff{
3324+
ExpectedDiff: &terraform.InstanceDiff{
33253325
Attributes: map[string]*terraform.ResourceAttrDiff{
33263326
"outer.#": &terraform.ResourceAttrDiff{
33273327
Old: "0",
@@ -3336,8 +3336,9 @@ func TestSchemaMap_DiffSuppress(t *testing.T) {
33363336
New: "1",
33373337
},
33383338
"outer.~1.inner.~2.inner_str": &terraform.ResourceAttrDiff{
3339-
Old: "",
3340-
New: "${var.bar}",
3339+
Old: "",
3340+
New: "${var.bar}",
3341+
NewComputed: true,
33413342
},
33423343
},
33433344
},
@@ -3395,7 +3396,7 @@ func TestSchemaMap_DiffSuppress(t *testing.T) {
33953396
"var.bar": interfaceToVariableSwallowError(config.UnknownVariableValue),
33963397
},
33973398

3398-
Diff: &terraform.InstanceDiff{
3399+
ExpectedDiff: &terraform.InstanceDiff{
33993400
Attributes: map[string]*terraform.ResourceAttrDiff{
34003401
"outer.#": &terraform.ResourceAttrDiff{
34013402
Old: "0",
@@ -3410,8 +3411,9 @@ func TestSchemaMap_DiffSuppress(t *testing.T) {
34103411
New: "1",
34113412
},
34123413
"outer.~1.inner.0.inner_str": &terraform.ResourceAttrDiff{
3413-
Old: "",
3414-
New: "${var.bar}",
3414+
Old: "",
3415+
New: "${var.bar}",
3416+
NewComputed: true,
34153417
},
34163418
},
34173419
},

0 commit comments

Comments
 (0)