fix tests

This commit is contained in:
Megan Marsh 2018-12-06 09:36:16 -08:00
parent 0058422a5c
commit dbfc1b5aff
1 changed files with 6 additions and 0 deletions

View File

@ -171,6 +171,7 @@ func TestBuilderPrepare_RemoteType(t *testing.T) {
// Good
config["remote_type"] = ""
config["format"] = ""
config["remote_host"] = ""
config["remote_password"] = ""
config["remote_private_key_file"] = ""
@ -245,6 +246,11 @@ func TestBuilderPrepare_Format(t *testing.T) {
for _, format := range goodFormats {
// Good
config["format"] = format
config["remote_type"] = "esx5"
config["remote_host"] = "hosty.hostface"
config["remote_password"] = "password"
config["skip_validate_credentials"] = true
b = Builder{}
warns, err = b.Prepare(config)
if len(warns) > 0 {