From 37930f51a180abe8d949ea851a769d1a6441dc0f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 20 Oct 2014 14:08:56 -0700 Subject: [PATCH] helper/schema: test case for boolean diffs --- helper/schema/schema_test.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/helper/schema/schema_test.go b/helper/schema/schema_test.go index 8a06d2c487..70388f5690 100644 --- a/helper/schema/schema_test.go +++ b/helper/schema/schema_test.go @@ -342,6 +342,31 @@ func TestSchemaMap_Diff(t *testing.T) { Err: false, }, + /* + * Bool + */ + { + Schema: map[string]*Schema{ + "delete": &Schema{ + Type: TypeBool, + Optional: true, + Default: false, + }, + }, + + State: &terraform.InstanceState{ + Attributes: map[string]string{ + "delete": "false", + }, + }, + + Config: nil, + + Diff: nil, + + Err: false, + }, + /* * List decode */