Commit 085533c1 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer: Test to ensure the default config can parse

parent 5f8330ec
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment