From f0aafe4d676395dd77375c7981a3c316608f6564 Mon Sep 17 00:00:00 2001 From: Chris Marchesi Date: Wed, 31 May 2017 09:52:10 -0700 Subject: [PATCH] helper/schema: Restore new value for complex set test --- helper/schema/resource_diff_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/helper/schema/resource_diff_test.go b/helper/schema/resource_diff_test.go index a8bde41a0..634ab21cc 100644 --- a/helper/schema/resource_diff_test.go +++ b/helper/schema/resource_diff_test.go @@ -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)