helper/schema: test for empty state

This commit is contained in:
Mitchell Hashimoto 2014-12-16 15:56:40 -08:00
parent 3b5c8a44ea
commit e8ac16b2df
1 changed files with 13 additions and 0 deletions

View File

@ -1734,6 +1734,19 @@ func TestSchemaMap_Diff(t *testing.T) {
Err: false, Err: false,
}, },
// #45 - Empty
{
Schema: map[string]*Schema{},
State: &terraform.InstanceState{},
Config: map[string]interface{}{},
Diff: nil,
Err: false,
},
} }
for i, tc := range cases { for i, tc := range cases {