2013-12-22 18:19:19 -05:00
|
|
|
package ovf
|
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
2018-01-22 20:21:10 -05:00
|
|
|
"testing"
|
|
|
|
|
2020-12-17 16:29:25 -05:00
|
|
|
"github.com/hashicorp/packer-plugin-sdk/multistep"
|
|
|
|
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
|
2017-04-04 16:39:01 -04:00
|
|
|
vboxcommon "github.com/hashicorp/packer/builder/virtualbox/common"
|
2013-12-22 18:19:19 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
func testState(t *testing.T) multistep.StateBag {
|
|
|
|
state := new(multistep.BasicStateBag)
|
|
|
|
state.Put("driver", new(vboxcommon.DriverMock))
|
2020-11-20 13:21:29 -05:00
|
|
|
state.Put("ui", &packersdk.BasicUi{
|
2013-12-22 18:19:19 -05:00
|
|
|
Reader: new(bytes.Buffer),
|
|
|
|
Writer: new(bytes.Buffer),
|
|
|
|
})
|
|
|
|
return state
|
|
|
|
}
|