From e8ac16b2df585e6d731b0b77c8a7bfeaa0e6179a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 16 Dec 2014 15:56:40 -0800 Subject: [PATCH] helper/schema: test for empty state --- helper/schema/schema_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/helper/schema/schema_test.go b/helper/schema/schema_test.go index fbb402746..9f24f8b76 100644 --- a/helper/schema/schema_test.go +++ b/helper/schema/schema_test.go @@ -1734,6 +1734,19 @@ func TestSchemaMap_Diff(t *testing.T) { Err: false, }, + + // #45 - Empty + { + Schema: map[string]*Schema{}, + + State: &terraform.InstanceState{}, + + Config: map[string]interface{}{}, + + Diff: nil, + + Err: false, + }, } for i, tc := range cases {