Update config test to handle provisioners
This commit is contained in:
parent
2423d135ac
commit
abd5977988
|
@ -33,6 +33,10 @@ func TestConfig_Merge(t *testing.T) {
|
|||
"foo": "bar",
|
||||
"bar": "blah",
|
||||
},
|
||||
Provisioners: map[string]string{
|
||||
"local": "local",
|
||||
"remote": "bad",
|
||||
},
|
||||
}
|
||||
|
||||
c2 := &Config{
|
||||
|
@ -40,6 +44,9 @@ func TestConfig_Merge(t *testing.T) {
|
|||
"bar": "baz",
|
||||
"baz": "what",
|
||||
},
|
||||
Provisioners: map[string]string{
|
||||
"remote": "remote",
|
||||
},
|
||||
}
|
||||
|
||||
expected := &Config{
|
||||
|
@ -48,6 +55,10 @@ func TestConfig_Merge(t *testing.T) {
|
|||
"bar": "baz",
|
||||
"baz": "what",
|
||||
},
|
||||
Provisioners: map[string]string{
|
||||
"local": "local",
|
||||
"remote": "remote",
|
||||
},
|
||||
}
|
||||
|
||||
actual := c1.Merge(c2)
|
||||
|
|
Loading…
Reference in New Issue