diff --git a/builder/oracle/classic/config_test.go b/builder/oracle/classic/config_test.go index ff6bf2a00..b120e70a3 100644 --- a/builder/oracle/classic/config_test.go +++ b/builder/oracle/classic/config_test.go @@ -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