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{