From 085533c17fe0ae2138130554fc6132a833efac88 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 8 May 2013 18:14:40 -0700 Subject: [PATCH] packer: Test to ensure the default config can parse --- config_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config_test.go b/config_test.go index 08a319724..a9bf6cb82 100644 --- a/config_test.go +++ b/config_test.go @@ -17,6 +17,13 @@ func TestConfig_ParseConfig_Bad(t *testing.T) { assert.NotNil(err, "should have an error") } +func TestConfig_ParseConfig_DefaultConfig(t *testing.T) { + assert := asserts.NewTestingAsserts(t, true) + + _, err := parseConfig(defaultConfig) + assert.Nil(err, "should be able to parse the default config") +} + func TestConfig_ParseConfig_Good(t *testing.T) { assert := asserts.NewTestingAsserts(t, true)