helper/schema: test case for boolean diffs

This commit is contained in:
Mitchell Hashimoto 2014-10-20 14:08:56 -07:00
parent f4d5d648c9
commit 37930f51a1
1 changed files with 25 additions and 0 deletions

View File

@ -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
*/