Merge pull request #769 from phinze/type-float-failing-diff-test

failing schema diff test for TypeFloat
This commit is contained in:
Mitchell Hashimoto 2015-01-14 09:30:08 -08:00
commit 6fadebc5d8

View File

@ -1769,6 +1769,36 @@ func TestSchemaMap_Diff(t *testing.T) {
Err: false, Err: false,
}, },
// #46 - Float
{
Schema: map[string]*Schema{
"some_threshold": &Schema{
Type: TypeFloat,
},
},
State: &terraform.InstanceState{
Attributes: map[string]string{
"some_threshold": "567.8",
},
},
Config: map[string]interface{}{
"some_threshold": 12.34,
},
Diff: &terraform.InstanceDiff{
Attributes: map[string]*terraform.ResourceAttrDiff{
"port": &terraform.ResourceAttrDiff{
Old: "567.8",
New: "12.34",
},
},
},
Err: false,
},
} }
for i, tc := range cases { for i, tc := range cases {