Update config test to handle provisioners

This commit is contained in:
Armon Dadgar 2014-07-09 15:01:47 -07:00
parent 2423d135ac
commit abd5977988
1 changed files with 11 additions and 0 deletions

View File

@ -33,6 +33,10 @@ func TestConfig_Merge(t *testing.T) {
"foo": "bar", "foo": "bar",
"bar": "blah", "bar": "blah",
}, },
Provisioners: map[string]string{
"local": "local",
"remote": "bad",
},
} }
c2 := &Config{ c2 := &Config{
@ -40,6 +44,9 @@ func TestConfig_Merge(t *testing.T) {
"bar": "baz", "bar": "baz",
"baz": "what", "baz": "what",
}, },
Provisioners: map[string]string{
"remote": "remote",
},
} }
expected := &Config{ expected := &Config{
@ -48,6 +55,10 @@ func TestConfig_Merge(t *testing.T) {
"bar": "baz", "bar": "baz",
"baz": "what", "baz": "what",
}, },
Provisioners: map[string]string{
"local": "local",
"remote": "remote",
},
} }
actual := c1.Merge(c2) actual := c1.Merge(c2)