fix tests

This commit is contained in:
Megan Marsh 2019-03-29 15:05:51 -07:00
parent a84fc6bde9
commit b764b1d7e1
1 changed files with 1 additions and 9 deletions

View File

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