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