packer: Test to ensure the default config can parse

This commit is contained in:
Mitchell Hashimoto 2013-05-08 18:14:40 -07:00
parent 5f8330ecc2
commit 085533c17f
1 changed files with 7 additions and 0 deletions

View File

@ -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)