pull/7446/head
Megan Marsh 7 years ago
parent a84fc6bde9
commit b764b1d7e1

@ -42,6 +42,7 @@ func TestConfigValidationCatchesMissing(t *testing.T) {
"dest_image_list",
"source_image_list",
"shape",
"ssh_username",
}
for _, key := range required {
tc := testConfig()
@ -53,15 +54,6 @@ func TestConfigValidationCatchesMissing(t *testing.T) {
}
}
func TestValidationsIgnoresOptional(t *testing.T) {
tc := testConfig()
delete(tc, "ssh_username")
_, err := NewConfig(tc)
if err != nil {
t.Fatalf("Shouldn't care if ssh_username is missing: err: %#v", err.Error())
}
}
func TestConfigValidatesObjects(t *testing.T) {
var objectTests = []struct {
object string

Loading…
Cancel
Save