This commit is contained in:
bugbuilder 2017-07-09 22:13:31 -04:00
parent fec0b934b5
commit 35d681444c
2 changed files with 19 additions and 1 deletions

View File

@ -4,8 +4,8 @@ import (
"context"
"fmt"
"net/url"
"time"
"strings"
"time"
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/helper/config"

View File

@ -1 +1,19 @@
package vsphere_tpl
import (
"testing"
)
func TestConfigureURL(t *testing.T) {
var p PostProcessor
p.config.Username = "me"
p.config.Password = "notpassword"
p.config.Host = "myhost"
p.config.Datacenter = "mydc"
p.config.VMName = "my vm"
p.config.Insecure = true
if err := p.configureURL(); err == nil {
t.Errorf("Error: %s", err)
}
}