helper/schema: Restore new value for complex set test

This commit is contained in:
Chris Marchesi 2017-05-31 09:52:10 -07:00 committed by Martin Atkins
parent 3444549d60
commit f0aafe4d67
1 changed files with 14 additions and 0 deletions

View File

@ -403,6 +403,20 @@ func testDiffCases(t *testing.T, oldPrefix string, oldOffset int, computed bool)
},
},
Key: "top",
NewValue: NewSet(testSetFunc, []interface{}{
map[string]interface{}{
"foo": 1,
"bar": 4,
},
map[string]interface{}{
"foo": 13,
"bar": 12,
},
map[string]interface{}{
"foo": 21,
"bar": 22,
},
}),
Expected: &terraform.InstanceDiff{
Attributes: func() map[string]*terraform.ResourceAttrDiff {
result := make(map[string]*terraform.ResourceAttrDiff)