format
This commit is contained in:
parent
fec0b934b5
commit
35d681444c
|
@ -4,8 +4,8 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
"net/url"
|
||||
"time"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/hashicorp/packer/common"
|
||||
"github.com/hashicorp/packer/helper/config"
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue