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