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.
This commit is contained in:
parent
f258056731
commit
8d06d68d0f
|
@ -3321,7 +3321,7 @@ func TestSchemaMap_DiffSuppress(t *testing.T) {
|
||||||
"var.bar": interfaceToVariableSwallowError(config.UnknownVariableValue),
|
"var.bar": interfaceToVariableSwallowError(config.UnknownVariableValue),
|
||||||
},
|
},
|
||||||
|
|
||||||
Diff: &terraform.InstanceDiff{
|
ExpectedDiff: &terraform.InstanceDiff{
|
||||||
Attributes: map[string]*terraform.ResourceAttrDiff{
|
Attributes: map[string]*terraform.ResourceAttrDiff{
|
||||||
"outer.#": &terraform.ResourceAttrDiff{
|
"outer.#": &terraform.ResourceAttrDiff{
|
||||||
Old: "0",
|
Old: "0",
|
||||||
|
@ -3338,6 +3338,7 @@ func TestSchemaMap_DiffSuppress(t *testing.T) {
|
||||||
"outer.~1.inner.~2.inner_str": &terraform.ResourceAttrDiff{
|
"outer.~1.inner.~2.inner_str": &terraform.ResourceAttrDiff{
|
||||||
Old: "",
|
Old: "",
|
||||||
New: "${var.bar}",
|
New: "${var.bar}",
|
||||||
|
NewComputed: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -3395,7 +3396,7 @@ func TestSchemaMap_DiffSuppress(t *testing.T) {
|
||||||
"var.bar": interfaceToVariableSwallowError(config.UnknownVariableValue),
|
"var.bar": interfaceToVariableSwallowError(config.UnknownVariableValue),
|
||||||
},
|
},
|
||||||
|
|
||||||
Diff: &terraform.InstanceDiff{
|
ExpectedDiff: &terraform.InstanceDiff{
|
||||||
Attributes: map[string]*terraform.ResourceAttrDiff{
|
Attributes: map[string]*terraform.ResourceAttrDiff{
|
||||||
"outer.#": &terraform.ResourceAttrDiff{
|
"outer.#": &terraform.ResourceAttrDiff{
|
||||||
Old: "0",
|
Old: "0",
|
||||||
|
@ -3412,6 +3413,7 @@ func TestSchemaMap_DiffSuppress(t *testing.T) {
|
||||||
"outer.~1.inner.0.inner_str": &terraform.ResourceAttrDiff{
|
"outer.~1.inner.0.inner_str": &terraform.ResourceAttrDiff{
|
||||||
Old: "",
|
Old: "",
|
||||||
New: "${var.bar}",
|
New: "${var.bar}",
|
||||||
|
NewComputed: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue