Files
Packer-Cn/builder/triton/step_test.go
T

22 lines
447 B
Go
Raw Normal View History

2016-04-14 17:29:27 -07:00
package triton
import (
"bytes"
2018-01-22 15:32:33 -08:00
"testing"
2018-01-19 16:18:44 -08:00
"github.com/hashicorp/packer/helper/multistep"
2017-04-04 13:39:01 -07:00
"github.com/hashicorp/packer/packer"
2016-04-14 17:29:27 -07:00
)
func testState(t *testing.T) multistep.StateBag {
state := new(multistep.BasicStateBag)
state.Put("config", testConfig(t))
state.Put("driver", &DriverMock{})
state.Put("hook", &packer.MockHook{})
state.Put("ui", &packer.BasicUi{
Reader: new(bytes.Buffer),
Writer: new(bytes.Buffer),
})
return state
}