helper/schema: test for empty state
This commit is contained in:
parent
3b5c8a44ea
commit
e8ac16b2df
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue