From cb37e10c6fedafe66ab4e4483db5fa3ac681cfac Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Wed, 14 Jan 2015 20:50:58 +0100 Subject: [PATCH] Adding a test for issue #791 Running this test on commit 47f02f80bca83ebde01959be840de800fc639a04 from 6 days ago, is successful, but on master it now fails. --- helper/schema/resource_data_test.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/helper/schema/resource_data_test.go b/helper/schema/resource_data_test.go index 6b9426680..4666f509f 100644 --- a/helper/schema/resource_data_test.go +++ b/helper/schema/resource_data_test.go @@ -758,6 +758,33 @@ func TestResourceDataGetOk(t *testing.T) { Ok: true, }, + { + Schema: map[string]*Schema{ + "availability_zone": &Schema{ + Type: TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + }, + + State: nil, + + Diff: &terraform.InstanceDiff{ + Attributes: map[string]*terraform.ResourceAttrDiff{ + "availability_zone": &terraform.ResourceAttrDiff{ + Old: "", + New: "", + NewComputed: true, + }, + }, + }, + + Key: "availability_zone", + Value: "", + Ok: false, + }, + { Schema: map[string]*Schema{ "availability_zone": &Schema{