diff --git a/builder/vmware/iso/builder_test.go b/builder/vmware/iso/builder_test.go index d1a7282a9..59e18907d 100644 --- a/builder/vmware/iso/builder_test.go +++ b/builder/vmware/iso/builder_test.go @@ -168,6 +168,20 @@ func TestBuilderPrepare_RemoteType(t *testing.T) { t.Fatal("should have error") } + // Good + config["remote_type"] = "" + config["remote_host"] = "" + config["remote_password"] = "" + config["remote_private_key_file"] = "" + b = Builder{} + warns, err = b.Prepare(config) + if len(warns) > 0 { + t.Fatalf("bad: %#v", warns) + } + if err != nil { + t.Fatalf("should not have error: %s", err) + } + // Good config["remote_type"] = "esx5" config["remote_host"] = "foobar.example.com"