helper/schema: test case for boolean diffs
This commit is contained in:
parent
f4d5d648c9
commit
37930f51a1
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue