|
|
|
|
@ -5,9 +5,9 @@ import (
|
|
|
|
|
"net"
|
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
"github.com/mitchellh/multistep"
|
|
|
|
|
"github.com/mitchellh/packer/helper/communicator"
|
|
|
|
|
"github.com/mitchellh/packer/helper/config"
|
|
|
|
|
"github.com/hashicorp/packer/helper/communicator"
|
|
|
|
|
"github.com/hashicorp/packer/helper/config"
|
|
|
|
|
"github.com/hashicorp/packer/helper/multistep"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func TestESX5Driver_implDriver(t *testing.T) {
|
|
|
|
|
@ -51,8 +51,9 @@ func TestESX5Driver_HostIP(t *testing.T) {
|
|
|
|
|
defer listen.Close()
|
|
|
|
|
|
|
|
|
|
driver := ESX5Driver{Host: "localhost", Port: uint(port)}
|
|
|
|
|
state := new(multistep.BasicStateBag)
|
|
|
|
|
|
|
|
|
|
if host, _ := driver.HostIP(); host != expected_host {
|
|
|
|
|
if host, _ := driver.HostIP(state); host != expected_host {
|
|
|
|
|
t.Error(fmt.Sprintf("Expected string, %s but got %s", expected_host, host))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|