2013-12-24 00:58:41 -05:00
|
|
|
package iso
|
2013-12-23 17:38:54 -05:00
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
2017-04-04 16:39:01 -04:00
|
|
|
vmwcommon "github.com/hashicorp/packer/builder/vmware/common"
|
|
|
|
"github.com/hashicorp/packer/packer"
|
2013-12-23 17:38:54 -05:00
|
|
|
"github.com/mitchellh/multistep"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func testState(t *testing.T) multistep.StateBag {
|
|
|
|
state := new(multistep.BasicStateBag)
|
2013-12-24 16:39:52 -05:00
|
|
|
state.Put("driver", new(vmwcommon.DriverMock))
|
2013-12-23 17:38:54 -05:00
|
|
|
state.Put("ui", &packer.BasicUi{
|
|
|
|
Reader: new(bytes.Buffer),
|
|
|
|
Writer: new(bytes.Buffer),
|
|
|
|
})
|
|
|
|
return state
|
|
|
|
}
|