From b764b1d7e1360d88f6a5f4f2d27ca428f28e2374 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Fri, 29 Mar 2019 15:05:51 -0700 Subject: [PATCH] fix tests --- builder/oracle/classic/config_test.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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